QQmlApplicationEngine failed to load component in qt6.2
- 
Facing this issue in qt6.2 while using QQMLApplicationEngine and thereafter not able to recognize qml custom component because of it. Have been searching about it but neither solution worked.  
- 
What is the location of Background.qml file ? Looks like some import issue. 
- 
What is the location of Background.qml file ? Looks like some import issue. @dheerendra It's inside my QML folder and I did try giving the path at the top i.e. import "qrc:///Qt/project/sidechic/QML/Background.ui.qml" but it didn't work. 
 Btw I am following this tutorial : https://www.youtube.com/watch?v=GkzncJ71mm0&t=131s but their project is working fine.Also, here I am sharing my main.cpp to get a better picture of my code: 
  
- 
It is named as Background.ui.qml. Can you change the name to Background.qml & try ? 
 Also confirm whether Receiver is working ?
- 
It is named as Background.ui.qml. Can you change the name to Background.qml & try ? 
 Also confirm whether Receiver is working ?@dheerendra It is giving problem to my whole file then. Even rebuild is also showing issue after changing the ui.qml to qml.  
- 
You need to rename this in qrc file also. I think you changed the file name only in directory. qrc file still has old file name 
- 
You need to rename this in qrc file also. I think you changed the file name only in directory. qrc file still has old file name @dheerendra Yeah I changed it there and now it's not showing that error but it's showing the error for custom component used inside the Background.    I believe it's cause I still have this one file circle.ui.qml used as a custom component by sender.qml file. So will change the circle.ui.qml to .qml only file. 
 But I have few questions that:- Is .ui.qml file not supported anymore in Qt6? Cause I can't see the template for it either like I explicitly created .ui.qml by using .qml file template (yeah I created that cause they told to use ui.qml only) unlike the video, they used a specific .ui.qml file which was available in there Qt version.
 2)Or is there no difference between .ui.qml and .qml file now? as i said above that the latest version shows only qml file template, not the other one? Or am I missing something?
 
- Is .ui.qml file not supported anymore in Qt6? Cause I can't see the template for it either like I explicitly created .ui.qml by using .qml file template (yeah I created that cause they told to use ui.qml only) unlike the video, they used a specific .ui.qml file which was available in there Qt version.
- 
You need to rename this in qrc file also. I think you changed the file name only in directory. qrc file still has old file name @dheerendra Yay its working! Thanks a lot! So I guess there is no difference in ui.qml and .qml after all especially in qt6.2 
- 
@dheerendra Yay its working! Thanks a lot! So I guess there is no difference in ui.qml and .qml after all especially in qt6.2 @Azmuth Nothing specific in ui.qml. It is just a name of the file. It has qml code itself. So your component name should have been Background.ui {} (whatever name exist before .qml extension) 
 

