[Qt-interest] How do I choose the number of rows that a QListWidget displays?

Malyushytsky, Alex alex at wai.com
Tue Mar 17 22:27:49 CET 2009


You don't chose.
It displays everything in the list.
If list does not fit viewport (basically defined by geometry of QListWidget), scrollbars are displayed.

Alex

________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Robert Allan Schwartz
Sent: Tuesday, March 17, 2009 1:57 PM
To: Scott Aron Bloom
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] How do I choose the number of rows that a QListWidget displays?

I asked a different question.

My question is: How do I choose the number of rows that are DISPLAYED, not that are contained.

Thanks,

Robert


-------- Original Message --------
Subject: RE: [Qt-interest] How do I choose the number of rows that a
QListWidget displays?
From: "Scott Aron Bloom" <Scott.Bloom at sabgroup.com>
Date: Tue, March 17, 2009 4:47 pm
To: "Robert Allan Schwartz" <notbob at tessellation.com>,
<qt-interest at trolltech.com>
The number of rows for QListWidget is based on the count in the items that you add..

It changes for every addItem and addItems (or inserItem and deleteItem)

Scott


From: Robert Allan Schwartz [mailto:notbob at tessellation.com]
Sent: Tuesday, March 17, 2009 11:16 AM
To: qt-interest at trolltech.com; Scott Aron Bloom
Cc: Robert Allan Schwartz
Subject: RE: [Qt-interest] How do I choose the number of rows that a QListWidget displays?

Not meaning to be sarcastic, but I did read the docs; had I found the answer there, I would not have posted.

I haven't tried any functions, because I didn't find any functions that looked like they would do what I wanted.

I searched for 'row' in the doc pages for QListWidget and all of its base classes, and did not find what I was looking for.

Thanks,

Robert


-------- Original Message --------
Subject: Re: [Qt-interest] How do I choose the number of rows that a
QListWidget displays?
From: "Scott Aron Bloom" <Scott.Bloom at sabgroup.com>
Date: Tue, March 17, 2009 2:12 pm
To: <qt-interest at trolltech.com>
Try reading the docs.

Let us know what functions you have tried..

I would do a search on 'row' in the QListWIdget help

Scott

From: qt-interest-bounces at trolltech.com [<mailto:qt-interest-bounces at trolltech.com>mailto:qt-interest-bounces at trolltech.com] On Behalf Of Robert Allan Schwartz
Sent: Tuesday, March 17, 2009 11:10 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] How do I choose the number of rows that a QListWidget displays?

Hi All,

Newbie here. This is my first post.

How do I choose the number of rows that a QListWidget displays?

Right now, different QListWidget's display different numbers of rows, and I don't know why.

Thanks,

Robert
________________________________
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
<http://lists.trolltech.com/mailman/listinfo/qt-interest>http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090317/55d544bc/attachment.html 


More information about the Qt-interest-old mailing list