From a4c3f074a6767850b05126959db0a7af8dfd49d3 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 15 Nov 2016 17:22:40 +0100 Subject: 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 --- .../quickcontrols2/contactlist/contactlist.pro | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/quickcontrols2/contactlist/contactlist.pro (limited to 'examples/quickcontrols2/contactlist/contactlist.pro') 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 -- cgit v1.2.3