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

arun kumar arunkumaraymuo at gmail.com
Wed Mar 18 04:57:34 CET 2009


On 3/18/09, Scott Aron Bloom <Scott.Bloom at sabgroup.com> wrote:
> No different then any other widget.. You adjust the size policies.
>
> Scott
>
> -----Original Message-----
> 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 6:53 PM
> To: Malyushytsky, Alex; qt-interest at trolltech.com
> Subject: Re: [Qt-interest] How do I choose the number of rows that
> aQListWidget displays?
>
> You're right, I'm getting a scrollbar. However, in my application, the
> listwidget is only displaying 3 items total. How can I get it to display
> 5,
> or 10, plus the scrollbar?
>
> Thanks,
>
> Robert
>
> ----- Original Message -----
> From: "Malyushytsky, Alex" <alex at wai.com>
> To: <qt-interest at trolltech.com>
> Sent: Tuesday, March 17, 2009 5:27 PM
> Subject: Re: [Qt-interest] How do I choose the number of rows that a
> QListWidget displays?
>
>
> 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 tr
> olltech.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.tr
> olltech.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."
>
>
>
> ------------------------------------------------------------------------
> --------
>
>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>
>
> ------------------------------------------------------------------------
> --------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.0.237 / Virus Database: 270.11.16/2005 - Release Date:
> 03/16/09
> 19:01:00
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list