Hi,
I am using Qt4.8.6 on windows7, I am trying to set QStyle::SP_MessageBoxCritical Icon to the QPushButton as below

Qt Code:
  1. QPushButton* criticalButt = new QPushButton(this);
  2. criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxCritical));
To copy to clipboard, switch view to plain text mode 
But I am not able to see any icon, but if I do
Qt Code:
  1. criticalButt->setIcon(style.standardIcon(QStyle::QStyle::SP_ArrowBack));
To copy to clipboard, switch view to plain text mode 
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 :-)