From Bugzilla Helper:
User-Agent: Mozilla/4.76 [de] (X11; U; Linux 2.4.1 i686)
The code at The Code at the url gets an error when compiling
IMHO gcc-2.96-69 is incorrect.
Workaround is to profix QObject with :: .
Steps to Reproduce:
1. g++ a.cpp
Actual Results: a.cpp: In method
a.cpp:1: `class QObject' is inaccessible
a.cpp:12: within this context
Expected Results: It should compile
gcc-2.95.2 and SGI CC does compile it.
Created attachment 12131 [details]
It should not compile, it is not valid ISO C++ code.
he name QObject is injected into class QObject, so it becomes a
private member of class QSignal, hiding the global definition of QObject in
classes derived from QSignal.
Using ::QObject there is not a workaround, it is how it should have been coded.