Hiding the System Menu Icon of QMdiSubWindow
-
Dear Community,
how can one hide or delete the Icon of the QMdiSubWindow...
I don't want to have this one :
-
windowIcon : QIcon
This property holds the widget's icon
This property only makes sense for windows. If no icon has been set, windowIcon() returns the application icon (QApplication::windowIcon()).
Access functions:
@QIcon windowIcon () const
void setWindowIcon ( const QIcon & icon )
bool isWindow () const@Maybe this will help you.
-
One of the possible ways is to create an empty QIcon and then call SetWindowIcon of the QMdiSubWindow
@setWindowIcon(QIcon(""));@
-
setWindowIcon(QIcon()) is probably better, since it creates a null icon.
-
If to use the null icon then the standard Qt icon will be set on the QMdiSubWindow. Author in opposite wants to hide it.