PDA

View Full Version : How to change the icons of windows?



8Observer8
23rd August 2013, 09:50
Hi,

How to change the icons of windows?

9465

I attached this project. This is QtOpenGL project. It's useful.

Santosh Reddy
23rd August 2013, 10:04
If this is a new project use QMdiArea instead of QWorkspace. QWorkspace is deprecated.

Any way, here is the answer.


scenePanel->setWindowIcon(QIcon(":/Icons/Scene.png"));
controlPanel->setWindowIcon(QIcon(":/Icons/Control.png"));

8Observer8
23rd August 2013, 10:30
I will use QMdiArea. Thank you very much :)