Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Way to display Selectable image thumbnails with names under like PC desktop?
Forum Updated to NodeBB v4.3 + New Features

Way to display Selectable image thumbnails with names under like PC desktop?

Scheduled Pinned Locked Moved Unsolved Language Bindings
5 Posts 2 Posters 1.3k 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
    MikeLemon
    wrote on last edited by
    #1

    I'm basically looking to add a QGrid like widget to my image compressor app to preview selected images in thumbnail and I want them to be selectable like the thumbnails in most PC folders and desktops.
    Does Qt offer such a Widgets or what ever that is ready?

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

      Hi and welcome to devnet,

      Do you mean a grid of thumbnails like in DigiKam ?

      If so, a QTableView with a custom QStyledItemDelegate should be a good starting point.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you mean a grid of thumbnails like in DigiKam ?

        If so, a QTableView with a custom QStyledItemDelegate should be a good starting point.

        M Offline
        M Offline
        MikeLemon
        wrote on last edited by
        #3

        @SGaist Hi and thanks just recently had some time starting to develop PC app and hopefully android apps(if finding documentation for creating apps with pyqt won't be harder than developing the whole android kernal from scratch...)

        So Yeah I Guess I'm building some bulk image compressor and renamer like DigiKam(not completely sure about everything it does...) but in general I'm looking for a mechanisim to display and have selectable images in a grid abd have the names of the images also showup underneath them just like windows 10 "Windows explorer" ideally. and isn't QTableView just used for displaying str and csv elements?

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

          No it's table like view. You can show whatever you want using a delegate.

          However, that made me realise that QListView might be a better fit in your case. It does allow to show your items in a grid like manner that might be more suitable for your needs.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            No it's table like view. You can show whatever you want using a delegate.

            However, that made me realise that QListView might be a better fit in your case. It does allow to show your items in a grid like manner that might be more suitable for your needs.

            M Offline
            M Offline
            MikeLemon
            wrote on last edited by
            #5

            @SGaist Huh I've read a little about that QListView and in conjunction with setViewMode(QListView.IconMode) I believe It can do the intended job I'll try that later when I have a little more free time for it and update. Thanks!

            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