[Qt-interest] Modifying QListWidget scrolling behaviour ?

Malyushytsky, Alex alex at wai.com
Thu May 14 23:49:35 CEST 2009


Call void QListWidget::scrollToItem ( const QListWidgetItem * item, QAbstractItemView::ScrollHint hint = EnsureVisible )  ?

Alex


From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Stephen Collyer
Sent: Thursday, May 14, 2009 11:27 AM
To: qtInterest
Subject: [Qt-interest] Modifying QListWidget scrolling behaviour ?

I have a QListWidget to which I'm adding items using addItem();
I would like to ensure that the widget scrolls automatically to ensure that
the last added item is always visible by default.

Is it possible to do this ?

--
Stephen Collyer


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list