Try to test this:
#include <QtGui>
#include <QLabel>
//! [main function]
int main(int argc, char *argv[])
{
f.setPointSize(100);
widget.setFont(f);
widget.setWindowFlags(Qt::WindowFlags(Qt::FramelessWindowHint));
widget.setAttribute(Qt::WA_TranslucentBackground);
widget.show();
return app.exec();
}
//! [main function]
#include <QtGui>
#include <QLabel>
//! [main function]
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel widget("TEST");
QFont f = widget.font();
f.setPointSize(100);
widget.setFont(f);
widget.setWindowFlags(Qt::WindowFlags(Qt::FramelessWindowHint));
widget.setAttribute(Qt::WA_TranslucentBackground);
widget.show();
return app.exec();
}
//! [main function]
To copy to clipboard, switch view to plain text mode
Bookmarks