链接QPushButton和QLineEdit

时间:2016-10-16 13:05:31

标签: c++ qt qlineedit qpushbutton

我在Qt工作,我不明白如何链接QPushButtonQHBoxLayout accountlayout; QLabel accountlabel("AccountServer"); QLineEdit accountlineedit; QPushButton accountbuttonselect("Select"); QPushButton accountbuttonlaunch("Launch"); QPushButton accountbuttonstop("Stop"); QString accountfile; accountlayout.addWidget(&accountlabel); accountlayout.addWidget(&accountlineedit); accountlayout.addWidget(&accountbuttonselect); accountlayout.addWidget(&accountbuttonlaunch); accountlayout.addWidget(&accountbuttonstop); QObject::connect(&accountbuttonselect, &QPushButton::clicked, [&window, &accountfile] { accountfile = QFileDialog::getOpenFileName( window, QObject::tr("Sélectionner un exécutable ..."), "C:/", QObject::tr("Exécutable (*.exe)")); }); layout.addLayout(&accountlayout); 。我为QFileDialog

做了这个
QLineEdit

我打开 var AWS = require('aws-sdk'); var db = new AWS.DynamoDB(); exports.handler = function(event, context) { var params = { TableName: "hexagon2", ProjectionExpression: "price", FilterExpression: "price between :lower and :higher", ExpressionAttributeValues: { ":lower": {"N": "1"}, ":higher": {"N": "13"} } }; db.scan(params, function(err, data) { if (err) { console.log(err); // an error occurred } else { console.log(data.Item); // successful response context.done(null,{"Result": "Operation succeeded."}); } }); }; 搜索可执行文件,我想设置START RequestId: f770c78b-93a1-11e6-b5f6-e5c31cef8b2d Version: $LATEST 2016-10-16T13:10:54.299Z f770c78b-93a1-11e6-b5f6-e5c31cef8b2d undefined END RequestId: f770c78b-93a1-11e6-b5f6-e5c31cef8b2d REPORT RequestId: f770c78b-93a1-11e6-b5f6-e5c31cef8b2d Duration: 912.58 ms Billed Duration: 1000 ms Memory Size: 128 MB Max Memory Used: 24 MB 以显示指定的目录。我怎么能这样做?

0 个答案:

没有答案