[Qt] Set Orientation Attribute for Qt Application Runs on N900 Maemo
If you want to let the Qt application can support landscape and portrait mode,
you can set true for the WA_Maemo5AutoOrientation attribute in the application.
[sourcecode language=”c++”]
#ifdef Q_WS_MAEMO_5
<p style="padding-left: 30px;">setAttribute(Qt::WA_Maemo5AutoOrientation, true);</p>
#endif /// Q_WS_MAEMO_5
[/sourcecode]
發佈留言
很抱歉,必須登入網站才能發佈留言。