QML and QT Quick error
-
Hi all . I hope you are well. I am not. I started with Qt not long ago and for a week I have decided to get into Qt Quick and QML and each time I create a project I get an error: Qt Quick emulation layer crashed. (Line 1) .. please need help i don't know why i got this error i'm using Qt 5.14.1 on windows
-
Hi all . I hope you are well. I am not. I started with Qt not long ago and for a week I have decided to get into Qt Quick and QML and each time I create a project I get an error: Qt Quick emulation layer crashed. (Line 1) .. please need help i don't know why i got this error i'm using Qt 5.14.1 on windows
-
Hi and welcome to devnet forum
Similar as to your previous question you need to give more information about your actual problem.
What compiler are you using?
Also it would help to provide source causing the problem. -
Hi and welcome to devnet forum
Similar as to your previous question you need to give more information about your actual problem.
What compiler are you using?
Also it would help to provide source causing the problem. -
@koahnig
after creating the Quick project everything goes well I compile perfectly but when I enter the designer for the design I receive an error in line 1 of the .qml file suddenly.
error: Qt Quick emulation layer crashed:( Line :1) -
Which of the default projects are using?
I have created the stack qt quick project and I can open the designer with the qml.
Which version of Qt creator are you using?
-
@koahnig
I use QT Creator as a development environment. I installed the open source version ..
sorry if i take a long time to answer just that i am new in the forum and i should only answer after every 10 minutesBest is to create a new Qt Quick project. Compile and run as is to verify that it is properly created. Then try to use the designer on its .qml files. As indicated above, I have tried the application Stack
It should work with this project.
If not, you probably have a problem with your installation of Qt. Remove and reinstall the open source version completely. -
Best is to create a new Qt Quick project. Compile and run as is to verify that it is properly created. Then try to use the designer on its .qml files. As indicated above, I have tried the application Stack
It should work with this project.
If not, you probably have a problem with your installation of Qt. Remove and reinstall the open source version completely.@koahnig
Hello since I read your message I try in wine to solve the problem but nothing. I use the emulation layer given by Qt nothing works I even use the puppet nothing always but in revenge I noticed that my path was empty in the .pro file. should i add some path? I am waiting for your response thank you -
Best is to create a new Qt Quick project. Compile and run as is to verify that it is properly created. Then try to use the designer on its .qml files. As indicated above, I have tried the application Stack
It should work with this project.
If not, you probably have a problem with your installation of Qt. Remove and reinstall the open source version completely. -
This is my automatically generated .pro file
QT += quick CONFIG += c++11 # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the # deprecated API to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target
Both settings are empty as well.
This above are my Qt creator settings for Qt Quick.
At the moment I have no further idea of might be wrong with your setup.
-
This is my automatically generated .pro file
QT += quick CONFIG += c++11 # The following define makes your compiler emit warnings if you use # any Qt feature that has been marked deprecated (the exact warnings # depend on your compiler). Refer to the documentation for the # deprecated API to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp RESOURCES += qml.qrc # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = # Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = # Default rules for deployment. qnx: target.path = /tmp/$${TARGET}/bin else: unix:!android: target.path = /opt/$${TARGET}/bin !isEmpty(target.path): INSTALLS += target
Both settings are empty as well.
This above are my Qt creator settings for Qt Quick.
At the moment I have no further idea of might be wrong with your setup.
-
@koahnig
Hi you are doing well I hope it is exactly the same as at home but I do not understand why mine has problems .. you use the open source version? -
-
Good Morning everybody,
I have the same Problem, with my QT...
I also have QT 5.14.1, on my Windows 8.1 System..Have you already found a soltion or any other Ideas that i could try to fix this?
Regards
Maurice -
Hey koahnig,
thanks.
I have been working with Qt 5.9.0 for a while but I've never really used the Designer in QtCreator.
I wanted to try the Designer in 5.9 but that didn't work, with the same.
So Yesterday I installed a completely fresh new Qt 5.14.1 with the online installer and I tried the "heartrate-game" and the "gallery" example but this didn't work either with. I compiled with msvc2015 64 bit and i can also start the example, but the designer doesn't work..I already tried with some other paths that i found as solution but nothing really fixed the problem.
Thanks for you help.
-
Hey koahnig,
thanks.
I have been working with Qt 5.9.0 for a while but I've never really used the Designer in QtCreator.
I wanted to try the Designer in 5.9 but that didn't work, with the same.
So Yesterday I installed a completely fresh new Qt 5.14.1 with the online installer and I tried the "heartrate-game" and the "gallery" example but this didn't work either with. I compiled with msvc2015 64 bit and i can also start the example, but the designer doesn't work..I already tried with some other paths that i found as solution but nothing really fixed the problem.
Thanks for you help.