diff -r 2f34d5167611 -r fcece45ef507 src/gui/kernel/qapplication.cpp --- a/src/gui/kernel/qapplication.cpp Fri Apr 16 15:50:13 2010 +0300 +++ b/src/gui/kernel/qapplication.cpp Mon May 03 13:17:34 2010 +0300 @@ -892,6 +892,14 @@ { QWidgetPrivate::mapper = new QWidgetMapper; QWidgetPrivate::allWidgets = new QWidgetSet; + +#if !defined(Q_WS_X11) && !defined(Q_WS_QWS) && !defined(Q_CC_NOKIAX86) + // initialize the graphics system - on X11 this is initialized inside + // qt_init() in qapplication_x11.cpp because of several reasons. + // On QWS, the graphics system is set by the QScreen plugin. + graphics_system = QGraphicsSystemFactory::create(graphics_system_name); +#endif + if (qt_appType != QApplication::Tty) (void) QApplication::style(); // trigger creation of application style // trigger registering of QVariant's GUI types @@ -926,12 +934,13 @@ // Set up which span functions should be used in raster engine... qInitDrawhelperAsm(); -#if !defined(Q_WS_X11) && !defined(Q_WS_QWS) - // initialize the graphics system - on X11 this is initialized inside - // qt_init() in qapplication_x11.cpp because of several reasons. - // On QWS, the graphics system is set by the QScreen plugin. +#if defined(Q_CC_NOKIAX86) + // initialize the graphics system - For symbian emulator, we create graphics system here, since + // there is some unknown error launching the emulator with openVg when + // graphics system is created before style instance. graphics_system = QGraphicsSystemFactory::create(graphics_system_name); #endif + #ifndef QT_NO_WHEELEVENT QApplicationPrivate::wheel_scroll_lines = 3; #endif