Skip to content

GammaRay

Welcome to our first video series about GammaRay™, the introspection tool for Qt applications developed by KDAB. In this series we’ll demonstrate what GammaRay is, how to build it, and how to use it in order to solve some problems in Qt applications.

GammaRay Tutorial

What can GammaRay do for us? This video shows GammaRay in action, introducing the main aspects of its user interface.
To understand the benefits of a tool like GammaRay, we are going to show you how it can be used to fix a problem in a state machine. State machines in Qt can be created with a few lines of code. If there is something wrong, we have to resort to a regular debugger...or we can fire up GammaRay, which is able to reconstruct the state machine graphically and let us reason about it and quickly identify the problem.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 1) - GammaRay Introduction

What can GammaRay do for us? This video shows GammaRay in action, introducing the main aspects of its user interface.
To understand the benefits of a tool like GammaRay, we are going to show you how it can be used to fix a problem in a state machine. State machines in Qt can be created with a few lines of code. If there is something wrong, we have to resort to a regular debugger...or we can fire up GammaRay, which is able to reconstruct the state machine graphically and let us reason about it and quickly identify the problem.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

19 0

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC41NkI0NEY2RDEwNTU3Q0M2

GammaRay Tutorials (Part 1) - GammaRay Introduction

GammaRay™ is distributed in source form; you can freely download it from https://www.kdab.com/development-resources/qt-tools/gammaray/.

Of course, the first thing we need to do is build GammaRay for your system. This is actually very easy to do; just follow the instructions in this video, which shows you how to build GammaRay on Windows.

GammaRay's build instructions are here: https://github.com/KDAB/GammaRay/wiki/Getting-GammaRay.
If you need to cross-compile it, follow the steps documented here: https://github.com/KDAB/GammaRay/wiki/Cross-compiling-GammaRay.

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv.

This video is presented by Milian Wolff, who is a Senior software engineer at KDAB. Milian leads the R&D in tooling and profiling, in which he has a special interest. He created Massif-Visualizer and heaptrack, both of which are now used regularly to improve the performance of C++ and Qt applications. When not applying his knowledge to improving code base performance for KDAB’s customers, Milian maintains QtWebChannel for the Qt Project and is co-maintainer of the KDevelop IDE. In 2015, Milian won KDE’s Akademy Award for his work on Clang integration.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 2) - How to set up GammaRay on Windows

GammaRay™ is distributed in source form; you can freely download it from https://www.kdab.com/development-resources/qt-tools/gammaray/.

Of course, the first thing we need to do is build GammaRay for your system. This is actually very easy to do; just follow the instructions in this video, which shows you how to build GammaRay on Windows.

GammaRay's build instructions are here: https://github.com/KDAB/GammaRay/wiki/Getting-GammaRay.
If you need to cross-compile it, follow the steps documented here: https://github.com/KDAB/GammaRay/wiki/Cross-compiling-GammaRay.

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv.

This video is presented by Milian Wolff, who is a Senior software engineer at KDAB. Milian leads the R&D in tooling and profiling, in which he has a special interest. He created Massif-Visualizer and heaptrack, both of which are now used regularly to improve the performance of C++ and Qt applications. When not applying his knowledge to improving code base performance for KDAB’s customers, Milian maintains QtWebChannel for the Qt Project and is co-maintainer of the KDevelop IDE. In 2015, Milian won KDE’s Akademy Award for his work on Clang integration.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

12 11

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC4yODlGNEE0NkRGMEEzMEQy

GammaRay Tutorials (Part 2) - How to set up GammaRay on Windows

When facing a problem in a Qt application it is very convenient to be able to quickly launch a debugger and try to understand what is going wrong. 
You can say the same about GammaRay – it is extremely advantageous to have a way to launch it right from within Qt Creator! This short video explains what to do to be able to launch GammaRay with a simple combination of keys.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/
We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 3) - Add Gammaray Shortcut in Qt Creator

When facing a problem in a Qt application it is very convenient to be able to quickly launch a debugger and try to understand what is going wrong.
You can say the same about GammaRay – it is extremely advantageous to have a way to launch it right from within Qt Creator! This short video explains what to do to be able to launch GammaRay with a simple combination of keys.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/
We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

8 1

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC4wMTcyMDhGQUE4NTIzM0Y5

GammaRay Tutorials (Part 3) - Add Gammaray Shortcut in Qt Creator

How does GammaRay inspect a Qt application, exactly? The answer is that there are multiple ways for GammaRay to inject itself in a Qt application. 
It depends on whether or not the application is already running and if the application is local or remote (yes, GammaRay can attach itself to an application running on another system, such as an embedded board or a mobile phone!).

This video explains the differences between the different ways of launching an application under GammaRay.

To know more about the syntax required to do remote debugging, check out the documentation available here: https://docs.kdab.com/gammaray-manual/latest/gammaray-command-line.html

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 4) - Launch an Application Under GammaRay

How does GammaRay inspect a Qt application, exactly? The answer is that there are multiple ways for GammaRay to inject itself in a Qt application.
It depends on whether or not the application is already running and if the application is local or remote (yes, GammaRay can attach itself to an application running on another system, such as an embedded board or a mobile phone!).

This video explains the differences between the different ways of launching an application under GammaRay.

To know more about the syntax required to do remote debugging, check out the documentation available here: https://docs.kdab.com/gammaray-manual/latest/gammaray-command-line.html

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

6 1

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC41MjE1MkI0OTQ2QzJGNzNG

GammaRay Tutorials (Part 4) - Launch an Application Under GammaRay

One of the most important inspectors available in GammaRay is the Qt Quick Scenes inspector. It allows you to visualize the object tree of a QML scene, the visual positioning of the items, and much more. In this video, we are going to show you how to use GammaRay to solve a practical problem in Qt Quick: why is my element not visible? 

There are many possible reasons, and the non-imperative nature of QML makes it harder than usual to try and debug such a problem. However, GammaRay makes it possible to fix the mistake in a matter of seconds.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 5) - Why isn't my QtQuick Element visible

One of the most important inspectors available in GammaRay is the Qt Quick Scenes inspector. It allows you to visualize the object tree of a QML scene, the visual positioning of the items, and much more. In this video, we are going to show you how to use GammaRay to solve a practical problem in Qt Quick: why is my element not visible?

There are many possible reasons, and the non-imperative nature of QML makes it harder than usual to try and debug such a problem. However, GammaRay makes it possible to fix the mistake in a matter of seconds.

You can freely download GammaRay from here: https://www.kdab.com/development-resources/qt-tools/gammaray/

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

4 0

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC4wOTA3OTZBNzVEMTUzOTMy

GammaRay Tutorials (Part 5) - Why isn't my QtQuick Element visible

Let's explore GammaRay's Qt Quick Scenes inspector in more detail. In this video, we are going to explain some of the many tools available when debugging a QML/Qt Quick application, for instance how to visually pick the element we want to get a closer look at or how to visualize pixel metrics.

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more.  https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/
GammaRay Tutorials (Part 6) - GammaRay Quick Scenes Introduction

Let's explore GammaRay's Qt Quick Scenes inspector in more detail. In this video, we are going to explain some of the many tools available when debugging a QML/Qt Quick application, for instance how to visually pick the element we want to get a closer look at or how to visualize pixel metrics.

The example code showcased in this video is available here: https://github.com/KDAB/kdabtv

This video is presented by Giuseppe D'Angelo, who is a Senior Software Engineer at KDAB. He has used Qt for almost two decades, is an active contributor to Qt, and regularly teaches Qt and C++.

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/

We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

4 0

YouTube Video UEw2Q0pZbjQwZ042aXR5YmVTSmI1RnZSV094Vlc1UENVWC4xMkVGQjNCMUM1N0RFNEUx

GammaRay Tutorials (Part 6) - GammaRay Quick Scenes Introduction

FacebookTwitterLinkedInEmail