Hi,

I'm porting a co-worker's code to Qt4. It controls a huge vat of great-tasting lemonade. I think great-tasting lemonade should be controlled by a great-looking GUI. That's why I'm going to Qt4.

It compiles great with Qt3, but when I use Qt4 I get this error:

lemonDiag.C:590: error: 'QObject' is an ambiguous base of 'CHWController'
The line causing the problem looks like this:

Qt Code:
  1. QObject::connect(hwc,SIGNAL(ph_off_balance(double)),temp1A,SLOT(setValue(double)));
To copy to clipboard, switch view to plain text mode 

And the constructor looks like this:

Qt Code:
  1. class CHWController: public QObject, public QThread
To copy to clipboard, switch view to plain text mode 

Could the dual inheritance be a problem? Is there a simple fix?
What should I do?