Advertisement
Guest User

main.cpp

a guest
May 2nd, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <QtGui/QApplication>
  2. #include "dialog.h"
  3. #include "MyWidget.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication a(argc, argv);
  8. Dialog *w = new Dialog;
  9. w->setGeometry(10,10,500,500);
  10. w->setLayout(new QHBoxLayout);
  11. MyWidget *My = new MyWidget(w);
  12. w->layout()->addWidget(My);
  13.  
  14.  
  15.  
  16. w->show();
  17. My->show();
  18. return a.exec();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement