Dear visitor, welcome to QtForum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Create a class inherites from tow QObject Subclass in Qt 4.3
Hi,
How can I create a class from two QObject subclass in Qt.4.3
Eg:
[code]
class MyClass : public Class1, protected QThread
{
...................
...................
}
[\code]
Please help me to solve this problem.
This post has been edited 1 times, last edit by "sabeesh" (Dec 31st 2007, 10:17am)
RE: Create a class inherites from tow QObject Subclass in Qt 4.3
not sure, but I think it's not possible to inherit two times from QObject
Nicolas
hi ,
I think you can do it but I think you will retype the most of all functions to produce your new object
tried and obtained the following:
moc ... o.h -o moc_o.cpp
o.h:25: Warning: Class C inherits from two QObject subclasses A and B. This is not supported!
it's supported by g++ compiler
but not by moc compiler, ie: problems with slots, properties ...
Nicolas
This post has been edited 1 times, last edit by "Nicolas SOUCHON" (Dec 31st 2007, 4:20pm)