QML Plugin Example▲
Sélectionnez
TEMPLATE =
lib
CONFIG +=
plugin
QT +=
qml
DESTDIR =
import
s/TimeExample
TARGET =
qmlqtimeexampleplugin
SOURCES +=
plugin.cpp
pluginfiles.files +=
\
import
s/TimeExample/qmldir \
import
s/TimeExample/center.png \
import
s/TimeExample/clock.png \
import
s/TimeExample/Clock.qml \
import
s/TimeExample/hour.png \
import
s/TimeExample/minute.png
qml.files =
plugins.qml
qml.path +=
$$[QT_INSTALL_EXAMPLES]/
qml/
qmlextensionplugins
target.path +=
$$[QT_INSTALL_EXAMPLES]/
qml/
qmlextensionplugins/
import
s/TimeExample
pluginfiles.path +=
$$[QT_INSTALL_EXAMPLES]/
qml/
qmlextensionplugins/
import
s/TimeExample
INSTALLS +=
target qml pluginfiles
CONFIG +=
install_ok # Do not
cargo-
cult this
!