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 to change the background color of context menu
Forum Updated to NodeBB v4.3 + New Features

how to change the background color of context menu

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 846 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.
  • johnson54J Offline
    johnson54J Offline
    johnson54
    wrote on last edited by
    #1

    when I set the widget background color through qss such as
    QWidget {
    background-color : blue;
    border-radius: 8px;
    }
    the context menu color is also set , when right click on the lineedit, its contextmenu background is also blue
    how to change it to other color?

    johnson54J 1 Reply Last reply
    0
    • johnson54J johnson54

      when I set the widget background color through qss such as
      QWidget {
      background-color : blue;
      border-radius: 8px;
      }
      the context menu color is also set , when right click on the lineedit, its contextmenu background is also blue
      how to change it to other color?

      johnson54J Offline
      johnson54J Offline
      johnson54
      wrote on last edited by
      #2

      I think I know
      use QMenu to reset the color

      HeerokNewbieH 1 Reply Last reply
      0
      • johnson54J johnson54

        I think I know
        use QMenu to reset the color

        HeerokNewbieH Offline
        HeerokNewbieH Offline
        HeerokNewbie
        wrote on last edited by
        #3
        This post is deleted!
        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