| description:
|
This Qt C++ application provides a method to implement multiple views in Qt for S60 applications (an alternative to using tabs). Views (QWidgets) are stored in a stack (QStackedWidget). On application startup, only the default view is created in the stack. To optimise memory consumption, the other views are not created until they are needed. Every view has its own Options menu and CBA buttons with view-specific commands. The example has been tested to work on S60 3rd Edition and 5th Edition devices with Qt for S60 4.5.2 Tower release. Important classes: QWidget, QStackedWidget, QMainWindow.
|
| type:
|
Example
|
| topics:
|
Base/System
Qt
Qt for S60
S60
S60 3rd Edition
S60 5th Edition
UI
|
| intended audience:
|
Intermediate
|
Qt for S60: QStackedWidget Example
This Qt C++ application provides a method to implement multiple views in Qt for S60 applications (an alternative to using tabs). Views (QWidgets) are stored in a stack (QStackedWidget). On application startup, only the default view is created in the stack. To optimise memory consumption, the other views are not created until they are needed. Every view has its own Options menu and CBA buttons with view-specific commands. The example has been tested to work on S60 3rd Edition and 5th Edition devices with Qt for S60 4.5.2 Tower release. Important classes: QWidget, QStackedWidget, QMainWindow.
Zip Archive (.zip); English (en)29-Jun-2009 
|
| see also:
|
Qt for S60: QTabs Example
|
Additional information
| distribution:
|
Forum Nokia Global Web Site
|
| publication rights:
|
Copyright © 2009 Nokia Corporation.
|
<< Back to Previous Page
RDF Facets:
qdcZdescriptionQSxThisE20E51tE20CE2bE2bE20applicationE20providesE20aE20methodE20toE20implementE20multipleE20viewsE20inE20E51tE20forE20S60E20applicationsE20E28anE20alternativeE20toE20usingE20tabsE29E2eE20ViewsE20E28E51WidgetsE29E20areE20storedE20inE20aE20stackE20E28E51StackedWidgetE29E2eE20OnE20applicationE20startupE2cE20onlyE20theE20defaultE20viewE20isE20createdE20inE20theE20stackE2eE20ToE20optimiseE20memoryE20consumptionE2cE20theE20otherE20viewsE20areE20notE20createdE20untilE20theyE20areE20neededE2eE20E45veryE20viewE20hasE20itsE20ownE20OptionsE20menuE20andE20CBAE20buttonsE20withE20viewE2dspecificE20commandsE2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20workE20onE20S60E203rdE20E45ditionE20andE205thE20E45ditionE20devicesE20withE20E51tE20forE20S60E204E2e5E2e2E20TowerE20releaseE2eE20ImportantE20classesE3aE20E51WidgetE2cE20E51StackedWidgetE2cE20E51MainWindowE2eX
qdcZidentifierQSxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fd6287a35E2d5494E2d44afE2dabceE2df65637c6b0b9E2fE51tE5fforE5fS60E5fE51StackedWidgetE5fE45E78ampleX
qdcZrelationQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fb8dc2924E2dc71fE2d487cE2db0b3E2db9ada97efaecE2fE51tE5fforE5fS60E5fE51TabsE5fE45E78ampleX
qdcZtitleQSxE51tE20forE20S60E3aE20E51StackedWidgetE20E45E78ampleX
qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ
qdcZtypeQUqfnZE45E78cludedFromSearchQ
qdcZtypeQUqfnZPrimaryE52esourceQ
qdcZtypeQUqfntypeZApplicationQ
qdcZtypeQUqfntypeZE45E78ampleQ
qdcZtypeQUqfntypeZE52esourceQ
qdcZtypeQUqmarsZManagedE52esourceQ
qdcZtypeQUqmarsZMediaObjectQ
qdcZtypeQUqwebZInformationE52esourceQ
qdcZtypeQUqwebZE52esourceQ
qdcZtypeQUqrdfsZE52esourceQ
qrssZdescriptionQSxThisE20E51tE20CE2bE2bE20applicationE20providesE20aE20methodE20toE20implementE20multipleE20viewsE20inE20E51tE20forE20S60E20applicationsE20E28anE20alternativeE20toE20usingE20tabsE29E2eE20ViewsE20E28E51WidgetsE29E20areE20storedE20inE20aE20stackE20E28E51StackedWidgetE29E2eE20OnE20applicationE20startupE2cE20onlyE20theE20defaultE20viewE20isE20createdE20inE20theE20stackE2eE20ToE20optimiseE20memoryE20consumptionE2cE20theE20otherE20viewsE20areE20notE20createdE20untilE20theyE20areE20neededE2eE20E45veryE20viewE20hasE20itsE20ownE20OptionsE20menuE20andE20CBAE20buttonsE20withE20viewE2dspecificE20commandsE2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20workE20onE20S60E203rdE20E45ditionE20andE205thE20E45ditionE20devicesE20withE20E51tE20forE20S60E204E2e5E2e2E20TowerE20releaseE2eE20ImportantE20classesE3aE20E51WidgetE2cE20E51StackedWidgetE2cE20E51MainWindowE2eX
qrssZtitleQSxE51tE20forE20S60E3aE20E51StackedWidgetE20E45E78ampleX
qeditorZdescriptionE5fcreatedQDx2009E2d06E2d29T07E3a22E3a51E5aX
qeditorZdescriptionE5fmodifiedQDx2009E2d06E2d29T10E3a57E3a05E5aX
qeditorZtypeQUqfntypeZApplicationQ
qeditorZtypeQUqfntypeZE45E78ampleQ
qeditorZtypeQUqfntypeZE52esourceQ
qfnZallowedE5fcountryE5fgroupQUqfnCountryGroupZBQ
qfnZaudienceQUqfnAudienceZintermediateQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZaudienceQUqfnAudienceZtechnicalQRqmarsZrelevanceQNx100X
qfnZdistributionQUxhttpE3aE2fE2fforumE2enokiaE2ecomE2fX
qfnZeE78portE5fcontrolE5fcommodityE5fnumberQSx99X
qfnZpublishedQDx2009E2d06E2d29T00E3a00E3a00E5aX
qfnZtopicQUqfnTopicZbaseE5fsystemQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZE71tQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZE71tE5fforE5fs60QRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZseriesE5f60QRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZseriesE5f60E5f3edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZseriesE5f60E5f5edQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtopicQUqfnTopicZuiQRqdcZtypeQUqrdfsZE52esourceQRqmarsZrelevanceQNx100X
qfnZtypeQUqfntypeZApplicationQ
qfnZtypeQUqfntypeZE45E78ampleQ
qfnZtypeQUqfntypeZE52esourceQ
qfnZusE5foriginQLqE78sdZbooleanQxtrueX
qmarsZdescriptionQSxThisE20E51tE20CE2bE2bE20applicationE20providesE20aE20methodE20toE20implementE20multipleE20viewsE20inE20E51tE20forE20S60E20applicationsE20E28anE20alternativeE20toE20usingE20tabsE29E2eE20ViewsE20E28E51WidgetsE29E20areE20storedE20inE20aE20stackE20E28E51StackedWidgetE29E2eE20OnE20applicationE20startupE2cE20onlyE20theE20defaultE20viewE20isE20createdE20inE20theE20stackE2eE20ToE20optimiseE20memoryE20consumptionE2cE20theE20otherE20viewsE20areE20notE20createdE20untilE20theyE20areE20neededE2eE20E45veryE20viewE20hasE20itsE20ownE20OptionsE20menuE20andE20CBAE20buttonsE20withE20viewE2dspecificE20commandsE2eE20TheE20eE78ampleE20hasE20beenE20testedE20toE20workE20onE20S60E203rdE20E45ditionE20andE205thE20E45ditionE20devicesE20withE20E51tE20forE20S60E204E2e5E2e2E20TowerE20releaseE2eE20ImportantE20classesE3aE20E51WidgetE2cE20E51StackedWidgetE2cE20E51MainWindowE2eX
qmarsZhasInstanceQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fa871842cE2db1c3E2d4aa2E2d9e1aE2d18336ac0e98cE2fE51tE5fforE5fS60E5fE51StackedWidgetE5fE45E78ampleE5fv1E5f0E5fenE2ezipX
qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX
qmarsZtitleQSxE51tE20forE20S60E3aE20E51StackedWidgetE20E45E78ampleX
qncZrightsQSxCopyrightE20Ea9E202009E20NokiaE20CorporationE2eX
qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ
qrdfZtypeQUqfnZE45E78cludedFromSearchQ
qrdfZtypeQUqfnZPrimaryE52esourceQ
qrdfZtypeQUqfntypeZApplicationQ
qrdfZtypeQUqfntypeZE45E78ampleQ
qrdfZtypeQUqfntypeZE52esourceQ
qrdfZtypeQUqmarsZManagedE52esourceQ
qrdfZtypeQUqmarsZMediaObjectQ
qrdfZtypeQUqwebZInformationE52esourceQ
qrdfZtypeQUqwebZE52esourceQ
qrdfZtypeQUqrdfsZE52esourceQ
qrdfsZseeAlsoQUxhttpE3aE2fE2fswE2enokiaE2ecomE2fidE2fb8dc2924E2dc71fE2d487cE2db0b3E2db9ada97efaecE2fE51tE5fforE5fS60E5fE51TabsE5fE45E78ampleX