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