[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: adding properties to a C++ class
From:       ramagnus () t-online ! de (Rolf Magnus)
Date:       2001-12-16 11:17:39
[Download RAW message or body]

On Sunday 16 December 2001 07:06, Scott Wheeler wrote:

> class qtaggerListItem : public QListViewItem
> {
> public:
>   qtaggerListItem(QListView * parent);
> private:
>     Q_OBJECT
>     QString fileName;
> };
>
> But this seems to cause problems because the QListView doesn't seem to like
> having qtaggerListItems included.  Is there a way around this? 

QListViewItem is not derived from QObject, thus you can't use O_OBJECT unless 
you also derive qtaggerListItem from QObject. So make this:

class qtaggerListItem : public QObject, public QListViewItem

or leave the Q_OBJECT out if you don't need signals/slots.

_______________________________________________
kde-multimedia mailing list
kde-multimedia@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic