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. How to set Stylesheet specifically for a derived QProgressDialog
Forum Update on Monday, May 27th 2025

How to set Stylesheet specifically for a derived QProgressDialog

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 228 Views
  • 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.
  • Z Offline
    Z Offline
    ZXfkSIE
    wrote on last edited by
    #1

    I am programming under Qt 6.2 and have a derived QProgressDialog called TP_ProgressDialog.
    I've tried following sheet codes:

    TP_ProgressDialog { background-color: rgb(0,0,0); }
    QProgressDialog { background-color: rgb(0,0,0); }
    QDialog { background-color: rgb(0,0,0); }
    

    but none of them works.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZXfkSIE
      wrote on last edited by
      #2

      OK I have fixed it.
      I wrote color: white; before the specific sheet codes,
      which seems to make TP_ProgressDialog { background-color: rgb(0,0,0); } invalid.

      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