PDA

View Full Version : QTabBar one color line can't be changed



Alundra
5th June 2014, 21:18
Hi all,
There is one line who can't be changed with stylesheet :
http://uppix.com/f-Tab5390c22f0016a87d.png
It's like Qt compute it and you can't change.
It's the long line on the bottom after tabs.
If a solution exists should be nice to say.
Thanks for the help

Rajesh.Rathod
6th June 2014, 07:50
Try this, it's working for me...

QTabWidget::pane { border-top: 2px solid red;}

Alundra
6th June 2014, 13:53
No change, the line still "silver" color, it's when I move one dock on one another dock, that makes a tab and this line is here...

Rajesh.Rathod
9th June 2014, 07:36
It seems that you need to share your code to get more idea about it...

Alundra
9th June 2014, 16:59
Move the "Left" dock on the "Right" dock and you will see the line is not red.
Minimal code who reproduces the bug :


#include <QApplication>
#include <QMainWindow>
#include <QDockWidget>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setStyleSheet("QTabWidget::pane{ border-top: 2px solid red;}");
QMainWindow w;
w.addDockWidget(Qt::LeftDockWidgetArea,new QDockWidget("Left",&w));
w.addDockWidget(Qt::RightDockWidgetArea,new QDockWidget("Right",&w));
w.show();
return a.exec();
}