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[])
{
a.setStyleSheet("QTabWidget::pane{ border-top: 2px solid red;}");
w.
addDockWidget(Qt
::LeftDockWidgetArea,
new QDockWidget("Left",
&w
));
w.
addDockWidget(Qt
::RightDockWidgetArea,
new QDockWidget("Right",
&w
));
w.show();
return a.exec();
}
#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();
}
To copy to clipboard, switch view to plain text mode
Bookmarks