Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Change background color of QToolBar doesn't work in Linux

$
0
0
Hi, i have this simply code in Linux (xubuntu): MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {     mainToolBar = new QToolBar;     mainToolBar->setAutoFillBackground(true);     mainToolBar->setStyleSheet("QToolBar { background: yellow; }");       addToolBar(Qt::TopToolBarArea, mainToolBar); } if toolbar is in Top, the background color is default if toolbar is in Left, the background color is yellow why? how can i change color of Top QToolBar? images for ilustration: (in windows it works correct) Thanks for reply.

Viewing all articles
Browse latest Browse all 22112


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>