strangely I'm getting an error when connecting the signal:
connect(video->mediaObject(), SIGNAL(seekableChanged(bool)), this, SLOT(seekAnimation(bool)));
connect(video->mediaObject(), SIGNAL(seekableChanged(bool)), this, SLOT(seekAnimation(bool)));
To copy to clipboard, switch view to plain text mode
error C2664: 'bool QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)' : cannot convert parameter 1 from 'Phonon::MediaObject *' to 'const QObject *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
MediaObject inherits from QOjbect and I've seen examples around the internet using just this syntax.
Can you see why? If it matters, I'm using VS2008 and Qt 4.4.2.
Bookmarks