This file contains hidden or 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 <QApplication> | |
#include <QtWidgets> | |
#include "TDialog.hpp" | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
QPushButton w; | |
TDialog d(&w); |
This file contains hidden or 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
#ifndef TDIALOG_HPP | |
#define TDIALOG_HPP | |
#include <QtWidgets> | |
class TDialog: public QDialog { | |
Q_OBJECT | |
public: | |
explicit TDialog(QWidget *parent=0): QDialog(parent) { | |
QVBoxLayout *l = new QVBoxLayout; | |
m_bar = new QProgressBar; |