Advertisement
PlotnikovPhilipp

Untitled

Mar 26th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <authorization.hpp>
  2.  
  3. using namespace Qt;
  4.  
  5. int main (int argc, char* argv[]) {
  6. QApplication app(argc, argv);
  7.  
  8. /**
  9. * Creating main widget
  10. */
  11.  
  12. QStackedWidget wgt;
  13. wgt.setFixedSize(app.desktop()->width(), app.desktop()->height());
  14. QPalette plt;
  15. plt.setColor(wgt.backgroundRole(), white);
  16. wgt.setPalette(plt);
  17. wgt.setAutoFillBackground(true);
  18.  
  19. Authorization* authorization = new Authorization;
  20.  
  21. wgt.addWidget(authorization);
  22. QTimer::singleShot(2000, &wgt, SLOT(show()));
  23. return app.exec();
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement