Advertisement
Guest User

QT4

a guest
Jan 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. #ifndef HALLOWELTFENSTER6_H
  2. #define HALLOWELTFENSTER6_H
  3.  
  4. #include <QMainWindow>
  5.  
  6. namespace Ui {
  7. class HalloWeltFenster6;
  8. }
  9.  
  10. class HalloWeltFenster6 : public QMainWindow
  11. {
  12.     Q_OBJECT
  13.  
  14. public:
  15.     explicit HalloWeltFenster6(QWidget *parent = 0);
  16.     ~HalloWeltFenster6();
  17.     void test();
  18.    
  19. public slots:
  20.     void update();
  21.    
  22.  
  23. private:
  24.     Ui::HalloWeltFenster6 *ui;
  25. };
  26.  
  27. #endif // HALLOWELTFENSTER6_H
  28. ------------------------------------------------------------------
  29. #include "halloweltfenster6.h"
  30. #include "ui_halloweltfenster6.h"
  31.  
  32. HalloWeltFenster6::HalloWeltFenster6(QWidget *parent) :
  33.     QMainWindow(parent),
  34.     ui(new Ui::HalloWeltFenster6)
  35. {
  36.     ui->setupUi(this);
  37. }
  38.  
  39. HalloWeltFenster6::~HalloWeltFenster6()
  40. {
  41.     delete ui;
  42. }
  43.  
  44. void HalloWeltFenster6::update()
  45. {
  46.     ui->label->setText("Test");
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement