c++ - Warning is shown when hovering mouse over QToolButton actions -


i have made qtoolbutton actions :

qtoolbutton * toolbut1 = new qtoolbutton(this);  actiongroup1 = new qactiongroup(this); actiongroup1->setexclusive(true);  action1 = new qaction(qicon(":/images/icon1"),"", actiongroup1); action1->setcheckable(true);  action2 = new qaction(qicon(":/images/icon2"),"", actiongroup1); action2->setcheckable(true);  action3 = new qaction(qicon(":/images/icon3"),"", actiongroup1); action3->setcheckable(true);  toolbut1->addaction(action1); toolbut1->addaction(action2); toolbut1->addaction(action3); 

but when hover mouse pointer on actions, warnings displayed in application output :

qgradient::setcolorat: color position must specified in range 0 1

why happening? how fix it?

p.s. using qt 4.8.4 on windows 7.

i set different names these actions , result warning not shown more.

qtoolbutton * toolbut1 = new qtoolbutton(this);  actiongroup1 = new qactiongroup(this); actiongroup1->setexclusive(true);  action1 = new qaction(qicon(":/images/icon1"),"act1", actiongroup1); action1->setcheckable(true);  action2 = new qaction(qicon(":/images/icon2"),"act2", actiongroup1); action2->setcheckable(true);  action3 = new qaction(qicon(":/images/icon3"),"act3", actiongroup1); action3->setcheckable(true);  toolbut1->addaction(action1); toolbut1->addaction(action2); toolbut1->addaction(action3); 

Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -