QFile and buffered device
-
I am not a real expert in signal-slot connections.
My first guess would be that you have to register your custom class.
"Have a look to qRegisterMetaType":http://doc.qt.nokia.com/4.7/qmetatype.html#qRegisterMetaType
May be this is solving your issue, because the error sais QFile::printData not found. However, I could find the logic for the register requirement yet. -
Try to rerun qmake and make.
-
-
Ah, yes, and add the QObject parent pointer parameters to the constructor, as Jacol suggested. It's always good to mimic the base class' constructors if you want to use your own class as a drop in replacement.
And if you get some weird or unexpected compiler errors, it is always a good idea to completely clean the project, delete the makefiles and re-run qmake and do a full rebuild. The same holds for erratic crashes (eg. after you have added a member to a class).