QTabWidget's border on Windows 7



  • Hello.

    I need to make QTabWidget's border to look like QTextEdit's border. QTextEdit has different colors on each side - that is what I want for QTabWidget.

    Here is Illustration of the issue.

    How can I achieve this?



  • Possible solution - use stylesheet like this one:

    QTabWidget::pane
    {
    border-left-color: #012345;
    border-right-color: #012345;
    border-top-color: #012345;
    border-bottom-color: #012345;
    }
    

    But how do I get appropriate colors?



  • Stylesheet could do this.
    But a small warning, once you start with many custom stylesheet, it can be pretty hard to keep the change in future OS version (Windows 10, ..) I now prefer to keep the OS style to save developing time, but I was once like you.



  • @maximus Yes, I decided not to do it.