Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Ui

 

Ui is the namespace that Qt Creator puts the designed GUI's in.

 

The code below shows the code of a default-created Qt Creator dialog, with added comments.

 

#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>

//Forward declaration of Ui::Dialog
namespace Ui {
    class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = 0);
    ~Dialog();

protected:
    void changeEvent(QEvent *e);

private:
    //Pointer to this Ui::Dialog
    Ui::Dialog *ui;
};

#endif // DIALOG_H

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict