Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Need help with PushButtons please!

$
0
0
Hello, I’m new to Qt and I can’t figure out why my PushButtons are not connecting correctly. Here is my code: #include "push_buttons.h" #include "ui_push_buttons.h"   push_buttons::push_buttons(QWidget *parent) :     QMainWindow(parent),     ui(new Ui::push_buttons) {     ui->setupUi(this);     ui->pushButton->setText("50% Progress");     ui->pushButton_2->setText("Checked");     ui->pushButton_3->setText("Fill");     ui->pushButton_4->setText("Close");     ui->progressBar->setValue(0);     ui->checkBox->setChecked(false);     connect(ui->pushButton,SIGNAL(clicked(bool)),                     ui->progressBar,SLOT(setValue(50)));     connect(ui->pushButton_2,SIGNAL(clicked(bool)),                     ui->checkBox,SLOT(setCheckedState(bool)));   }   push_buttons::~push_buttons() {     delete ui; }

Viewing all articles
Browse latest Browse all 22112

Trending Articles