Archived:Hiding status and control panes in Qt for Symbian
kiran10182
(Talk | contribs) m (Qt for Symbian -> Qt) |
hamishwillee
(Talk | contribs) m (Bot change of links to internal format.) |
||
| Line 24: | Line 24: | ||
==Control and status pane visible== | ==Control and status pane visible== | ||
| − | [[ | + | [[File:ShowMaximized.png]] |
Execute QMainWindow as show maximized mode, call <tt>QMainWindow::showMaximized()</tt> | Execute QMainWindow as show maximized mode, call <tt>QMainWindow::showMaximized()</tt> | ||
| Line 41: | Line 41: | ||
No control or status pane visible. | No control or status pane visible. | ||
| − | [[ | + | [[File:ShowFullScreen.png]] |
Execute QMainWindow as fullscreen mode, call <tt>QMainWindow::showFullScreen()</tt> | Execute QMainWindow as fullscreen mode, call <tt>QMainWindow::showFullScreen()</tt> | ||
| Line 57: | Line 57: | ||
Only control pane is visible. | Only control pane is visible. | ||
| − | [[ | + | [[File:ShowFullScreenAndCBA.png]] |
Execute QMainWindow as fullscreen mode, call <tt>QMainWindow::showFullScreen()</tt> | Execute QMainWindow as fullscreen mode, call <tt>QMainWindow::showFullScreen()</tt> | ||
| Line 78: | Line 78: | ||
* [http://doc.trolltech.com/qt.html#WindowType-enum WindowType enum] | * [http://doc.trolltech.com/qt.html#WindowType-enum WindowType enum] | ||
* [http://doc.trolltech.com/qwidget.html QWidget] | * [http://doc.trolltech.com/qwidget.html QWidget] | ||
| − | * [ | + | * [[TSS000646 - Hiding status and control panes]] |
[[Category:Code Snippet]] | [[Category:Code Snippet]] | ||
Revision as of 01:17, 19 May 2011
Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic, Nokia N8
Compatibility
Platform(s): S60 5th Edition
Symbian ^3
Symbian ^3
Article
Keywords: QWidget, Qt::WindowSoftkeysVisibleHint
Created: (07 Oct 2010)
Last edited: hamishwillee
(19 May 2011)
Overview
Following code snippets shows how to hide Symbian status and control (CBA buttons) panes.
Note: In order to use this code, you need to have Qt for Symbian installed on your platform.
Preconditions
- Install Nokia Qt SDK see [1]
Control and status pane visible
Execute QMainWindow as show maximized mode, call QMainWindow::showMaximized()
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
MainWindow w;
w.showMaximized();
return app.exec();
}
Hide control and status pane
No control or status pane visible.
Execute QMainWindow as fullscreen mode, call QMainWindow::showFullScreen()
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
MainWindow w;
w.showFullScreen();
return app.exec();
}
Hide status pane
Only control pane is visible.
Execute QMainWindow as fullscreen mode, call QMainWindow::showFullScreen()
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
MainWindow w;
w.showFullScreen();
return app.exec();
}
Define control pane as visible in fullscreen mode, set Qt::WindowSoftkeysVisibleHint window flag into QMainWindow
// Enable Qt::WindowSoftkeysVisibleHint flag in QMainWindow constructor
QWidget::setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint);




