You are not logged in.

Junior

Professional

  • "Junior" is male
  • "Junior" started this thread

Posts: 1,613

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

1

Sunday, December 24th 2006, 1:24am

RE: What is wrong in my code with Q3ListView?

Constructor for Q3ListView
QListView::QListView ( QWidget * parent = 0, const char * name = 0, WFlags f = 0 )

REF: http://doc.trolltech.com/4.0/q3listview.html

try:

Source code

1
CAlarmListView( QWidget * parent = 0, const char * name = 0, Qt::WFlags f = 0);


and change:

Source code

1
CAlarmListView::CAlarmListView( QWidget * parent, const char * name, Qt::WFlags f) : Q3ListView( parent, name, f )


Hope this helps.

2

Tuesday, December 26th 2006, 5:33pm

..

This post has been edited 1 times, last edit by "user_mail07" (Jan 18th 2007, 7:13pm)


Junior

Professional

  • "Junior" is male
  • "Junior" started this thread

Posts: 1,613

Location: San Antonio, TX USA

Occupation: Senior Secure Systems Engineer

  • Send private message

3

Wednesday, December 27th 2006, 3:13pm

Because your class is Q3ListView, you inherited the public functions and parent is not really needed, just call it.

setResizeMode( Q3ListView::AllColumns );