Hi!!
I haven't yet undrstood the syntax of inheritance in QT.
For example, the directory browser example code says->
1. class FileItem : public QListViewItem
2. {
3. public:
4. FileItem( QListViewItem *parent, const QString &s1, const QString &s2 )
5. : QListViewItem( parent, s1, s2 ), pix( 0 ) {}
6.
7. const QPixmap *pixmap( int i ) const;
8. void setPixmap( QPixmap *p );
9.
10. private:
11. QPixmap *pix;
12.
13. };
the lines 4 and 5, does the construtor of class FileItem inherit the constructor of class QListViewItem??. the syntax is confusing.. I think the constructors are overloaded. Or is it the way of overloading. Please guide me as i am unable to understand what lines 4 & 5 mean.
Bookmarks