You Are Here:

Community: Wiki

 

Talk:Dynamic Layout handling with QWidget in Qt for Symbian

From Forum Nokia Wiki

Some devices supports more than one screen resolutions, for example N95 supports have resolution 240x320 in portrait mode and resolution 320x240 in landscape mode. Accordingly screen resolution we need to set geometry of widget. If custom components are used in the application, you should take care that they support scalability and orientation changes.

The event QEvent::Resize will be generated on layout change, so we can handle changing layout in our application using that event. This article describes how to installs an event filter on the widget, and then how this event filter get resize event. This article is useful to both beginners as well as experienced developers.

Note that the method QWidget::resizeEvent() will also receive resize event when layout is changes, so you can also get resize event by implementing resizeEvent() in your class that is derived from QWidget.

--kamlesh sangani 06:45, 15 September 2009 (UTC)


 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia