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. QImageReader supportedImageFormats difference in release and debug build

QImageReader supportedImageFormats difference in release and debug build

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 667 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.
  • M Offline
    M Offline
    MoritzN
    wrote on last edited by
    #1

    Hi guys, I have a problem with using QImageReader.

    qDebug() << QImageReader::supportedImageFormats();
    

    In the debug build I get this:

    ("bmp", "cur", "gif", "icns", "ico", "jpeg", "jpg", "pbm", "pgm", "png", "ppm", "svg", "svgz", "tga", "tif", "tiff", "wbmp", "webp", "xbm", "xpm") 
    

    and in release build this:

    ("bmp", "pbm", "pgm", "png", "ppm", "xbm", "xpm") 
    

    My program has a drag and drop function and I use QImageReader to check if a file is a picture file. In my debug build it works perfectly fine.

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @MoritzN
      I just checked in Qt 5.9.3 gave same results.

      alt text

      alt text

      --Alles ist gut.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MoritzN
        wrote on last edited by
        #3

        Thank You!
        I found the problem!

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

          Hi and welcome to devnet,

          What was the problem ?

          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
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved