Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to deploy qtquickcontrols2.conf?
Forum Update on Monday, May 27th 2025

How to deploy qtquickcontrols2.conf?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JrDeskJockey
    wrote on last edited by
    #1

    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.

    Thanks!

    1 Reply Last reply
    0
    • sierdzioS Online
      sierdzioS Online
      sierdzio
      Moderators
      wrote on last edited by
      #2

      If you include your .qrc in .pro file (using RESOURCES variable) 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 windeployqt tool and check out the deployment guide.

      (Z(:^

      1 Reply Last reply
      0
      • J Offline
        J Offline
        JrDeskJockey
        wrote on last edited by
        #3

        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.

        sierdzioS 1 Reply Last reply
        0
        • J JrDeskJockey

          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.

          sierdzioS Online
          sierdzioS Online
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @JrDeskJockey said in How to deploy qtquickcontrols2.conf?:

          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.

          (Z(:^

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved