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. How can I retrieve the default 'selection-background-color' from a combobox
Forum Updated to NodeBB v4.3 + New Features

How can I retrieve the default 'selection-background-color' from a combobox

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 727 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.
  • B Offline
    B Offline
    Bill52
    wrote on last edited by Bill52
    #1

    Default means: before any stylesheet was set on the widget.
    Would someone be kind to give the syntax please? I can't see how this could be done.

    Many thanks.

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      You can use QWidget::palette() to retrieve the palette and then use
      https://doc.qt.io/qt-5/qpalette.html#brush

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      1 Reply Last reply
      3

      • Login

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