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

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -