Project

General

Profile

Now guys wt c ++ will also be in Qml development of a look at the attached qml wml framework

Added by Everton Fonseca about 5 years ago

Much faster development using Wt c and Qml of Qt


Replies (5)

RE: Now guys wt c ++ will also be in Qml development of a look at the attached qml wml framework - Added by Koen Deforche about 5 years ago

Hey,

Looks cool! How does that work and what does one need to use this?

Do you need to map/annotate every Wt widget manually? Do signal/slots work as well?

Regards,

koen

RE: Now guys wt c ++ will also be in Qml development of a look at the attached qml wml framework - Added by Everton Fonseca about 5 years ago

Hi Koen

so I'm still developing the qml API, soon I'll provide the github url.

About the Signal case I'm still working with it, because Wt and Qt have big problems with this cross of headers, because of the word emit.

Can you help me with this problem?

Greetings,

Everton Fonseca

RE: Now guys wt c ++ will also be in Qml development of a look at the attached qml wml framework - Added by Florian Ransmayr about 5 years ago

Hey,

one way to deal with this problem is to add CONFIG+=no_keywords to your qt project file. This tells Qt not to define the moc keywords signals, slots and emit. You have to change all occurrences of signals, slots and emit to Q_SIGNALS, Q_SLOTS and Q_EMIT. For details check Qt documentation https://doc.qt.io/qt-5/signalsandslots.html bottom of the page ("Using Qt with 3rd Party Signals and Slots").

I am not sure if this is the best solution but it should work like this.

Best regards

Florian

RE: Now guys wt c ++ will also be in Qml development of a look at the attached qml wml framework - Added by Koen Deforche about 5 years ago

Hey,

In addition, checkout the wtwithqt example which shows how to have compatibility between the two libraries.

Regards,

Koen

    (1-5/5)