Qt Quick 5.1 Now Available with Layouts, Controls, Views, Tab Navigation and Window Improvements

by Anand Narayanaswamy on Jun 26, 2013 |

The recently released Qt Quick 5.1 includes a new QtQuick.Controls module in addition to QtQuick.Layouts with which you can build complex resizable layouts by providing minimum and maximum size hints. The module also provides an ability to declare items as expanding or fixed in a declarative way. The QtQuick.Controls module, which is equivalent of widgets include buttons, combo box, spin box, group box, sliders, progress bars, text fields and menus.

While ScrollView control provides support for scroll bars and frame, SplitView control enables you to add a vertical or horizontal resize handle between items in a view. On the other hand, TableView provides support for native look and feel as well as re-arrangable columns and row selection.

Qt 5.1 also includes a StackView control that provides typical stack based (or drill-down) navigation through a series of application pages. It also exposes the platform directly to QML through the global Qt.platform.os property. The latest release provides an ability to add activeFocusOnTab property to QQuickItem, which will attach the control to implicit tab key chain.

The dialogs module introduces standard dialogs such as ColorDialog and FileDialog that map to the native platform dialogs on different systems. As per official sources, more dialogs will be supported in the future releases.

Qt Quick 5.1 introduces significant improvements for windows declaration in addition to a closing signal which enables you to handle window closing request. Moreover, TextEdit and the new TextArea control includes advanced features such as syntax highlighters, code completion or printing support. On the other hand, ApplicationWindow provides support for setting a window specific MenuBar, ToolBar and StatusBar in QML.

Qt 5.1 includes QQmlApplicationEngine, which enables you to set up qt quick window, pick up the right translation files and implicitly connects the application quit() signal to your root window. The createWindowContainer() function included in QWidget provides an ability to include a Qt Quick 2 scene inside an existing widget based application.

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

General Feedback
Marketing and all content copyright © 2006-2016 C4Media Inc. hosted at Contegix, the best ISP we've ever worked with.
Privacy policy

We notice you're using an ad blocker

We understand why you use ad blockers. However to keep InfoQ free we need your support. InfoQ will not provide your data to third parties without individual opt-in consent. We only work with advertisers relevant to our readers. Please consider whitelisting us.