1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/test/inputtest/dialog.cpp
2018-05-05 15:17:18 +08:00

24 lines
498 B
C++

#include "dialog.h"
#include "ui_dialog.h"
#include "qqtinput.h"
#include "qqtapplication.h"
Dialog::Dialog ( QWidget* parent ) :
QDialog ( parent ),
ui ( new Ui::Dialog )
{
ui->setupUi ( this );
//这个字体,有的平台不显示。
//qApp->setFont ( QFont ( "Microsoft YaHei", 10 ) );
//不挑平台,强制显示。
QQtInput::Instance()->Init ( "min", "control", "QQT", 14, 14 );
setFocus();
}
Dialog::~Dialog()
{
delete ui;
}