WEB开发网
开发学院手机开发Symbian 开发 Qt for Symbian 入门之环境搭建 阅读

Qt for Symbian 入门之环境搭建

 2010-05-31 20:18:00 来源:WEB开发网   
核心提示:QLibraryInfo::location(QLibraryInfo::PluginsPath, if needed at compile time, or via the $$QT_PLUGINS_BASE_DIR variable defined in the data_caging_paths.prf feat
QLibraryInfo::location(QLibraryInfo::PluginsPath, if needed at compile time, or via the $$QT_PLUGINS_BASE_DIR variable defined in the data_caging_paths.prf feature file, if needed in the .pro file). If either the stub or the actual plugin.dll are missing, the plugin loading will fail. The stub contents are mostly irrelevant. Only the file name and timestamp matter (the stub timestamp is checked in plugin caching). If the DEPLOYMENT variable is used properly, the stub gets generated and deployed automatically and you don’t need to worry about it. See http://doc.trolltech.com/4.6-snapshot/qmake-variable-reference.html#deployment for details.

When loading plugins with QPluginLoader, do not give the plugin dll itself as a target, use the stub file instead, although for convenience you can use either “.dll” or “.qtplugin” as the suffix. E.g. if you have the plugin stub named as “c:/foo/bar.qtplugin”, and the actual plugin as is located at “c:/sys/bin/bar.dll”, you can use either QPluginLoader(“c:/foo/bar.dll”) or QPluginLoader(“c:/foo/bar.qtplugin”) to load the plugin. So basically you can treat the stub as you would the actual plugin on other platforms.

Q: Qt applications get an additional white window with a black cursor. How can I fix this?

A: This is a result of having the ‘stdioserver’ package installed. This application is a server process that redirects STDIN and STDOUT to a console window by default. This behavior can be be changed by modifying the configure file located at “C:systemdataconfig.ini”. The relevant change involves editing the [STDIO] section and changing STDIN and STDOUT to be:

STDIN = MEDIA1

STDOUT = MEDIA4

MEDIA1 and MEDIA4 should be of the type ‘file’ and should have a path pointing to “in.txt” or “out.txt” respectively and located in the same directory as “config.ini”. You must also ensure that the “in.txt” file actually exists

上一页  1 2 3 4 5 6  下一页

Tags:Qt for Symbian

编辑录入:coldstar [复制链接] [打 印]
赞助商链接