#include #include "SomeDialog.h" int main(int argc, char *argv[]) { qputenv( "QT_IM_MODULE", QByteArray( "qtvirtualkeyboard" ) ); QApplication a(argc, argv); SomeDialog w; w.show(); return a.exec(); }