How to determine the number of items per row in GridView

  • Trying to get this grid centered regardless of how many items show up in a row (could change depending on screen resolution). If I can get the number of items in a GridView "row" then I can get it done. How to?

  • There is no direct way to identify the rows. Gridview dynamically puts the items based on the cellwidth and height specified. You can findout based width/cellWidth specified. Here I'm assuming that width and height specified delegate also matches with cellWidth and CellHeight

  • Okay, thanks.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.