Hi folks!

I'm having a problem with a Qt4/C++ app that I'm writing.

I've created a custom class by subclassing QObject, in order for it to be able to use functions from my main application. I was hoping to use setParent to allow it to access my app's public functions via qobject_cast, which seems to work fine. However... while I have the QObject subclass's parent set as the main application, I can't click on, but can tab through 2 out of the three widgets on my main application. The other one I can click on and use absolutely fine. The others appear to work absolutely as expected, other than not being clickable.

The whole application works absolutely fine if I don't use setParent, and don't try to access the main class's functions.

Does anybody have a clue what on earth is going on here? I'm massively confused!

Thanks in advance for any help guys!!

X-T