[Qt-interest] QListView::scrollTo() problem

Anthony Serdyukov uksus70 at gmail.com
Tue Dec 23 07:01:26 CET 2008


Good day.

I have QListView on my form.
At start up the model for the view is empty.
When user "opens document", the model is emitting modelReset() signal,
and the data is queried by the view.

All was going well. But now I need to scroll list view to some item
during document opening. I tried to use scrollTo method, but it
failed.
My investigation told me that the view is still querying SizeHintRole
when I call scrollTo() method.
So, it cannot satisfy my request since the scrollbars range is
undefined yet. But this is just my supposition.

What could you suggest?

-- 
Regards,
Anthony



More information about the Qt-interest-old mailing list