ui->menuBar->setStyleSheet ( "QMenuBar"
"{"
" background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, "
" stop: 0 #b0c4de, "
" stop: 0.8 #e6e6e8, "
" stop: 1 #b0c4de ); "
" margin: 0px; "
" padding: 5px; "
" spacing: 5px; "
"}"
"QMenuBar::item"
"{"
" background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, "
" stop: 0 #b0c4de, "
" stop: 0.8 #c8dcf6, "
" stop: 1 #4682b4 ); "
" border-width: 1px; "
" border-color: darkkhaki; "
" border-style: solid; "
" border-radius: 5px; "
" margin: 3px; "
" padding: 4px; "
" spacing: 20px; "
"}"
"QMenuBar::item:selected { /* when selected using mouse or keyboard */"
"background: #a8a8a8;"
"}"
"QMenuBar::item:pressed {"
"background: #888888;"
"}"
"QMenu {"
"background-color: white;"
"margin: 5px; /* some spacing around the menu */"
"width: 180px;"
"}"
"QMenu::item {"
"padding: 10px 28px 10px 23px;"
"font: bold 12px;"
"border: 1px solid transparent; /* reserve space for selection border */}"
"QMenu::item:selected {"
"border-color: darkblue;"
"background: rgba(100, 100, 100, 150);"
"}"
"QMenu::icon:checked { /* appearance of a 'checked' icon */"
"background: gray;"
"border: 1px inset gray;"
"position: absolute;"
"top: 1px;"
"right: 1px;"
"bottom: 1px;"
"left: 1px;}"
"QMenu::separator {"
"height: 2px;"
"background: lightblue;"
"margin-left: 10px;"
"margin-right: 5px;}"
"QMenu::indicator {"
"width: 13px;"
"height: 13px;}"
);
ui->menuBar->setStyleSheet ( "QMenuBar"
"{"
" background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, "
" stop: 0 #b0c4de, "
" stop: 0.8 #e6e6e8, "
" stop: 1 #b0c4de ); "
" margin: 0px; "
" padding: 5px; "
" spacing: 5px; "
"}"
"QMenuBar::item"
"{"
" background-color: qlineargradient( x1:0, y1:0, x2:0, y2:1, "
" stop: 0 #b0c4de, "
" stop: 0.8 #c8dcf6, "
" stop: 1 #4682b4 ); "
" border-width: 1px; "
" border-color: darkkhaki; "
" border-style: solid; "
" border-radius: 5px; "
" margin: 3px; "
" padding: 4px; "
" spacing: 20px; "
"}"
"QMenuBar::item:selected { /* when selected using mouse or keyboard */"
"background: #a8a8a8;"
"}"
"QMenuBar::item:pressed {"
"background: #888888;"
"}"
"QMenu {"
"background-color: white;"
"margin: 5px; /* some spacing around the menu */"
"width: 180px;"
"}"
"QMenu::item {"
"padding: 10px 28px 10px 23px;"
"font: bold 12px;"
"border: 1px solid transparent; /* reserve space for selection border */}"
"QMenu::item:selected {"
"border-color: darkblue;"
"background: rgba(100, 100, 100, 150);"
"}"
"QMenu::icon:checked { /* appearance of a 'checked' icon */"
"background: gray;"
"border: 1px inset gray;"
"position: absolute;"
"top: 1px;"
"right: 1px;"
"bottom: 1px;"
"left: 1px;}"
"QMenu::separator {"
"height: 2px;"
"background: lightblue;"
"margin-left: 10px;"
"margin-right: 5px;}"
"QMenu::indicator {"
"width: 13px;"
"height: 13px;}"
);
To copy to clipboard, switch view to plain text mode
Bookmarks