91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

Qt基于networkmanager嵌入式linux的wifi網(wǎng)絡(luò)連接,嵌入式linux系統(tǒng)需要支持networkmanager網(wǎng)絡(luò)管理工具,主要是通過對(duì)nmcli命令連接wifi方式用qt進(jìn)行了封裝,實(shí)現(xiàn)了類似windows操作系統(tǒng)下wifi連接可視化操作。

資源截圖

代碼片段和文件信息

#include?“inputpassworddialog.h“

InputPasswordDialog::InputPasswordDialog(QWidget?*parent)
????:?QWidget(parent)
{
????this->guiInit();
????QDesktopWidget?desktop;
????this->setFixedSize(desktop.width()/3desktop.height()/4);
}

void?InputPasswordDialog::guiInit()
{
????QLabel?*inputLabel?=?new?QLabel(this);
????inputLabel->setText(tr(“Password“));
????inputLabel->setAlignment(Qt::AlignCenter);
????inputLabel->setSizePolicy(QSizePolicy::FixedQSizePolicy::Fixed);
????inputLabel->setFixedHeight(30);

????QLineEdit?*inputLine?=?new?QLineEdit(this);
????inputLine->setSizePolicy(QSizePolicy::PreferredQSizePolicy::Fixed);
????inputLine->setFixedHeight(30);

????QPushButton?*okBtn?=?new?QPushButton(this);
????okBtn->setText(tr(“OK“));
????okBtn->setSizePolicy(QSizePolicy::PreferredQSizePolicy::Fixed);
????okBtn->setFixedHeight(30);

????QPushButton?*cancelBtn?=?new?QPushButton(this);
????cancelBtn->setText(tr(“Cancel“));
????cancelBtn->setSizePolicy(QSizePolicy::PreferredQSizePolicy::Fixed);
????cancelBtn->setFixedHeight(30);

????QGridLayout?*layout?=?new?QGridLayout;
????layout->addWidget(inputLabel0011);
????layout->addWidget(inputLine0112);
????layout->addWidget(okBtn1111);
????layout->addWidget(cancelBtn1211);
????this->setLayout(layout);

????connect(okBtn&QPushButton::clicked[=](){
????????if(inputLine->text().isEmpty()){
????????????emit?confirmPassword(inputLine->text());
????????}
????});
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????1440??2018-12-16?00:09??WifiConnectedTest\inputpassworddialog.cpp

?????文件????????453??2018-12-16?00:00??WifiConnectedTest\inputpassworddialog.h

?????文件????????182??2018-12-14?21:31??WifiConnectedTest\main.cpp

?????文件???????1137??2018-12-15?23:36??WifiConnectedTest\WifiConnectedTest.pro

?????文件???????7087??2018-12-16?22:18??WifiConnectedTest\wificonnecttest.cpp

?????文件???????1106??2018-12-15?23:57??WifiConnectedTest\wificonnecttest.h

?????目錄??????????0??2018-12-16?22:20??WifiConnectedTest

-----------?---------??----------?-----??----

????????????????11405????????????????????7


評(píng)論

共有 條評(píng)論