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. Change background-color Style for containers in widgets
Forum Updated to NodeBB v4.3 + New Features

Change background-color Style for containers in widgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 781 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.
  • Artemis21A Offline
    Artemis21A Offline
    Artemis21
    wrote on last edited by
    #1

    Hi, what CSS element is this dark grey container? If I change the QGroupBox background color I can still see the semi transparent box, but I can't find the class to change it's background color. I tried every class in the stylesheet reference but couldn't find this one.

    uDbGA.png

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

      Hi
      Since all Widgets can be used as a container we cannot guess.

      It could be a plain Widget with a label over.

      However, it does look like a group box in the way the caption looks.
      I would try some other property of group box and see if it changes.

      There is zero access to source code ?

      Also if you are programmer, you could use
      https://github.com/robertknight/Qt-Inspector

      and then see if you can spy on the other app :)

      1 Reply Last reply
      0
      • Artemis21A Offline
        Artemis21A Offline
        Artemis21
        wrote on last edited by Artemis21
        #3

        This is the source code https://github.com/Cockatrice/Cockatrice/tree/master/cockatrice but I don't really know where to look beside src folder, because I can't read C++ I tried with Qt-Inspector but couldn't even compile it. Is there any other similar software? even for PC?

        By the way, I've seen that the QGroupBox only has :Title as useful property, unless I'm mistaken. Any other suggestion?

        1 Reply Last reply
        0
        • Artemis21A Offline
          Artemis21A Offline
          Artemis21
          wrote on last edited by
          #4

          If I apply

          QGroupBox {
              background-color: rgb(255, 255, 255);
              margin-top:1em;
          }
          

          Yu can see the white background is applied to the box, but there's still a transparent overlay with rounded border that covers it. But I can't get access to it.
          Schermata 2020-03-27 alle 15.11.15.png

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

            Hi,

            You can use KDAB's GammaRay to inspect your application.

            Other than that you can also use the dumpObjectTree method to see what you have in that widget.

            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

            • Login

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