Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QImage failure/Bug in windows
QtWS25 Last Chance

QImage failure/Bug in windows

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.5k 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.
  • S Offline
    S Offline
    S.ANAND
    wrote on last edited by
    #1

    ok now i am here to introduce a QImage bug

    ok lets take a quick example rather that all the big stuff what i did

    Exmaple:

    consider two windows os wina , winb

    and consider the image viewer at http://doc.qt.digia.com/qt/widgets-imageviewer.html

    when we compile this in wina and try to run the .exe file in winb

    the Qimage will not load the image which we are passing and returns a NULL image

    and i tried the same with my own code not at (http://doc.qt.digia.com/qt/widgets-imageviewer.html) i got the same error

    so any one please help me

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hello,

      When you copy the .exe, you also need to copy the image format plugin DLLs. They are in <Qt>\plugins\imageformats

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • S Offline
        S Offline
        S.ANAND
        wrote on last edited by
        #3

        Can you please say how can i use that plugins

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [quote author="S.ANAND" date="1356782272"]Can you please say where can i found those[/quote]
          C:<Qt>\plugins\imageformats

          (<Qt> is where you installed Qt)

          Copy the DLLs into a "imageformats" subfolder, for your program. Like this:
          C:<YourProgram>\yourprogram.exe
          C:<YourProgram>\imageformats\qjpeg.dll

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • S Offline
            S Offline
            S.ANAND
            wrote on last edited by
            #5

            Thank you alot....:)

            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