Private classes and Q_Objects
- Date: Fri, 2 May 2008 10:34:35 -0400
- From: "Nathan Bradshaw" <nathanlbradshaw@xxxxxxxxx>
- Subject: Private classes and Q_Objects
Hi all, I have a situation where I have a library with a private class / s_ptr arrangement. I need to create an instance of a Q_OBJECT derived class in the private class. What is the best method of parenting the Q_OBJECT in the private class?
Should I derive the private class from Q_OBJECT and make it the parent? Should I use Q_DECLARE_PUBLIC / Q_Q() to get the private class' parent (itself a Q_OBJECT derived class) and use that as the parent?
Many thanks for any help!
cheers
Nathan
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
- Follow-Ups:
- Private classes and Q_Objects
- From: Nathan Bradshaw
- Private classes and Q_Objects
- Prev by Date: Re: [PATCH] Make kslideshow.kss work again
- Next by Date: Private classes and Q_Objects
- Previous by thread: kdepimlibs building error
- Next by thread: Private classes and Q_Objects
- Index(es):