[SOLVED] Qt5.2: How to change popwindow icon to be different from MainWindow?
General and Desktop
4
Posts
2
Posters
1.1k
Views
1
Watching
-
Hi all,
I'm not sure if anyone has done this before but I have a MainWindow with some buttons of which when clicked will display another form. I am able to change the MainWindow icon usingRC_ICONS = img.ico in my .pro file and by adding it to .qrc file
but I would like to change the popup window's icon so it changes with different windows. Right now, the popup window is displaying the same icon as the MainWindow but I'd like to change it. I used this line but it doesn't seem to work.
radiouser->setWindowIcon(QIcon("/other_img.ico"));
Please advise.
-
Yes both the icons reside in the same location