thank you but ...
My application is oriented QtQuick.. ot means there is some Classes in C++ (not user interface) and i use them in qml by register them using qmlRegisterType
So i don't see any other module i can remove here:
Check These files:
file.pro looks like that
@TEMPLATE = app
QT += quick network sql multimedia
SOURCES += main.cpp
httpdownloader.cpp
rpa.cpp
database.cpp
liodate.cpp
medianews.cpp
RESOURCES += qml.qrc
qml.qrc
Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
Default rules for deployment.
include(deployment.pri)
HEADERS +=
httpdownloader.h
rpa.h
database.h
liodate.h
medianews.h
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
OTHER_FILES +=
DISTFILES +=
Notes.txt
@
and my main.cpp
@
#include <QGuiApplication>
#include <QtQml>
#include <QQmlApplicationEngine>
#include<database.h>
#include <medianews.h>
#include <liodate.h>
#include <rpa.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
//registering Classes to Qml
// qmlRegisterType<HttpDownloader> ("HttpDownloader", 1,0, "Downloader");
qmlRegisterType<Database> ("Database", 1,0, "Database");
qmlRegisterType<News> ("News", 1,0, "News");
qmlRegisterType<Rpa> ("Rpa", 1,0, "Rpa");
qmlRegisterType<LioDate> ("LioDate", 1,0, "LioDate");
// QML ENGINE
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
@
Before in the main .cpp it was QApplication instead of QGuiApplication but i changed QApplication to QGuiApplication in other to remove widgets module in the file.pro
Also in the main.cpp , i can't remove #include <QtQml> because it is used for qmlRegisterType.
Please. Thank you