Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Color of line in TabBar Qt QML

How can I change the color of the line that highlites the selected tab in the TabBar?

enter image description here

like image 593
Danke Avatar asked Oct 21 '25 17:10

Danke


1 Answers

According to @jpnurmi's comment, the best and easiest solution here is to utilize QtQuick.Controls.Material:

import QtQuick.Controls.Material 2.0

and then you can set Material.accent for TabBar:

TabBar { 
  Material.accent: Material.Red 
}
like image 127
tro Avatar answered Oct 23 '25 06:10

tro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!