Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Launch Storyboard images with CMake?

Launch Storyboard images with CMake?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 454 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.
  • R Offline
    R Offline
    RogueWarrior
    wrote on last edited by
    #1

    I can't find a solution to this. I'm building an iOS app using CMake. I want to use a LaunchScreen.storyboard file. That storyboard has an image in it. I created the storyboard and the xcassets in XCode. I've got the image placed in the storyboard just fine. I've set up the CMakeLists.txt file to use the AppIcon and the storyboard. This works to a point. The AppIcon is correct. It's loading the storyboard (because I have a customized Label item in it) but I don't get the image. If I look at the app's package contents, it looks like the image file wasn't copied in there. So the question is, what's the correct way to do this? The Qt docs are no help because it skips over including images and I don't want to use the deprecated LaunchImage method.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kim Nancy
      wrote on last edited by
      #2

      Absolutely! To include LaunchScreen.storyboard images, list them explicitly in CMakeLists.txt within the add_executable command. This ensures proper file copying during build, resolving the issue and displaying images correctly on your iOS app launch screen.

      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