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
Post a Comment