c++ - QImage / Logo in QCustomPlot -
c++ - QImage / Logo in QCustomPlot -
how can add together logo/qimage in qcustomplot
plot ?
i new both qt , qcustomplot
.
i using c++
qcustomplot* plot = new qcustomplot(parent); logo = new qimage(); bool success = logo->load("logo-wallpaper.png");
how add together logo plot?
you can set pixmap of label logo image , add together label layout in plot :
qlabel *mylabel = new qlabel(this); mylabel->setpixmap(qpixmap::fromimage(logo)); qgridlayout * layout = new qgridlayout(plot); layout->setalignment(qt::alignright | qt::aligntop); layout->addwidget(mylabel ,0,0);
c++ qt qcustomplot
Comments
Post a Comment