📄 imgtest.cpp
字号:
#include "imgtest.h"
#include "imgbutton.h"
#include <QtGui>
imgtest::imgtest(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
QPixmap groundPixmap;
groundPixmap = QPixmap::grabWidget(this,QRect(70, 190, 451, 23));
ImgButton *test=new ImgButton(this);
test->setback(groundPixmap); test->setMargin(0); test->setAlignment(Qt::AlignLeft|Qt::AlignBottom); test->setGeometry(QRect(70, 190, 451, 23));
test->setPixmap(groundPixmap);
}
imgtest::~imgtest()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -