form1.ui.h

来自「一个小的qt3程序」· C头文件 代码 · 共 26 行

H
26
字号
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you want to add, delete, or rename functions or slots, use** Qt Designer to update this file, preserving your code.**** You should not define a constructor or destructor in this file.** Instead, write your code in functions called init() and destroy().** These will automatically be called by the form's constructor and** destructor.*****************************************************************************/#include "mydialog.h"void Form1::newSlot(){    MyDialog *d;    d = new MyDialog(this);    d->show();}void Form1::func( int x ){    pushButton2->setPaletteBackgroundColor(QColor(2*x, 10, 10));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?