Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Read Flile to QImage
Qt 6.11 is out! See what's new in the release blog

Read Flile to QImage

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 949 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.
  • D Offline
    D Offline
    Dev1337
    wrote on last edited by Dev1337
    #1

    Hello together.

    I got a simpel thing wich i cant figure out..

    i got a image path on android "file:///storage/emulated/0/DCIM/IMG_00000001.jpg".

    Now i want to Read that file to QImage readedFile;
    I am faling all the time... can someone help me mybe?

    Joel BodenmannJ 1 Reply Last reply
    0
    • D Dev1337

      Hello together.

      I got a simpel thing wich i cant figure out..

      i got a image path on android "file:///storage/emulated/0/DCIM/IMG_00000001.jpg".

      Now i want to Read that file to QImage readedFile;
      I am faling all the time... can someone help me mybe?

      Joel BodenmannJ Offline
      Joel BodenmannJ Offline
      Joel Bodenmann
      wrote on last edited by Joel Bodenmann
      #2

      What exactly is failing? Can you show us your (relevant!) code?
      The most minimalistic solution would be to use QImage::load(const QString& filePath). More advanced approaches would be using QImageReader.

      Industrial process automation software: https://simulton.com
      Embedded Graphics & GUI library: https://ugfx.io

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dev1337
        wrote on last edited by
        #3

        OmG. I got it to work.....
        Just changed
        "file:///storage/emulated/0/DCIM/IMG_00000001.jpg"
        to
        "/storage/emulated/0/DCIM/IMG_00000001.jpg".

        but Thx @ all

        Joel BodenmannJ 1 Reply Last reply
        0
        • D Dev1337

          OmG. I got it to work.....
          Just changed
          "file:///storage/emulated/0/DCIM/IMG_00000001.jpg"
          to
          "/storage/emulated/0/DCIM/IMG_00000001.jpg".

          but Thx @ all

          Joel BodenmannJ Offline
          Joel BodenmannJ Offline
          Joel Bodenmann
          wrote on last edited by
          #4

          Ah, I forgot to mention that, sorry :p

          Industrial process automation software: https://simulton.com
          Embedded Graphics & GUI library: https://ugfx.io

          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