⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imgtest.cpp

📁 透明的程序界面编程,非常有用的,我自己都看过很多遍了,程序已经编译通过
💻 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 + -