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. can i preview All fomats of image in QListWidget?
Forum Update on Monday, May 27th 2025

can i preview All fomats of image in QListWidget?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 1.7k 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.
  • O Offline
    O Offline
    opengpu2
    wrote on last edited by
    #1

    can i preview All fomats of image in QListWidget?
    i remember last year when i want to preview each image in the QListWidget, i met abstocales,
    does QTreeWidgetItem::setIcon surpport .tga, .dds, etc?
    thank you very much

    p3c0P 1 Reply Last reply
    0
    • O opengpu2

      can i preview All fomats of image in QListWidget?
      i remember last year when i want to preview each image in the QListWidget, i met abstocales,
      does QTreeWidgetItem::setIcon surpport .tga, .dds, etc?
      thank you very much

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @opengpu2 Since setIcon takes QIcon which in turn takes QPixmap, the allowed formats are here.

      157

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

        Hi,

        in addition to @p3c0 you can also implement your custom plugin to add a new format
        Read here for mor information.

        Once your problem is solved don't forget to:

        • Mark the thread as SOLVED using the Topic Tool menu
        • Vote up the answer(s) that helped you to solve the issue

        You can embed images using (http://imgur.com/) or (http://postimage.org/)

        1 Reply Last reply
        0
        • O Offline
          O Offline
          opengpu2
          wrote on last edited by
          #4

          how about TGA, DDS?
          is there any way to open it?

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

            Hi,

            Have a look at the qtimageplugins repository to see if it offers what you need

            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
            • O Offline
              O Offline
              opengpu2
              wrote on last edited by
              #6

              thank you, i found the plugins/imageformats/
              another question.

              1. for Dynamic dll, i just copy the imageformats dir and its DLL into my own project's bin dir. and i don't copy the Lib files. is it OK?
                i found that i don't need to link the Lib when i use dynamic link Qt. why? and should i do sth else, or just put the imageformats dir into my own bin dir.
              2. for Static lib, i copy the imageformats dir and its lib into my own project's lib dir.

              is this all right ?

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

                Did you take a look at this fine wiki entry for deployment ?

                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