#include <QApplication>
#include <QPixmap>
#include <QLabel>
int main (int argc, char **argv)
{
QLabel lab
(0,Qt
::FramelessWindowHint | Qt
::WindowStaysOnTopHint);
lab.setText("Hello");
lab.show();
lab.resize(300,200);
p=p.scaled ( lab.width(),lab.height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
lab.setPixmap(p);
return app.exec();
}
#include <QApplication>
#include <QPixmap>
#include <QLabel>
int main (int argc, char **argv)
{
QApplication app(argc,argv);
QLabel lab(0,Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint);
QPixmap p("plane.jpg");
lab.setText("Hello");
lab.show();
lab.resize(300,200);
p=p.scaled ( lab.width(),lab.height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation );
lab.setPixmap(p);
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Dear JPN!
Now, You should happy for above. Give any suggestion with free mind.
Bookmarks