I've this code:
GPSMessages::GPSMessages(GPSManager &gpsManager): _message(nullptr)
{
connect(&gpsManager, GPSManager::onGpsFound, this, GPSMessages::onGpsFound);
connect(&gpsManager, GPSManager::onGpsNotFound, this, GPSMessages::onGpsNotFound);
}
GPSMessages::GPSMessages(GPSManager &gpsManager): _message(nullptr)
{
connect(&gpsManager, GPSManager::onGpsFound, this, GPSMessages::onGpsFound);
connect(&gpsManager, GPSManager::onGpsNotFound, this, GPSMessages::onGpsNotFound);
}
To copy to clipboard, switch view to plain text mode
Compiling for Android works well, but If compile with iOS appears this error:
error: call to non-static member function without an object argument
connect(&gpsManager, GPSManager::onGpsFound, this, GPSMessages::onGpsFound);
error: call to non-static member function without an object argument
connect(&gpsManager, GPSManager::onGpsFound, this, GPSMessages::onGpsFound);
To copy to clipboard, switch view to plain text mode
Qt for iOS supports this or must to use the SIGNAL and SLOT macro?
Bookmarks