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. QCombobox dropdown list transparent QComboBoxPrivateContainer
Forum Updated to NodeBB v4.3 + New Features

QCombobox dropdown list transparent QComboBoxPrivateContainer

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 925 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
    minjunkim
    wrote on last edited by
    #1

    Hi,

    I want to apply transparency to the qcombobox drop down list.

    below is my Combobox

    0_1541391469240_combo.png

    I found out that I can't solve with a stylesheet.

    I also found some ideas for QComboBoxPrivateContainer

    below is this.

    if (combo->view()->parentWidget())
    combo->view()->parentWidget()->setWindowOpacity(0.5);

    but it didn't work.

    is there some ideas?

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

      Hi,

      What version of Qt are you using ?
      On what OS ?

      You likely have to create a proxy style, for example the QMacStyle class sets the opacity.

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?
        On what OS ?

        You likely have to create a proxy style, for example the QMacStyle class sets the opacity.

        M Offline
        M Offline
        minjunkim
        wrote on last edited by
        #3

        @SGaist

        Hi,

        i'm using Qt 5.11.0, Window10

        I'll try it your suggestion.

        Thank you.

        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