×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Hiding status and control panes in Qt for Symbian

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot update)
hamishwillee (Talk | contribs)
m (Hamishwillee - Tidy wiki text)
Line 1: Line 1:
 +
[[Category:QWidget UI]][[Category:UI]][[Category:Code Snippet]][[Category:MeeGo]][[Category:Symbian]]
 +
{{Abstract|This code snippets shows how to hide Symbian status and control (CBA buttons) panes.}}
 
{{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:QWidget UI]][[Category:UI]]
+
 
__NOTOC__
+
__NOEDITSECTION__
+
 
{{ArticleMetaData <!-- v1.2 -->
 
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 
|devices= Nokia 5800 XpressMusic, Nokia N8
 
|devices= Nokia 5800 XpressMusic, Nokia N8
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
+
|sdk= Nokia Qt SDK 1.0
 
|platform= S60 5th Edition<br>Symbian ^3
 
|platform= S60 5th Edition<br>Symbian ^3
 
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
Line 27: Line 27:
 
|subcategory= UI
 
|subcategory= UI
 
}}
 
}}
 
==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 installed on your platform.
 
 
==Preconditions==
 
 
* Install Nokia Qt SDK see [http://www.developer.nokia.com/Develop/Qt/Tools/]
 
  
 
==Control and status pane visible==
 
==Control and status pane visible==
Line 93: Line 83:
  
 
* [http://doc.trolltech.com/4.7/qt.html#WindowType-enum WindowType enum]
 
* [http://doc.trolltech.com/4.7/qt.html#WindowType-enum WindowType enum]
* [http://doc.trolltech.com/4.7/qwidget.html QWidget]
+
* {{Qapiname|QWidget}}
 
* [[TSS000646 - Hiding status and control panes]]
 
* [[TSS000646 - Hiding status and control panes]]
 
[[Category:Code Snippet]][[Category:MeeGo]] [[Category:Symbian]]
 

Revision as of 09:06, 16 February 2012

This code snippets shows how to hide Symbian status and control (CBA buttons) panes.

Archived.pngArchived: 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.

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
Article
Keywords: QWidget, Qt::WindowSoftkeysVisibleHint
Created: tepaa (07 Oct 2010)
Last edited: hamishwillee (16 Feb 2012)

Contents

Control and status pane visible

ShowMaximized.png

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.

ShowFullScreen.png

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.

ShowFullScreenAndCBA.png

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);

See also

97 page views in the last 30 days.
×