imgtest.cpp

来自「透明的程序界面编程,非常有用的,我自己都看过很多遍了,程序已经编译通过」· C++ 代码 · 共 29 行

CPP
29
字号
#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 + =
减小字号Ctrl + -
显示快捷键?