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. Clickable thumbnails in QLabel or any alternative
Qt 6.11 is out! See what's new in the release blog

Clickable thumbnails in QLabel or any alternative

Scheduled Pinned Locked Moved General and Desktop
2 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.
  • T Offline
    T Offline
    tesmai4
    wrote on last edited by
    #1

    I am adding thumbnails of images from a folder in QLabel "(see this post for details)":http://qt-project.org/forums/viewthread/18283/ and displaying. Each image represents thumbnail of a video stream. How can I make these thumbnails as clickable so that respective video is played by clicking the respective thumbnail.
    Is it possible with this approach or is there a better way to achieve that?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      In my opinion it would be better to use "QPushButtons":http://qt-project.org/doc/qt-4.8/qpushbutton.html ordered in a layout such as "QGridLayout":http://qt-project.org/doc/qt-4.8/qgridlayout.html and a "QSignalMapper":http://qt-project.org/doc/qt-4.8/qsignalmapper.html to identify signals and handle buttons.

      http://anavi.org/

      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