Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
QT5 Blueprints

You're reading from   QT5 Blueprints Design, build, and deploy cross-platform GUI projects using the amazingly powerful Qt 5 framework

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784394615
Length 272 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Symeon Huang Symeon Huang
Author Profile Icon Symeon Huang
Symeon Huang
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Creating Your First Qt Application FREE CHAPTER 2. Building a Beautiful Cross-platform Clock 3. Cooking an RSS Reader with Qt Quick 4. Controlling Camera and Taking Photos 5. Extending Paint Applications with Plugins 6. Getting Wired and Managing Downloads 7. Parsing JSON and XML Documents to Use Online APIs 8. Enabling Your Qt Application to Support Other Languages 9. Deploying Applications on Other Devices 10. Don't Panic When You Encounter These Issues Index

Utilizing ScrollView

Our RSS news reader is shaping up now. From now on, let's focus on the unpleasant details. The first thing we're going to add is a scroll bar. To be more specific, ScrollView is about to be added.

Back in the Qt 4 era, you had to write your own ScrollView component to gain this small yet very nice feature. Although you can utilize KDE Plasma Components' ScrollArea on X11 Platforms, there are no Qt bundled modules for this purpose, which means you can't use these on Windows and Mac OS X. Thanks to the open governance of the Qt project, a lot of community code gets merged, especially from the KDE community. From Qt 5.1 onwards, we have the QtQuick.Controls module, which has many built-in desktop components, including ScrollView.

It's a very easy to use element that provides scroll bars and content frames for its child item. There can be only one direct Item child, and this child is implicitly anchored to fill the ScrollView component. This means...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime