Never everything is going as planned. I expected that code generated by Umbrello won’t be ideal, but there is more problems (for me:) then I expected. Some more work needs to be done before implementing functions and I think that this is refactoring of generated code already.

One of thing to be done is to create QT project file with includes inside of it. After that good idea would be to prepare some class setup template. This is an example:

#include "section"
class TabDialog : public QDialog {
    Q_OBJECT
    public:
    // Constructors/Destructors
    ...
    // Interface functions
    ...

    private:
    //private attributes
    ...
    //private methods
    ...
}

Next thing is to connect the code with QT application, because Umbrello generate only pure C++ frame. Every class needs inheritance from QDialog and Q_OBJECT macro at the beginning if they have to work with SIGNAL/SLOT QT mechanism and with QT memory management system. So every file has to be changed according to those requirements, but that is not all.

Umbrello generates interfaces classes and those functions have to be manually copied from those files to main application classes files. I assume that as an amateur I don’t understand that action somehow, but GetNoticed2017 needs some posts so I will do it manually 🙂

Leave a Reply