123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #include "basicwidget.h"
- #include "ui_basicwidget.h"
- #include "compareitemlistdialog.h"
- #include "DialogBase.h"
- #include "UIStyleManager.h"
- #include "customcombobox.h"
- BasicWidget::BasicWidget(QWidget *parent) :
- QWidget(parent),
- ui(new Ui::BasicWidget)
- {
- ui->setupUi(this);
-
- connect(ui->pBtn_compareItem, &QPushButton::clicked, this, &BasicWidget::do_pBtn_CompareItemClicked);
- /* 设置UI */
- UIStyle.registerWidget(this);
- /* 设置下拉框选项 */
- ui->comBox_notConsistency->setViewShadowEffect();
- ui->comBox_driverName->setViewShadowEffect();
- ui->comBox_recordMode->setViewShadowEffect();
- /* 测试用 */
- ui->comBox_driverName->addItem("AISO");
- }
- BasicWidget::~BasicWidget()
- {
- UIStyle.unregisterWidget(this);
- delete ui;
- }
- void BasicWidget::do_pBtn_CompareItemClicked()
- {
- CompareItemListDialog dlg;
- dlg.exec();
- // DialogBase dlg;
- // dlg.setTitle("测试标题");
- // dlg.resize(400, 300);
- // dlg.exec();
- }
|