Never store business-related state in QML - all business logic belongs in C++. However, UI-related state (like list view scroll position) may be stored in components. This video shows introducing ad-hoc properties in component elements that act as local variables for UI state management while maintaining proper separation of concerns.
QML code typically creates all elements immediately, which works for simple examples but wastes resources in complex applications. Creating all screens, pages, and dialogs on startup would consume excessive resources and slow application launch. The Loader component solves this by creating elements on demand, improving performance and resource management.
In the fourth module of our "Introduction to Qt / QML" series we explore components: that is, how to reuse QML code by encapsulating it in a separate piece that we can then create as many times as needed. In this video, the basics of creating an "out-of-line" component is defined as well as how to define a proper API for our components.
To complete the discussion about defining the interface of a component, this session shows how to add functions to a component ("methods"), as well as signals. Declarative programming is also discussed and why certain designs match QML's spirit much better than others.
In this video we discuss how sizing works when creating a reusable component, including how to make components that have adequate width and height out of the box. We also showcase GammaRay, the free software introspection tool for Qt applications developed by KDAB.
"nice" by Lufthansa Technik is the industry standard for VIP and business aircraft cabin management and in-flight entertainment, developed with Qt and KDAB. Moving from multiple native approaches to Qt/QML enabled their Red Dot Design Award-winning immersive cabin environments. The system brings human touch to flying with high-end technology used by VIP, government and business jets.
Qt 3D, being a retained mode high level graphic API abstraction, tries to hide most of the details involved in rendering the data provided by applications. It makes a lot of decisions and operations in the background in order to get pixels on the screen. But, because Qt 3D also has very rich API, developers […]
A few weeks ago, we published an article with an overview of Visual Studio Code through the eyes of a Qt developer. In this short blog series, I will show you how to get up to speed with a Qt project using Visual Studio Code more in detail. Before digging into the Qt parts, I'd […]
Selecting programming languages and frameworks for new software projects involves difficult choices. Should you stick with Qt as the best tool, switch to web-based technology or mobile-specific solutions, or choose Python for machine learning integration? This video outlines key considerations and offers a comprehensive whitepaper for detailed guidance on making these critical decisions.
The demo shown at Embedded World 2020 featured 3D visualization of microscopy tissue samples, 2D images from cutting-edge clinical diagnostics datasets, and real-time conversion to 3D from 30 image channels using Qt 3D technology for advanced medical imaging applications.
This innovative electric scooter UI demo shown at Embedded World 2020 featured a navigation framework integrated with Qt Quick scene, speedometer implemented using OpenGL shaders, and ran on a Yocto-based platform, showcasing modern automotive interface capabilities for electric mobility solution.
The upcoming version of the C++ Standard (C++2a) is proposing to deprecate certain usages of the volatile keyword, by adopting the P1152 proposal (Deprecating volatile). Despite the somewhat "flamboyant" title, the actual deprecated parts are very limited and indeed the paper limits the deprecation to somehow language/library corner cases and/or dangerous antipatterns. For instance certain […]
Demonstrated live at Qt Embedded World, this video shows GammaRay, a free software introspection tool for Qt applications developed by KDAB. Leveraging the QObject introspection mechanism GammaRay allows you to observe and manipulate your application at runtime. This works both locally on your workstation and remotely on an embedded target.
During Embedded World 2020 we answered visitors' questions via video because many people decided not to attend that year due to the Corona virus.
Conventional 3D design and development workflows can be very time consuming due to complex iteration loops. In this video you learn how and why KUESA™ 3D Studio makes your 3D design workflow much more efficient.
The new Iro Materials - available in the upcoming version 1.2 - provide an intuitive/artistic way of working, for designers. Full integration into DCC tools like Blender gives you exact WYSIWYG already in the stage of asset creation and lets the designer examine the final visual result during modeling. This video shows how to optimize your workflow using KUESA Studion and the new iro materials.
This video discusses keyboard handling in Qt Quick. Whether you have a physical keyboard, a virtual one, or maybe some special hard keys, you may want to have the elements in your scene react to the keypresses. There are a few ways to manage keyboard input: from just using an element such as TextInput, that solves the whole problem for us, to actually having custom logic to handle keyboard events.
Touch input extends beyond simple tapping to include gestures like flick motions for scrolling and pinch-to-zoom with two fingers. This video explains Qt Quick's gesture handling basics using built-in elements, demonstrating how to create touch interfaces by composing gesture elements with familiar components like images, rectangles, and text.
The third module of the "Introduction to Qt/QML" series covers user interaction methods in Qt Quick applications. Qt Quick provides elements for mouse, touch, gesture, and keyboard input. This video focuses on MouseArea, the element handling mouse input, demonstrating how to make applications react to mouse presses, clicks, and other mouse interactions.
Did you miss the past Qt World Summit? Were you there, but you couldn't attend that talk or two that you really wanted to see because the conference was so, so packed with awesome content? Fear no more! We are glad to announce that the talks at the past Qt World Summit 2019 in Berlin […]