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. TrayIconMenu Color change.
Forum Updated to NodeBB v4.3 + New Features

TrayIconMenu Color change.

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.1k 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.
  • K Offline
    K Offline
    Ketan Shah
    wrote on last edited by
    #1

    how can i change the background color of trayiconmenu...
    i had set my windows background color to white, but its also applying to the trayiconmenu, which I dont want..so how can I avoid this...i want to set the default background color that is blue for the trayiconmenu.
    I had also used the trayiconmenu's stylesheet function, but no help from it,its still white..

    1 Reply Last reply
    0
    • S Offline
      S Offline
      soroush
      wrote on last edited by
      #2

      You can specify style of each widget separately. "This":http://doc.qt.nokia.com/latest/stylesheet.html might help you.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ruzik
        wrote on last edited by
        #3

        Try it, for example
        @QMenu{
        background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
        stop: 0 #dddddd, stop: 1 #eeeeee);
        }@
        It may interest you also http://qt-apps.org/content/show.php/Rizek+Qss+Editor?content=142455

        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