fix compile & runtime error
This commit is contained in:
parent
5eddcadf26
commit
3b8d76258d
@ -14,6 +14,7 @@ HEADERS += \
|
|||||||
demo/DoricDemoBridge.h
|
demo/DoricDemoBridge.h
|
||||||
|
|
||||||
RESOURCES += qml.qrc
|
RESOURCES += qml.qrc
|
||||||
|
QTQUICK_COMPILER_SKIPPED_RESOURCES += qml.qrc
|
||||||
|
|
||||||
# Additional import path used to resolve QML modules in Qt Creator's code model
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
||||||
QML_IMPORT_PATH =
|
QML_IMPORT_PATH =
|
||||||
|
@ -14,7 +14,7 @@ public:
|
|||||||
QFile *file = new QFile(resource.fileName());
|
QFile *file = new QFile(resource.fileName());
|
||||||
file->open(QFile::ReadOnly | QFile::Text);
|
file->open(QFile::ReadOnly | QFile::Text);
|
||||||
QTextStream in(file);
|
QTextStream in(file);
|
||||||
in.setAutoDetectUnicode(true);
|
in.setCodec("UTF-8");
|
||||||
QString content = in.readAll();
|
QString content = in.readAll();
|
||||||
file->close();
|
file->close();
|
||||||
delete file;
|
delete file;
|
||||||
|
Reference in New Issue
Block a user