#include <qapplication.h>
#include <qpushbutton.h>
#include <QWidget>
#include <QTextCodec>
#include <QLabel>
#include <QFont>
#include <QtGui/QTextEdit>
#include <QCursor>
#include "ui_hu.h"
class Win : public QWidget, public Ui::Form
{
public:
Win(QWidget *parent = 0):QWidget(parent)
{setupUi(this);}
};
int main( int argc, char *argv[] )
{
QApplication app(argc, argv);
QFont font;
font.setPointSize(50);
font.setFamily(("simhei"));
app.setFont(font);
QTextCodec::setCodecForTr(QTextCodec::codecForName("utf-8"));
app.setOverrideCursor(QCursor(Qt::BlankCursor));//取消鼠标指针
Win w;
w.setWindowFlags(Qt::FramelessWindowHint);
w.show();
return app.exec();
}
文章评论(0条评论)
登录后参与讨论