Created
April 13, 2016 05:46
-
-
Save manashmandal/248503bc0d8c121d26a12961b734a875 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "thewidgetitem.h" | |
#include "ui_thewidgetitem.h" | |
TheWidgetItem::TheWidgetItem(QWidget *parent) : | |
QWidget(parent), | |
ui(new Ui::TheWidgetItem) | |
{ | |
ui->setupUi(this); | |
} | |
TheWidgetItem::~TheWidgetItem() | |
{ | |
delete ui; | |
} | |
void TheWidgetItem::on_pressThisBtn_clicked() | |
{ | |
//Getting text from lineEdit and setting it to the label | |
ui->label->setText (ui->lineEdit->text ()); | |
} | |
void TheWidgetItem::on_horizontalSlider_valueChanged(int value) | |
{ | |
//Connecting slider with the progressbar | |
ui->progressBar->setValue (value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment