File main.c
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);...
}
How to Fix it???
Easy to Fix...
Maybe in this version,It doesn't support QGuiApplication..
So,you have to instead use QApplication..
1. Add widgets to file .pro to use QApplication
QT += quick widgets
2. in main.c change to use QApplication
#include <QApplication>#include <QQmlApplicationEngine>int main(int argc, char *argv[]){QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);QApplication app(argc,argv);...}
No comments:
Post a Comment