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. Displaying/grouping images
Forum Updated to NodeBB v4.3 + New Features

Displaying/grouping images

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.1k Views 2 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.
  • David.GD Offline
    David.GD Offline
    David.G
    wrote on last edited by
    #1

    Hello,

    Sorry for the lousy title, not sure if there's a established term to what I want to do. I was hoping someone could lead me on what classes and a little bit of explanation to get started on this feature.

    What I want to do is have a group of images grouped from left to right where the user can click on each section and get the desired information. Thing is I'm practically on diapers when it comes to GUI, I got the basics, yet I'm just not sure where to start (layouts, placement of images so that they don't overlap with each other).

    I created an screenshot of what I want to do, It'll probably remind you of WIndows 8 start menu.

    Note that I'm not asking for a full implementation, just guidance on the subject.

    ? 1 Reply Last reply
    0
    • David.GD David.G

      Hello,

      Sorry for the lousy title, not sure if there's a established term to what I want to do. I was hoping someone could lead me on what classes and a little bit of explanation to get started on this feature.

      What I want to do is have a group of images grouped from left to right where the user can click on each section and get the desired information. Thing is I'm practically on diapers when it comes to GUI, I got the basics, yet I'm just not sure where to start (layouts, placement of images so that they don't overlap with each other).

      I created an screenshot of what I want to do, It'll probably remind you of WIndows 8 start menu.

      Note that I'm not asking for a full implementation, just guidance on the subject.

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @David.G Hi,
      I would suggest to use QtQuick if you can. It's much easier to make good looking stuff like what you discribed with QtQuick than with traditional widgets.

      1 Reply Last reply
      0
      • David.GD Offline
        David.GD Offline
        David.G
        wrote on last edited by
        #3

        Hey, I'll take a look at it; I have no doubt that it'll be better doing it in QtQuick. Although for posterity it'd be nice to know the classes involved in QtWidgets.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          @David.G said:

          classes involved in QtWidgets

          You'll need QGridLayout and QLabel to display images. To trigger some action when one of your images is clicked you must reimplement QLabel's mouse event handlers. Have a look at https://wiki.qt.io/Clickable_QLabel for the latter.

          Hope this helps. Don't hesitate to ask if you need more info.

          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