Qt Snippet: Set window icon in Linux and Mac
However, basically, what you need is to simply manually assign by code your icon to the window. If you are moving from Windows application project add your .ico file to the Qt resource file (.qrc) of your project and, once done, add this line in window initialization phase:
QApplication::setWindowIcon(QIcon(":/my_prefix_if_any/my_window_icon.ico"));
Comments
Post a Comment