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

Malyushytsky, Alex alex at wai.com
Mon Jun 29 23:15:26 CEST 2009


Are you sure you have to stick with QListView?
May you just need to modify QTableView or  even QTreeView look?
Rows with columns are naturally fall into QTableView concept I think.

Regards,
    Alex


From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Deepak Gupta
Sent: Monday, June 29, 2009 9:46 AM
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Looking for some alternative of CListCtrl of MFCs

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<mailto: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 :) ) 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> [mailto: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<mailto: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<mailto: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<mailto: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> [mailto: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<mailto: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<mailto:Qt-interest at trolltech.com>
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/20090629/319b0396/attachment.html 


More information about the Qt-interest-old mailing list