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. Some help with .qss editting.

Some help with .qss editting.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 2.6k 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.
  • S Offline
    S Offline
    stevenluther
    wrote on last edited by
    #1

    Alright, so I've tried everything.. I have no idea why this isn't working. What I'm trying to do is make my drop down menu from File black. Everything I've tried isn't working, been at this for hours now.

    @QMenuBar {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000, stop: 1 #000);
    color: #000;
    font-weight: bold;
    border: 0px solid transparent;
    border-bottom-color: transparent;
    }
    QMenuBar::item {
    background: #000;
    color: #fff;
    border: 0;
    padding: 4px 8px;
    }
    QMenuBar::item:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #880000, stop: 1 transparent);
    color: #fff;
    }
    QMenuBar::item:pressed {
    background: qlineargradientx1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #880000, stop: 1 transparent);
    color: #000;
    }
    QMenu {
    background-color: #000000;
    border: 2px inset #444444;
    color: #FFFFFF;
    }
    QMenu::item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px 20px 2px 20px;
    }
    QMenu::item:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #666666, stop:1 #000000);
    border: 1px solid #777777;
    }
    QMenu::item:pressed {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #000000, stop:1 #666666);
    border: 1px solid #777777;
    }
    QMenu::item:disabled {
    color: #BBBBBB;
    }
    QMenu::item:disabled:selected {
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop:0 #999999, stop:1 #666666);
    border: 1px solid #777777;
    }
    QMenu::separator {
    background: #000000;
    height: 1px;
    }
    QMenu::indicator {
    width: 13px;
    height: 13px;
    padding-left: 1px;
    }@

    !https://lh3.googleusercontent.com/-UcxZw6ng6-M/Tz8i79X8ZiI/AAAAAAAABH4/_nO-e-u3u8o/w224/screenshot.png!

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

      Maybe I should clarify a bit. I'm making my dropdowns so they mouseover a dark red fading to transparent, white text, and a black background. Now the problem I'm having is the black background part isn't working. The white text, red fade to transparent works, just.. No black. I've tried hex colors, black background image, none of it's working..

      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