Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Tranparent combobox background

    General and Desktop
    3
    8
    4975
    Loading More Posts
    • 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
      gauravofindia last edited by

      Hello,

      What is the css code for making QComBox transparent?

      Gaurav

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        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 Reply Quote 0
        • G
          gauravofindia last edited by

          Gerolf,

          I am attaching a screenshot.

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

          1 Reply Last reply Reply Quote 0
          • G
            giesbert last edited by

            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 Reply Quote 0
            • A
              andre last edited by

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

              1 Reply Last reply Reply Quote 0
              • G
                giesbert last edited by

                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 Reply Quote 0
                • G
                  gauravofindia last edited by

                  Hi Gerolf,

                  This still does not work :(

                  Gaurav

                  1 Reply Last reply Reply Quote 0
                  • G
                    giesbert last edited by

                    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 Reply Quote 0
                    • First post
                      Last post