How to deploy qtquickcontrols2.conf?
Hi. noob question here. I have a Qt Quick project. I'm using QtQuick.Controls 2.2 along with a config.qrc file that has my qtquickcontrols2.conf file defining Style=Imagine. When I build and run within Qt Creator all is well. I can see the style being applied. When I copy the .exe to my deployment folder on my pc and run the .exe from there, I do not see the styles being applied.
Do I need to copy any other files to get qtquickcontrols2.conf into my deployment folder and seen by the app when loaded? I was under the impression that all gets merged into the .exe, but maybe I'm wrong.
If you include your .qrc in .pro file (using
RESOURCESvariable) then yes, it is compiled right into your .exe file.
I strongly suspect that the reason why you're not seeing the styles is that the relevant plugins are missing. Please use
windeployqttool and check out the deployment guide.
I was able to get them to apply on my windows machines. I've done so many changes hard to keep track but I think it was just like you suggested a situation of old plugins. Now I am trying to deploy to an iOS device but the stylings aren't applied there. Do I need to set something in Info.plist or somewhere else to get the styling conf to copy to the iOS device? I haven't been able to find any documentation detailing that.
Do I need to set something in Info.plist or somewhere else to get the styling conf to copy to the iOS device?
Can't help with that, sorry. I've never deployed anything to iOS.