DURGAPRASAD NEELAM
23rd May 2015, 19:41
Hi,
I am using Qt4.8.6 on windows7, I am trying to set QStyle::SP_MessageBoxCritical Icon to the QPushButton as below
QPushButton* criticalButt = new QPushButton(this);
criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxCr itical));
But I am not able to see any icon, but if I do
criticalButt->setIcon(style.standardIcon(QStyle::QStyle::SP_Arro wBack));
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/37395-Getting-the-Icon-of-a-MessageBox
Its working fine.
isn't it possible to use criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxCr itical)) directley.
Thanks in advance :-)
I am using Qt4.8.6 on windows7, I am trying to set QStyle::SP_MessageBoxCritical Icon to the QPushButton as below
QPushButton* criticalButt = new QPushButton(this);
criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxCr itical));
But I am not able to see any icon, but if I do
criticalButt->setIcon(style.standardIcon(QStyle::QStyle::SP_Arro wBack));
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/37395-Getting-the-Icon-of-a-MessageBox
Its working fine.
isn't it possible to use criticalButt->setIcon(style.standardIcon(QStyle::SP_MessageBoxCr itical)) directley.
Thanks in advance :-)