Results 1 to 2 of 2

Thread: QToolBox qss style sheet problem

  1. #1
    Join Date
    Aug 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default QToolBox qss style sheet problem

    Hopefully someone can help me

    I am using the Desinger, 4.3.1, and is adding a stylesheet to a QToolBox.

    I am trying to add all the styles and ui withouth needing to recompile the code, so I need to solve this in the script and ui files.

    From the documentation
    QToolBox
    Supports the box model.

    The individual tabs can by styled using the ::tab subcontrol. The tabs support the nly-one, :first, :last, :middle, revious-selected, :next-selected, :selected pseudo states.

    I get to style the different tabs by

    QToolBox::tab

    But do not get

    QToolBox::tab:first

    and

    QToolBox::tab:last

    to work.

    QToolBox::tab {
    border-image: url(:/images/pushbutton4.png) 8;
    border-width: 8;
    }

    QToolBox::tab:first {
    border-image: url(:/images/pushbutton4_first.png) 8;
    border-width: 8;
    }

    QToolBox::tab:last{
    border-image: url(:/images/pushbutton4_last.png) 8;
    border-width: 8;
    }

  2. #2

    Default Re: QToolBox qss style sheet problem

    This was a bug. This is fixed in 4.3.2.

Similar Threads

  1. Style Sheet color of QComboBox
    By tpf80 in forum Qt Programming
    Replies: 6
    Last Post: 25th June 2007, 02:55
  2. Qt 4.3 Style sheet, new features
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2007, 15:22
  3. Qt Designer Style Sheet Resources
    By bjoernbg in forum Newbie
    Replies: 1
    Last Post: 24th January 2007, 07:12
  4. How to use style sheet
    By safknw in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2006, 13:05
  5. QToolBox and style
    By Maxilys in forum KDE Forum
    Replies: 6
    Last Post: 26th March 2006, 15:07

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.