PDA

View Full Version : Qt or Qml



ganeshgladish
20th April 2013, 12:01
hi friends,

i have one doubt, which one is best for developing gorgeous GUI for my embedded environment....qml or c++...please provide some solutions please.......

wysota
20th April 2013, 13:28
For "gorgeous GUIs" QML is better most of the times.

ganeshgladish
21st April 2013, 08:10
thank you for your reply,
but qml don't that much object when compared with Qt-c++

wysota
21st April 2013, 09:44
I don't understand what you mean.

ganeshgladish
21st April 2013, 11:05
sry,

i have developed Qt database using c++, i also developed gui page using Qml....qml gui having textinput object,i want to type the names in qml text input and save it in Qt database.please help me to connect QT and Qml.

anda_skoa
23rd April 2013, 14:54
See QDeclarativeContext::setContextProperty() http://qt-project.org/doc/qt-4.8/qdeclarativecontext.html
on QDeclarativeEngine::rootContext()

You export an object from C++ and then either manipulate one if its properties or call one of its slots or Q_INVOKABLE methods.

Cheers,
_