无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

QT基礎(chǔ)教程 | QT入門 | 信號與槽

2023-06-25 21:27 作者:11122222222111  | 我要投稿

?
1、QT開發(fā)概述 P1 - 04:30
?


?
1、QT開發(fā)概述 P1 - 06:34
?





?
1、QT開發(fā)概述 P1 - 08:44
?


、、、、、、、、、、、、、、、、、、、、

?
2、Qt的編譯 P2 - 00:12
?



infoLabel->setText("input cmd:");

#include <QApplication>//應(yīng)用,面向?qū)ο?/p>

#include <QLabel>//tag header file ,create a label

#include <QLineEdit>

#include <QPushiButton>

#include <QHBoxLayout>//horizontal layout水平布局

#include <QVBoxLayout>//vertical layout垂直布局


int main(int argc,char *argv[])

{

QApplication app(argc,argv);


QLable *infoLabel()=new QLabel;

QLable *openLabel()=new QLabel;

QLineEdit *cmdLineEdit=new QLineEdit;

QPushButton *commitButton=new QPushButton;

QPushButton *cancelButton=new QPushButton;

QPushButton *browseButton=new QPushButton;


infoLabel->setText("input cmd:");

openLabe->setText("open");

commitButton->setText("commit");

cancelButton->setText("cancel");

browseButton->setText("browse");


QHBoxLayout *cmdLayout=new QHBoxLayout;//horizontal layout object/水平布局對象;

cmdLayout->addWidget(openLabel);//Add spacebar to horizontal object將控件加到水平對象里

//addWidget()添加控件

cmdLayout->addWidget(cmdLineEdit);


return app.exec();

}


控件,標(biāo)簽,行編輯框,文本編輯框,文字,布局,水平布局對象(布局也是對象),







































QT基礎(chǔ)教程 | QT入門 | 信號與槽的評論 (共 條)

分享到微博請遵守國家法律
合肥市| 西林县| 穆棱市| 海南省| 北票市| 玉溪市| 五台县| 贵港市| 黄平县| 桦甸市| 文成县| 谷城县| 忻城县| 葵青区| 婺源县| 鹤庆县| 抚顺县| 明水县| 景洪市| 封开县| 武平县| 涪陵区| 平陆县| 宝丰县| 白山市| 安乡县| 阿拉善左旗| 武宁县| 满城县| 河东区| 沭阳县| 黄石市| 阳曲县| 云和县| 德钦县| 金堂县| 德州市| 尼木县| 都安| 晋江市| 辛集市|