Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created April 13, 2016 05:46
Show Gist options
  • Save manashmandal/248503bc0d8c121d26a12961b734a875 to your computer and use it in GitHub Desktop.
Save manashmandal/248503bc0d8c121d26a12961b734a875 to your computer and use it in GitHub Desktop.
#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