Results 1 to 3 of 3

Thread: Style Sheet on QWizard

  1. #1
    Join Date
    Jul 2006
    Posts
    37
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question Style Sheet on QWizard

    Hi Everybody

    It seems that's very hard to set a style sheet on buttons in the QWizard;

    I try so set the style sheet on buttons , like "back, "Next", "Cancel", ... and only those buttons; I didn't succeed

    I have tested with settings "setObjectName" or "setProperty", to identify those buttons, but nothing happens.

    If someone has an idea?

    Thanks,

    David

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Style Sheet on QWizard

    Qt Code:
    1. wizard->button(QWizard::BackButton)->setStyleSheet("...");
    To copy to clipboard, switch view to plain text mode 
    ?
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    desch (6th December 2007)

  4. #3
    Join Date
    Jul 2006
    Posts
    37
    Thanks
    6
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Style Sheet on QWizard

    Ok , great it works

    like that :
    Qt Code:
    1. wizard->button(QWizard::BackButton)->setStyleSheet("QAbstractButton{ border-image: url(:/myImage);}");
    To copy to clipboard, switch view to plain text mode 

    Is there a way to set a mandatory field like

    Qt Code:
    1. wizard->button(QWizard::BackButton)->setProperty("class","applyStyle");
    To copy to clipboard, switch view to plain text mode 

    or

    Qt Code:
    1. wizard->button(QWizard::BackButton)->setObjectName("buttonColor");
    To copy to clipboard, switch view to plain text mode 

    and set a general style for the whole application with these properties.

    Thanks

    David

Similar Threads

  1. QToolButton and Style sheet
    By desch in forum Qt Programming
    Replies: 8
    Last Post: 1st December 2007, 09:38
  2. Vertical Scroll Bar - Style Sheet
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2007, 20:03
  3. Style Sheet color of QComboBox
    By tpf80 in forum Qt Programming
    Replies: 6
    Last Post: 25th June 2007, 03:55
  4. Qt 4.3 Style sheet, new features
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2007, 16:22
  5. How to use style sheet
    By safknw in forum Qt Programming
    Replies: 1
    Last Post: 20th November 2006, 14:05

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.