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. [SOLVED] Android's Gallery like widget in Qt
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Android's Gallery like widget in Qt

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

    Hi

    I'm porting app from android to Qt and I would need some help.

    Is there any similar widget in Qt to android's Gallery widget?

    thanks
    Borut

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Nothing like it in Qt library, maybe you can find something at qt-apps.org or somewhere also in web.

      Also such thing (don't know much about it, only quick googling now) I think can be created not hardly using graphicsview or qml.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ivan
        wrote on last edited by
        #3

        Yes, QGraphicsView is the way to go. See examples/graphicsview for examples on how to use it.

        Essentially, you need to create a subclass of QGraphicsWidget that will paint the picture and send signals when the user clicks it. And then, add a couple of those to the graphics scene and layout them.

        Ivan Čukić | ivan.cukic(at)kde.org | KDE e.V.
        Qt Ambassador (from the old Nokia days)

        1 Reply Last reply
        0
        • B Offline
          B Offline
          borut123
          wrote on last edited by
          #4

          I guess that also QListWidget could be used, with movement set to horizontal
          (or QML's ListView).

          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