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. List of custom widgets in QT
Forum Updated to NodeBB v4.3 + New Features

List of custom widgets in QT

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 191 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.
  • C Offline
    C Offline
    Cynical
    wrote on last edited by
    #1

    Hello, I'm rather new to QT. I'm working on a small personal project for which I need to make a list of entries that each should contain certain information. Something akin to this. The problem I'm having is that the listboxes are very restrictive design-wise and the vertical layout doesn't seem to allow for stacking widgets one after another in a list-like manner with a scrollbar, rather it evenly spaces the widgets out to completely fill out the vertical layout. If any of you are familiar with Windows Forms I'm looking for something closer to the FlowLayoutPanel.

    Is there something obvious I'm missing here that would allow me to accomplish something like the image linked above?

    Thank you for your advice.

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

      Hi and welcome to devnet,

      This looks mainly like a QListView/Widget with a custom QStyledItemDelegate.

      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
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        There is also QScrollArea that would allow this,
        however, it will be heavy if many items and the
        List + Delegate is really the preferred way to go even it
        do not allow any Design time setup and is mostly just code.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved