-1

I want to build a simple desktop application using QML (need nice transition animations), but i can't find any demos. The demos on qt docs website are using some shared files i can't find (and anyway they have both pro and QML pro while my application has only one view, so it's really overkill). I've found some code on github, but it seems like it's Qt5 only.

What i'm building is simple QML app with JS logic (remote JSON API calls) and some C++ code for platform specific stuff. Mb QML is just wrong idea for me?

Thanks.

Andrei Shikalev
  • 702
  • 4
  • 13
Ximik
  • 2,435
  • 3
  • 27
  • 53
  • 1
    QML is good idea for you (to my mind). What shared files do you could not find? On the official web site for Qt 4.8 they are all available http://doc.qt.io/qt-4.8/qtquick.html#examples . QML pro files used for QmlViewer, you can use QDeclarativeView widget and load QML file on it. Some how-to on http://doc.qt.io/qt-4.8/qml-integration.html – Andrei Shikalev May 16 '15 at 17:26
  • You just answered my question with this qt-4.8 links. The issue was the docs i've found was all about QtQuick2, so Qt5 specific. P.S. Can you repost it as answer? – Ximik May 16 '15 at 17:53
  • I'm glad to help you. My answer is so trivial. – Andrei Shikalev May 16 '15 at 18:18
  • There are so many sites with QT docs: trolltech (seems down however), nokia, qt. And this is confused me. – Ximik May 16 '15 at 18:20
  • Why Qt 4, btw? If there's no real strong reason, I'd highly recommend latest Qt 5 and Qt Quick 2 and its Qt Quick Controls. – hyde May 19 '15 at 17:32
  • Because most linux distros are using qt4 by default. – Ximik May 20 '15 at 14:21

1 Answers1

0

For Qt 4.8.6 Qt Quick examples and demos located at QML Examples and Demos

QML .qmlproject files used for QML Viewer but you can use QDeclarativeView widget and load QML file on it as described here: Integrating QML Code with Existing Qt UI Code.

Andrei Shikalev
  • 702
  • 4
  • 13