Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. qt6.51开发安卓程序,构建apk创建模板,无法设置横屏
Forum Updated to NodeBB v4.3 + New Features

qt6.51开发安卓程序,构建apk创建模板,无法设置横屏

Scheduled Pinned Locked Moved Unsolved Chinese
5 Posts 5 Posters 1.1k 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.
  • O Offline
    O Offline
    openai5673366
    wrote on last edited by
    #1

    如题,点击创建模板后,android目录是创建了,文件也复制过去了,但是最后提示无法更新项目文件,确定后设置横屏,开始编译,没有任何效果,不知道是不是这个新版本的bug还是我没有用对方法,以前老版本是可以的大概是6.24还是6.43

    1 Reply Last reply
    0
    • X Offline
      X Offline
      xyxxx
      wrote on last edited by
      #2

      请问您解决了吗,我也遇到了相同的问题

      W 1 Reply Last reply
      0
      • X xyxxx

        请问您解决了吗,我也遇到了相同的问题

        W Offline
        W Offline
        worse
        wrote on last edited by
        #3

        @xyxxx 我也遇到了,请问有解决方法吗?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          onetwothree
          wrote on last edited by onetwothree
          #4

          问下有解决吗,目前用qt creator+qt6.8开发android,创建模板的时候提示无法更新项目文件,关闭之后修改app名字也没效果。re1.png

          C 1 Reply Last reply
          0
          • O onetwothree

            问下有解决吗,目前用qt creator+qt6.8开发android,创建模板的时候提示无法更新项目文件,关闭之后修改app名字也没效果。re1.png

            C Offline
            C Offline
            cccccccb
            wrote last edited by
            #5

            @onetwothree 这个弹窗是正常的,它的意思是更新不到 CMakeLists.txt 文件上去,你需要自己更新
            在你的主程序里面加
            set_target_properties(MyApp PROPERTIES
            QT_ANDROID_PACKAGE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/android
            )
            名称和路径不要错,在修改就能看到效果

            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