Solved How to set windows icon - close?
-
Hello,
OS: Win 10
I would like to setIcon() on my QPushButton. The icon which I would like is a Windows close icon ( red "X" ). I try find something like:
QIcon::close
but I can't find any defined icons.
Is there a simple way?
-
@TomNow99 said in How to set windows icon - close?:
Is there a simple way?
No. You need an image file and Qt does not provide it (it couldn't even if it wanted to, that stuff is copyrighted).
-
@TomNow99 said in How to set windows icon - close?:
Is there a simple way?
No. You need an image file and Qt does not provide it (it couldn't even if it wanted to, that stuff is copyrighted).
-
Hi,
One thing you can try is to use QStyle::standardPixmap with QStyle::SP_TitleBarCloseButton.