Hi,
Clearly you have to review ur c++ basics here.the lines 4 and 5, does the construtor of class FileItem inherit the constructor of class QListViewItem??
In c++, constructors can be overloaded.the syntax is confusing.. I think the constructors are overloaded. Or is it the way of overloading.
Ex.
Qt Code:
class TEST_CLASS_FOR_YOU { TEST_CLASS_FOR_YOU(); TEST_CLASS_FOR_YOU(int a); TEST_CLASS_FOR_YOU(int a,int b); }To copy to clipboard, switch view to plain text mode
for furthur please refer this link http://www.cplusplus.com/doc/tutorial/
No going back the example.
This is defination of constructor FileItem which is derived from QListViewItem class. QListViewItem class has overloaded constructor QListViewItem( parent, s1, s2 ) which is called at initillization. this is not a defination of QListViewItem( parent, s1, s2 ) class remember.4. FileItem( QListViewItem *parent, const QString &s1, const QString &s2 )
5. : QListViewItem( parent, s1, s2 ), pix( 0 ) {}
Bookmarks