diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2016-11-15 17:22:40 +0100 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-11-17 07:43:20 +0000 |
commit | a4c3f074a6767850b05126959db0a7af8dfd49d3 (patch) | |
tree | ef7bf9a48357858b5e3c25bddce1a272ea36390f /examples/quickcontrols2/contactlist/contactlist.pro | |
parent | 3ea7f91d9bb0e74f1c49384019f22d55b2fb6263 (diff) |
Adding new example Contact List
This example shows how to integrate a C++ backend without
disrupting the tooling.
A custom list model is implemented in C++ and registered as
a QML type.
Change-Id: I958bc38797ef353cdb5ea23ec69ada67e132ced7
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Diffstat (limited to 'examples/quickcontrols2/contactlist/contactlist.pro')
-rw-r--r-- | examples/quickcontrols2/contactlist/contactlist.pro | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/quickcontrols2/contactlist/contactlist.pro b/examples/quickcontrols2/contactlist/contactlist.pro new file mode 100644 index 00000000..8125d020 --- /dev/null +++ b/examples/quickcontrols2/contactlist/contactlist.pro @@ -0,0 +1,26 @@ +TEMPLATE = app +TARGET = contactlist + +QT += quick quickcontrols2 +CONFIG += c++11 + +HEADERS += \ + addressmodel.h + +SOURCES += main.cpp \ + addressmodel.cpp + +RESOURCES += \ + $$files(*.qml) \ + +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH=$$PWD/imports + +# Additional import path used to resolve QML modules just for Qt Quick Designer +QML_DESIGNER_IMPORT_PATH=$$PWD/designer + +OTHER_FILES += \ + designer/Backend/*.qml + +target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/contactlist +INSTALLS += target |