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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -