Qt-interest Archive, November 2007
Forcing the height of a QListView to a factor of the height of its items
Message 1 in thread
Hi,
I'm looking for an easy way to force the height of a QListView to a
integer factor of the height of its items. The reason: The items shall
be displayed completly and not only with its half height.
Thanks a lot,
Sven
--
[ signature omitted ]
Message 2 in thread
On Friday 02 November 2007 20:04, Sven Flossmann wrote:
>
> I'm looking for an easy way to force the height of a QListView to a
> integer factor of the height of its items. The reason: The items shall
> be displayed completly and not only with its half height.
>
I'd be interested to know more about this too.
It may be that Sven and I are both missing something obvious, but I'm
experiencing a problem (with QTableView in my case) which could be solved
this way.
Specifically, if the item at the bottom of the view appears to the user to be
totally visible, but in fact is not (i.e. the text is visible, but the lower
grid line may be a few pixels out of the frame), the click behaviour does not
work properly. In my case, I'm trying to double-click it, but what happens is
that the first click on the item causes an automatic scroll up by one line,
and the second scrolls up again. No double-click signal gets sent to the
original item.
Being able to guarantee an integral number of complete items would resolve
this (though the presence of a horizontal scroll bar may complicate it!).
--
[ signature omitted ]