Unsolved QListView horizontal
-
I am trying to do a horizontal QListView - a QListView with the items side-by-side instead of top-to-bottom. Though I don't know how to do it in such form that when the items reach the right edge screen the keep up in the same direction and a horizontal scrollbar shows up. In sum: I need a QListView horizontal that have just one line of content and the horizontal scrollbar appears as needed.
Any ideas?
Thanks beforehand.
-
Hi,
Are you thinking about something like the flow property ?
-
I saw that property, but I don't know how to enforce that QListView always have the same height and just vary the width. I don't know if help but the QListView find itself inside of a QDockWidget when this widget is on top and on bottom of screen.
-
hi
If u set flow to LeftToRight , it seems to do as u ask for.
http://postimg.org/image/80ywr588j/
:) -
If all your elements have the same size you could set the grid size