Not able to see pushButton->setIcon(style.standardIcon(QStyle::SP_MessageBo xC ritical)
Hi,
I am using Qt4.8.6 on windows7, I am trying to set QStyle::SP_MessageBoxCritical Icon to the QPushButton as below
Code:
criticalButt
->setIcon
(style.
standardIcon(QStyle::SP_MessageBoxCritical));
But I am not able to see any icon, but if I do
Code:
criticalButt
->setIcon
(style.
standardIcon(QStyle::QStyle::SP_ArrowBack));
I am able to see the arrow back button.
Please let me know any one face this issue.
If I follow http://www.qtcentre.org/threads/3739...f-a-MessageBox
Its working fine.
isn't it possible to use criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxC ritical)) directley.
Thanks in advance :-)