Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. Qt5.3.1 部署到android设备的时候qml和图片等资源文件怎样部署上去?
Qt 6.11 is out! See what's new in the release blog

Qt5.3.1 部署到android设备的时候qml和图片等资源文件怎样部署上去?

Scheduled Pinned Locked Moved Chinese
3 Posts 3 Posters 2.8k Views 1 Watching
  • 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.
  • W Offline
    W Offline
    wynner
    wrote on last edited by
    #1

    qt5.3.1 部署到android设备的时候qml和图片等资源文件怎样部署上去?

    用qt5.3.1写的qml程序要放到android上,怎样在部署的时候把qml和图片文件等资源文件也部署上去

    1 Reply Last reply
    0
    • S Offline
      S Offline
      surfsky
      wrote on last edited by
      #2

      最好用qrc方案,将qml和图片都归到资源文件里面去,编译到二进制文件里面去。这是官方推荐的跨平台资源移植方案。

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

        是的,最好是qrc的方案,而且可以保证别人不会篡改源代码。
        另外Qt 5.2.1生成的模板还有一个方法,将所有资源复制到目标文件夹中。可以安装Qt 5.2.1,然后新建 Qt Quick Application体验一下。

        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