Common Icon for all dialogs and message boxes
My application has a application icon that is displayed correctly, but I want the same icon to appear on all my dialogs and message boxes
Currently I am doing
in each of my dialog classes.
My question is, is there a way of getting this icon to be used by all dialogs without having to place the same code in each dialog class?
i think you should be able to achieve this by "setting the application icon":http://qt-project.org/doc/qt-4.8/appicon.html but i'm not sure.
I have already set the application icon
pass parent pointer while creating dialogs
parent icon will be shown on all childs
You can use CSS as well . But you have to write atleast one line code/instruction.