[Qt-interest] Looking for some alternative of CListCtrl of MFCs

Deepak Gupta mailmeatdkg at gmail.com
Mon Jun 29 18:45:59 CEST 2009


Guys, Sorry to bug you again, but looks like I am going nowhere :-(

I browsed through the examples directory and tried to use
basicsortfiltermodel code to create my model and used
setModel function of my QListView.

After a bit googling I found the following discussion from the archives and
it says that is not at all possible to create multiple columns in QListView
post 4.0

http://lists.trolltech.com/qt-interest/2005-08/thread00619-0.html

Any comments Scott.

Regards
Deepak

On Mon, Jun 29, 2009 at 12:56 AM, Scott Aron Bloom <Scott.Bloom at sabgroup.com
> wrote:

>  Take a look at the itemviews directory of the examples area…
>
>
>
> QStandardItemModel and QListView are both used.. however separately…
>
>
>
> But… after reading the MVD (delegates not controllers in QT J ) docs from
> QT, and looking at all the itemviews examples  I would recommend swapiping
> in and out the differtent types of views  and seeing the results.
>
>
>
> Scott
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Deepak Gupta
> *Sent:* Sunday, June 28, 2009 11:48 AM
> *To:* qt-interest at trolltech.com
> *Subject:* Re: [Qt-interest] Looking for some alternative of CListCtrl of
> MFCs
>
>
>
> I am new to QT.
> I started reading the MVC theory of QT and want to quickly do some hands
> on.
> Can any one point me some example in examples directory which uses
> QListView and QStandardItemModel together.
>
> Regards
> Deepak
>
> On Sat, Jun 27, 2009 at 3:12 AM, Deepak Gupta <mailmeatdkg at gmail.com>
> wrote:
>
> hmm it seems I need to look at QT's MVC infra.
>
> Thanks Scott.
>
> Regards
> Deepak
>
> On Sat, Jun 27, 2009 at 3:02 AM, Scott Aron Bloom <
> Scott.Bloom at sabgroup.com> wrote:
>
>   QListView handles all that you have asked for.
>
>
>
> Its all in the model..
> Scott
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *Deepak Gupta
> *Sent:* Friday, June 26, 2009 2:30 PM
> *To:* qt-interest at trolltech.com
> *Subject:* [Qt-interest] Looking for some alternative of CListCtrl of MFCs
>
>
>
> Hello Folks,
>
> I am looking for some alternative of CListCtrl of MFC in QT 4.5
>
> I tried to use QListView and corresponding widget class but it seems that
> in QT 4.5 these classes no longer supports adding extra columns.
>
> Also I need to provide checkboxes for selection/deselection in each of my
> row in the view.
>
> Can any one suggest me on which class to use for this?
>
> Regards
> Deepak
>
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090629/ef589d9a/attachment.html 


More information about the Qt-interest-old mailing list