qtgui: explicitly use this pointer in constructing validators. Support for older versions of QT.