Skip to main content

QtWS15- Effective QML, Thomas McGuire, KDAB

Qt World Summit 2015, OCTOBER 5-7, BERLIN, GERMANY Effective QML: Writing applications with QtQuick is, as implied by the name, quite easy, and can be done by anyone after a quick introduction to the technology. While quickly writing an application is simple, doing so in an comprehensive, maintainable extensible and efficient is an important topic, especially for large and complex programs. The talk will present 18 best practices, tips and tricks and other useful guidelines for developing QtQuick applications, learned from years of experience from working on multiple QtQuick projects. The tips will cover 4 different topics: The first topic deals with development tooling, showing some well-known tools like the QML profiler of Gammaray, in addition to lesser known tools such as qmllint or integrating debugging keyboard shortcuts into your application. The second topic helps with understanding how QML works, which includes looking at things like object ownership, item sizes and what happens when loading a QML file. The third and largest topic covers best practices for coding a QML application, discussing things like layering, the split between QML and C++, creating reusable components and how to achieve a declarative coding style. The last topic deals with performance and gives various tip on what to look out for when you want to keep your application quick. The best practices mentioned in this talk cover many areas and should contain something new or interesting for everyone, hopefully helping in the goal to strive for robust quality applications. Video by Qt Company and greenwoodworx,