Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "mainwindow.h"
- #include <QApplication>
- #include <QLCDNumber>
- #include <QSlider>
- #include <QVBoxLayout>
- int main(int argc, char *argv[])
- {
- QApplication app(argc, argv);
- QWidget window;
- QLCDNumber *lcd = new QLCDNumber();
- QSlider * qs = new QSlider(Qt::Horizontal);
- QVBoxLayout * vlayout = new QVBoxLayout();
- vlayout->addWidget(lcd);
- vlayout->addWidget(qs);
- lcd->display(5);
- window.setLayout(vlayout);
- window.show();
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement