Results 1 to 4 of 4

Thread: What does it mean?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default What does it mean?

    When we define a class in a header file, i write down this code "" Ui::Dialog ui; ""
    what does it mean?
    If we have Two form first one is MainWindow the second one is Dialog window, these forms all classes contains these code why?

    Qt Code:
    1. class MainWindow : public QMainWindow, public Ui::MainWindow
    2. {
    3. Q_OBJECT
    4. public:
    5.  
    6. int i;
    7. QTranslator translator;
    8. //Dialog::Dialog *a=new Dialog();
    9. MainWindow(QWidget *parent = 0);
    10. ~MainWindow();
    11.  
    12.  
    13. private:
    14. Ui::MainWindow ui;
    15.  
    16.  
    17. void languageChange(int);
    18.  
    19. protected:
    20. void changeEvent(QEvent* event);
    21. void keyPressEvent(QKeyEvent *e);
    22. public slots:
    23. void english();
    24. void turkce();
    25. void deutsch();
    26. void reset();
    27. void sayfa();
    28.  
    29.  
    30. };
    31.  
    32. class Dialog : public QDialog , public Ui::Dialog
    33. {
    34. Q_OBJECT
    35. public:
    36. Dialog(QWidget *parent = 0);
    37.  
    38. private:
    39. Ui::Dialog ui;
    40.  
    41. public slots:
    42. void gizle();
    43. };
    To copy to clipboard, switch view to plain text mode 

    thanks
    Last edited by jpn; 18th January 2008 at 08:13. Reason: missing [code] tags

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.