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. Help to have a justify grid of items
Forum Updated to NodeBB v4.3 + New Features

Help to have a justify grid of items

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 168 Views
  • 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.
  • F Offline
    F Offline
    FabrisTB
    wrote on last edited by
    #1

    Hi,

    I'm fairly new to QT and I am developping a grid of image. Right now, I'm using widget I'll learn QML for later. I'm using widget manly to learn.

    For now, I'm using a QListWidget in IconMode with a custom delegate : when hovered, the images have some information about them. The problem is that the items aren't justify and QSS doesnt work a all to fix it. I'm not using a qtablewidget because the column number is determine by the list size

    I don't use a grid layout with qwidgets because in the long run, the grid can get 1000+ items, and people say it's not the way to do this.

    Here some screen : What I Have now : notice the space on the right VS How I want it to be (Dolphin KDE). Being able to resize the item depend on the list size would be great but I dont find a way to do it in delegate (it's not important for now tbh).

    Since I'm new, I know there are a lot of thing to learn. Did I use the correct widget ? Do you have any recommendations and some pointers ? Like using QListView or QTableView with QListItemModel or QTableItemModel. Or using QGraphicsView.

    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