Hi,
How can I load a picture into menubar as background ? And how can I set the color of Titlebar of MainWindow as black?
Please help me...
Hi,
How can I load a picture into menubar as background ? And how can I set the color of Titlebar of MainWindow as black?
Please help me...
Customizing QMenuBar
Window decoration is not provided by Qt but the underlying window system. The only thing you can do about it is to create a frameless window and draw a fake, custom title bar. Just be aware that in this case you have to handle window movement and resizing by hand too.And how can I set the color of Titlebar of MainWindow as black?
J-P Nurmi
Hi,
I can't solve my probs using Customizing QMenuBar. My requirement is, I want to set the color or menubar. We can do it using
menubar->setPalette(QPalette(QColor::QColor ( 160 , 176, 201 )));
But I need a mixing of colors. So I create a .png file with that color and save it. I need to load that picture as background of menubar. How can I do it?
Please help me
Take a look at The Box Model and List of Properties. Hint: "background-image".
J-P Nurmi
Bookmarks