Archived:Hiding status and control panes in Qt for Symbian
hamishwillee
(Talk | contribs) m (Hamishwillee - Tidy wiki text) |
hamishwillee
(Talk | contribs) m (Text replace - "<code cpp>" to "<code cpp-qt>") |
||
| (4 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
{{Archived|timestamp=20120216050754|user=[[User:Hamishwillee|<br />----]]|[[:Category:Qt Quick|Qt Quick]] should be used for all UI development on mobile devices. The approach described in this article (based on {{Qapiname|QWidget}}) is deprecated.}} | {{Archived|timestamp=20120216050754|user=[[User:Hamishwillee|<br />----]]|[[:Category:Qt Quick|Qt Quick]] should be used for all UI development on mobile devices. The approach described in this article (based on {{Qapiname|QWidget}}) is deprecated.}} | ||
| + | [[Category:Qt C++ UI]][[Category:UI]][[Category:Code Snippet]][[Category:MeeGo Harmattan]][[Category:Symbian]] | ||
| + | {{Abstract|This code snippets shows how to hide Symbian status and control (CBA buttons) panes.}} | ||
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
| Line 33: | Line 33: | ||
Execute QMainWindow as show maximized mode, call {{Icode|QMainWindow::showMaximized()}} | Execute QMainWindow as show maximized mode, call {{Icode|QMainWindow::showMaximized()}} | ||
| − | <code cpp> | + | <code cpp-qt> |
int main(int argc, char *argv[]) { | int main(int argc, char *argv[]) { | ||
QApplication app(argc, argv); | QApplication app(argc, argv); | ||
| Line 50: | Line 50: | ||
Execute QMainWindow as fullscreen mode, call {{Icode|QMainWindow::showFullScreen()}} | Execute QMainWindow as fullscreen mode, call {{Icode|QMainWindow::showFullScreen()}} | ||
| − | <code cpp> | + | <code cpp-qt> |
int main(int argc, char *argv[]) { | int main(int argc, char *argv[]) { | ||
QApplication app(argc, argv); | QApplication app(argc, argv); | ||
| Line 66: | Line 66: | ||
Execute QMainWindow as fullscreen mode, call {{Icode|QMainWindow::showFullScreen()}} | Execute QMainWindow as fullscreen mode, call {{Icode|QMainWindow::showFullScreen()}} | ||
| − | <code cpp> | + | <code cpp-qt> |
int main(int argc, char *argv[]) { | int main(int argc, char *argv[]) { | ||
QApplication app(argc, argv); | QApplication app(argc, argv); | ||
| Line 75: | Line 75: | ||
</code> | </code> | ||
Define control pane as visible in fullscreen mode, set {{Icode|Qt::WindowSoftkeysVisibleHint}} window flag into {{Icode|QMainWindow}} | Define control pane as visible in fullscreen mode, set {{Icode|Qt::WindowSoftkeysVisibleHint}} window flag into {{Icode|QMainWindow}} | ||
| − | <code cpp> | + | <code cpp-qt> |
// Enable Qt::WindowSoftkeysVisibleHint flag in QMainWindow constructor | // Enable Qt::WindowSoftkeysVisibleHint flag in QMainWindow constructor | ||
QWidget::setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint); | QWidget::setWindowFlags(windowFlags() | Qt::WindowSoftkeysVisibleHint); | ||
| Line 84: | Line 84: | ||
* [http://doc.trolltech.com/4.7/qt.html#WindowType-enum WindowType enum] | * [http://doc.trolltech.com/4.7/qt.html#WindowType-enum WindowType enum] | ||
* {{Qapiname|QWidget}} | * {{Qapiname|QWidget}} | ||
| − | * [[ | + | * [[Archived:Hiding status and control panes using Symbian C++]] |
Latest revision as of 04:14, 11 October 2012
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Qt Quick should be used for all UI development on mobile devices. The approach described in this article (based on QWidget) is deprecated.
Qt Quick should be used for all UI development on mobile devices. The approach described in this article (based on QWidget) is deprecated.
This code snippets shows how to hide Symbian status and control (CBA buttons) panes.
Article Metadata
Tested with
SDK: Nokia Qt SDK 1.0
Devices(s): Nokia 5800 XpressMusic, Nokia N8
Compatibility
Platform(s): S60 5th Edition
Symbian ^3
Symbian ^3
Article
Keywords: QWidget, Qt::WindowSoftkeysVisibleHint
Created: tepaa
(07 Oct 2010)
Last edited: hamishwillee
(11 Oct 2012)
Contents |
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




