ui form
-
This is effectively a TableView that would have delegates for the columns from the looks of things. I suggest having a look at it here. In Qt 5.15 there will be headerview classes added to Qt Quick Controls 2 too, so that will help with the header part as well, see here for more information on that.
-
In Qt 5.15 there will be headerview classes added to Qt Quick Controls 2 too, so that will help with the header part as well, see here for more information on that.
What I'm interested to know is (if you have info):
- Will in Qt6 the header view know what a tree model is, and can we get subheaders for model indices (probably not, but still curious)?
- Are we going to get delegates for the header view? I've been hacking my way out of this conundrum on multiple occasions and it ain't at all pretty if you don't want to link against the privates and effectively rewrite significant portions of the code?
-
@kshegunov said in ui form:
In Qt 5.15 there will be headerview classes added to Qt Quick Controls 2 too, so that will help with the header part as well, see here for more information on that.
What I'm interested to know is (if you have info):
- Will in Qt6 the header view know what a tree model is, and can we get subheaders for model indices (probably not, but still curious)?
I don't think there are plans in this direction, but I might not be aware of it yet. Though I would think that it is easier than it seems with the new headerview type at least as it is easier to add in your own than it is with widgets since it is a subclass of TableView. So it should be doable but I have not personally tried it.
- Are we going to get delegates for the header view? I've been hacking my way out of this conundrum on multiple occasions and it ain't at all pretty if you don't want to link against the privates and effectively rewrite significant portions of the code?
Yes, the headerview in Qt Quick Controls 2 is a subclass of TableView so you can have delegates for it.
-
I have to stick to Qt 5.9.
I almost managed to do what I needed using ListView to edit data
the row is a bit complicated than the inital layout, it is a ListView row containing 2 rowlayouts.
the second row is disabled or enabled by a switchI have a focus problem, I am able to move between cells left , right, bottom, up . BUT the view does not scroll when I go down past the visible area.
The move between cells is a bit complicated,