c++ - Adding an image to the Qt toolbar area -


i making qt application , after placing actions, still lot of empty space left in toolbar. trying add image right side of icons, , told possible using qlabel object , placing image using qpixmap. i've not been able add qlabel toolbar.

the qtoolbar contains functionality need. user addwidget(qwidget* method , supply pointer widget (your label).

qlabel* label = new qlabel(); label->setpixmap(qpixmap("..."));  this->ui.toolbar->setwidget(label); 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -