Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    [SOLVED] Ressource Path to iOS

    Mobile and Embedded
    ios ressource
    3
    4
    913
    Loading More Posts
    • 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.
    • patrikd
      patrikd last edited by patrikd

      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 Reply Quote 0
      • Zlatomir
        Zlatomir last edited by Zlatomir

        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 Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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 Reply Quote 1
          • patrikd
            patrikd last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post