Results 1 to 5 of 5

Thread: QTabBar one color line can't be changed

  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QTabBar one color line can't be changed

    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

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar one color line can't be changed

    Try this, it's working for me...
    Qt Code:
    1. QTabWidget::pane { border-top: 2px solid red;}
    To copy to clipboard, switch view to plain text mode 
    Last edited by Rajesh.Rathod; 6th June 2014 at 07:32.

  3. #3
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar one color line can't be changed

    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...

  4. #4
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar one color line can't be changed

    It seems that you need to share your code to get more idea about it...

  5. #5
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTabBar one color line can't be changed

    Move the "Left" dock on the "Right" dock and you will see the line is not red.
    Minimal code who reproduces the bug :
    Qt Code:
    1. #include <QApplication>
    2. #include <QMainWindow>
    3. #include <QDockWidget>
    4.  
    5. int main(int argc, char *argv[])
    6. {
    7. QApplication a(argc, argv);
    8. a.setStyleSheet("QTabWidget::pane{ border-top: 2px solid red;}");
    9. w.addDockWidget(Qt::LeftDockWidgetArea,new QDockWidget("Left",&w));
    10. w.addDockWidget(Qt::RightDockWidgetArea,new QDockWidget("Right",&w));
    11. w.show();
    12. return a.exec();
    13. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QTabBar and different background color
    By smrtak in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2012, 16:49
  2. QTextEdit contents changed highlight the color
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 3
    Last Post: 8th June 2011, 17:31
  3. QTabBar tab color
    By Oleg in forum Qt Programming
    Replies: 3
    Last Post: 29th March 2010, 09:11
  4. QTabBar color in space inbetween tabs
    By AwDogsgo2Heaven in forum Newbie
    Replies: 1
    Last Post: 12th March 2010, 08:44
  5. Splitter Color changed when referesh?
    By rajeshs in forum Qt Programming
    Replies: 1
    Last Post: 11th July 2007, 08:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.