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. [SOLVED]How to styling child-controls
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]How to styling child-controls

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 927 Views 1 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    Hi,

    I'm using stylesheet for styling child-controls of QDialog but the following snippets makes the QDialog itself transparent while I want to make all the child-controls transparent and the QDialog itself with red background!!!

    How can I fix this issue?

    @QDialog {
    background-color: red;
    }

    QDialog > QWidget {
    background-color: rgba(255, 255, 255, 0);
    }@

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

      Hi,

      Just tested with a dummy dialog containing a QPushButton and it's working. What version of Qt on what OS are you using ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbnoimi
        wrote on last edited by
        #3

        [quote]What version of Qt on what OS are you using ?[/quote]

        Oops; I was using very old version of Qt

        Sorry for disturbing :)

        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