Skip to content

Instantly share code, notes, and snippets.

#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;
#include <QApplication>
#include <QtWidgets>
#include "TDialog.hpp"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton w;
TDialog d(&w);