- Qt 5.5
- Qt QML
- QML Plugin Example
- qmlextensionplugins.pro Example File
- Qt 5.5.1 Reference Documentation

# qmlextensionplugins.pro Example File

qmlextensionplugins/qmlextensionplugins.pro

    TEMPLATE = lib
    CONFIG += plugin
    QT += qml

    DESTDIR = imports/TimeExample
    TARGET  = qmlqtimeexampleplugin

    SOURCES += plugin.cpp

    pluginfiles.files += \
        imports/TimeExample/qmldir \
        imports/TimeExample/center.png \
        imports/TimeExample/clock.png \
        imports/TimeExample/Clock.qml \
        imports/TimeExample/hour.png \
        imports/TimeExample/minute.png

    qml.files = plugins.qml
    qml.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins
    target.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/TimeExample
    pluginfiles.path += $$[QT_INSTALL_EXAMPLES]/qml/qmlextensionplugins/imports/TimeExample

    INSTALLS += target qml pluginfiles