×
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 (Added category Category:Qt. (Adding Qt to all Qt for Symbian topics (which is about to be removed)))
kiran10182 (Talk | contribs)
m (Qt for Symbian -> Qt)
Line 1: Line 1:
[[Category:Qt for Symbian]][[Category:UI]]
+
[[Category:Qt]][[Category:UI]]
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
Line 6: Line 6:
 
|platform=S60 5th Edition<br>Symbian ^3
 
|platform=S60 5th Edition<br>Symbian ^3
 
|devices=Nokia 5800 XpressMusic, Nokia N8
 
|devices=Nokia 5800 XpressMusic, Nokia N8
|category=Qt for Symbian
+
|category=Qt
 
|subcategory=UI
 
|subcategory=UI
 
|creationdate=October 7, 2010
 
|creationdate=October 7, 2010
Line 80: Line 80:
 
* [http://wiki.forum.nokia.com/index.php/TSS000646_-_Hiding_status_and_control_panes TSS000646 - Hiding status and control panes]
 
* [http://wiki.forum.nokia.com/index.php/TSS000646_-_Hiding_status_and_control_panes TSS000646 - Hiding status and control panes]
  
[[Category:Code Snippet]] [[Category:Qt]]
+
[[Category:Code Snippet]]

Revision as of 11:05, 1 April 2011


Article Metadata
Tested with
Devices(s): Nokia 5800 XpressMusic, Nokia N8
Compatibility
Platform(s): S60 5th Edition
Symbian ^3
Symbian
Article
Keywords: QWidget, Qt::WindowSoftkeysVisibleHint
Created: (07 Oct 2010)
Last edited: kiran10182 (01 Apr 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

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

106 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×