Don't use the QPointer::clear() function that was introduced in Qt5