Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <authorization.hpp>
- using namespace Qt;
- int main (int argc, char* argv[]) {
- QApplication app(argc, argv);
- /**
- * Creating main widget
- */
- QStackedWidget wgt;
- wgt.setFixedSize(app.desktop()->width(), app.desktop()->height());
- QPalette plt;
- plt.setColor(wgt.backgroundRole(), white);
- wgt.setPalette(plt);
- wgt.setAutoFillBackground(true);
- Authorization* authorization = new Authorization;
- wgt.addWidget(authorization);
- QTimer::singleShot(2000, &wgt, SLOT(show()));
- return app.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement