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. Tranparent combobox background
Forum Update on Monday, May 27th 2025

Tranparent combobox background

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 5.3k 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.
  • G Offline
    G Offline
    gauravofindia
    wrote on last edited by
    #1

    Hello,

    What is the css code for making QComBox transparent?

    Gaurav

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      did you try using a style sheet? There the following should be possible:
      @
      QComboBox,
      QComboBox QLineEdit,
      {
      background: transparent;
      }
      @

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gauravofindia
        wrote on last edited by
        #3

        Gerolf,

        I am attaching a screenshot.

        !http://www.intelligaia.com/images/qt/SetupScreen1.jpg!

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giesbert
          wrote on last edited by
          #4

          What do you want to show with this picture?

          Do you want round corners or a transparent combo?

          Nokia Certified Qt Specialist.
          Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            andre
            wrote on last edited by
            #5

            Look closely at the picture. You can see black corners on a dark grey background.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              giesbert
              wrote on last edited by
              #6

              Hi gauravofindia,

              did you try the following:

              @
              QComboBox,
              QComboBox QLineEdit,
              {
              background: transparent;
              border-width: 0px;
              border-style: transparent
              border-radius: 4px;
              }
              @

              perhaps it helps.

              Nokia Certified Qt Specialist.
              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gauravofindia
                wrote on last edited by
                #7

                Hi Gerolf,

                This still does not work :(

                Gaurav

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #8

                  Hm,

                  the I have currently no idea why it is that way, sorry...

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  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