Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWizard and style sheet

QWizard and style sheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.3k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    My application uses a global style sheet to style most widgets including QDialog and QPushButton
    I now want a class derived from QWizard to inherit this style sheet and thought that it would automatically pick up the settings for QDialog, but this is not the case.

    Have I missed something or must I manually set the style sheet in the wizard code?

    Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi, as far as I know, you must override the paint and make it use a style
      http://stackoverflow.com/questions/7276330/qt-stylesheet-for-custom-widget
      It worked for me when Parent was QWidget.
      Not sure same applies when Parent is QWiz but in some sense parent is still a QWidget.
      Anyway, though I would mention it.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved