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. [SOLVED] Ressource Path to iOS
QtWS25 Last Chance

[SOLVED] Ressource Path to iOS

Scheduled Pinned Locked Moved Mobile and Embedded
iosressource
4 Posts 3 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.
  • patrikdP Offline
    patrikdP Offline
    patrikd
    wrote on last edited by patrikd
    #1

    Hi all,
    I want to send a printjob to airprint. The item to be printed is located in my ressourcefiles. How do I adress the ressource path. I'll tried "NSString *path = @"qrc:/images/images/data/bild1.jpg"; but that doesn't seem to work.
    thx,
    patrik

    1 Reply Last reply
    0
    • ZlatomirZ Offline
      ZlatomirZ Offline
      Zlatomir
      wrote on last edited by Zlatomir
      #2

      Other libraries don't recognize the path: qrc:/... so to make available the file to other libraries/frameworks you'll need to extract the file into an temporary location, send that temporary path as parameter and after the job is done you can delete the temporary file.

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        To add to @Zlatomir, you can use QTemporaryFile for that

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • patrikdP Offline
          patrikdP Offline
          patrikd
          wrote on last edited by
          #4

          Hi guys,
          thx, will give it a try.
          best,
          patrik

          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