Trusted Software Excellence across Desktop and Embedded
Take a glance at the areas of expertise where KDAB excels ranging from swift troubleshooting, ongoing consulting and training to multi-year, large-scale software development projects.
Find out why customers from innovative industries rely on our extensive expertise, including Medical, Biotech, Science, Renewable Energy, Transportation, Mobility, Aviation, Automation, Electronics, Agriculture and Defense.
High-quality Embedded Engineering across the Stack
To successfully develop an embedded device that meets your expectations regarding quality, budget and time to market, all parts of the project need to fit perfectly together.
Learn more about KDAB's expertise in embedded software development.
Where the capabilities of modern mobile devices or web browsers fall short, KDAB engineers help you expertly architect and build high-functioning desktop and workstation applications.
Extensible, Safety-compliant Software for the Medical Sector
Create intelligent, patient-focused medical software and devices and stay ahead with technology that adapts to your needs.
KDAB offers you expertise in developing a broad spectrum of clinical and home-healthcare devices, including but not limited to, internal imaging systems, robotic surgery devices, ventilators and non-invasive monitoring systems.
Building digital dashboards and cockpits with fluid animations and gesture-controlled touchscreens is a big challenge.
In over two decades of developing intricate UI solutions for cars, trucks, tractors, scooters, ships, airplanes and more, the KDAB team has gained market leading expertise in this realm.
Build on Advanced Expertise when creating Modern UIs
KDAB assists you in the creation of user-friendly interfaces designed specifically for industrial process control, manufacturing, and fabrication.
Our specialties encompass the custom design and development of HMIs, enabling product accessibility from embedded systems, remote desktops, and mobile devices on the move.
Legacy software is a growing but often ignored problem across all industries. KDAB helps you elevate your aging code base to meet the dynamic needs of the future.
Whether you want to migrate from an old to a modern GUI toolkit, update to a more recent version, or modernize your code base, you can rely on over 25 years of modernization experience.
KDAB offers a wide range of services to address your software needs including consulting, development, workshops and training tailored to your requirements.
Our expertise spans cross-platform desktop, embedded and 3D application development, using the proven technologies for the job.
When working with KDAB, the first-ever Qt consultancy, you benefit from a deep understanding of Qt internals, that allows us to provide effective solutions, irrespective of the depth or scale of your Qt project.
Qt Services include developing applications, building runtimes, mixing native and web technologies, solving performance issues, and porting problems.
KDAB helps create commercial, scientific or industrial desktop applications from scratch, or update its code or framework to benefit from modern features.
Discover clean, efficient solutions that precisely meet your requirements.
Boost your team's programming skills with in-depth, constantly updated, hands-on training courses delivered by active software engineers who love to teach and share their knowledge.
Our courses cover Modern C++, Qt/QML, Rust, 3D programming, Debugging, Profiling and more.
The collective expertise of KDAB's engineering team is at your disposal to help you choose the software stack for your project or master domain-specific challenges.
Our particular focus is on software technologies you use for cross-platform applications or for embedded devices.
Since 1999, KDAB has been the largest independent Qt consultancy worldwide and today is a Qt Platinum partner. Our experts can help you with any aspect of software development with Qt and QML.
KDAB specializes in Modern C++ development, with a focus on desktop applications, GUI, embedded software, and operating systems.
Our experts are industry-recognized contributors and trainers, leveraging C++'s power and relevance across these domains to deliver high-quality software solutions.
KDAB can guide you incorporating Rust into your project, from as overlapping element to your existing C++ codebase to a complete replacement of your legacy code.
Unique Expertise for Desktop and Embedded Platforms
Whether you are using Linux, Windows, MacOS, Android, iOS or real-time OS, KDAB helps you create performance optimized applications on your preferred platform.
If you are planning to create projects with Slint, a lightweight alternative to standard GUI frameworks especially on low-end hardware, you can rely on the expertise of KDAB being one of the earliest adopters and official service partner of Slint.
KDAB has deep expertise in embedded systems, which coupled with Flutter proficiency, allows us to provide comprehensive support throughout the software development lifecycle.
Our engineers are constantly contributing to the Flutter ecosystem, for example by developing flutter-pi, one of the most used embedders.
KDAB invests significant time in exploring new software technologies to maintain its position as software authority. Benefit from this research and incorporate it eventually into your own project.
Start here to browse infos on the KDAB website(s) and take advantage of useful developer resources like blogs, publications and videos about Qt, C++, Rust, 3D technologies like OpenGL and Vulkan, the KDAB developer tools and more.
The KDAB Youtube channel has become a go-to source for developers looking for high-quality tutorial and information material around software development with Qt/QML, C++, Rust and other technologies.
Click to navigate the all KDAB videos directly on this website.
In over 25 years KDAB has served hundreds of customers from various industries, many of them having become long-term customers who value our unique expertise and dedication.
Learn more about KDAB as a company, understand why we are considered a trusted partner by many and explore project examples in which we have proven to be the right supplier.
The KDAB Group is a globally recognized provider for software consulting, development and training, specializing in embedded devices and complex cross-platform desktop applications.
Read more about the history, the values, the team and the founder of the company.
When working with KDAB you can expect quality software and the desired business outcomes thanks to decades of experience gathered in hundreds of projects of different sizes in various industries.
Have a look at selected examples where KDAB has helped customers to succeed with their projects.
KDAB is committed to developing high-quality and high-performance software, and helping other developers deliver to the same high standards.
We create software with pride to improve your engineering and your business, making your products more resilient and maintainable with better performance.
KDAB has been the first certified Qt consulting and software development company in the world, and continues to deliver quality processes that meet or exceed the highest expectations.
In KDAB we value practical software development experience and skills higher than academic degrees. We strive to ensure equal treatment of all our employees regardless of age, ethnicity, gender, sexual orientation, nationality.
Interested? Read more about working at KDAB and how to apply for a job in software engineering or business administration.
Once again, the theme of the day is how to speed up Qt development with Visual Studio Code. In part 2 of this blog series, we walked through how to get a complete setup for your qmake and CMake projects, with a deeper look at the Qt side. This time, I will share a few tips and tricks to further integrate Qt into Visual Studio Code.
In this post, we will see how to:
Enable syntax highlighting for Qt specific files
Quickly switch to Qt Creator for editing .qrc and .ui files
Work on single QML files by previewing them through qmlscene
Inspect your application with GammaRay
Generate profile data for your QML application
An Introduction to Code Runner
Before we start digging into new settings, it is necessary to say a few words about another Visual Studio Code extension: Code Runner. Code Runner is, in essence, an extension that lets you quickly run scripts on single files. Scripts that get run on files can be customized in the settings file. They can be associated to files through one of three mechanisms: depending on the file's language identifier, depending on its file extension, or by matching the file name with a glob expression. The settings entries for these are, respectively: code-runner.executorMap, code-runner.executorMapByFileExtension, and code-runner.executorMapByGlob.
This settings snippet is using script mapping by language ID. These settings will tell the Code Runner extension to launch this script for all files that are identified as C++ language files. That includes, for instance, all files with extensions .cxx, .cpp, .hxx, .hpp, .h, .cc, and so on. Furthermore, this script will be run for all the files for which the language type gets set explicitly to "C++," either through the "Change language mode" command or through the "files.association" setting.
This setting snippet maps the same script as before, but this time the script will only apply to files with the .cpp extension, while ignoring all the other files that get identified as C++ files by Visual Studio Code.
This setting snippet maps the script to all files with names matching the glob expression "*.cpp," that is, all files with a .cpp extension that is equivalent to the last example. An advantage of using glob patterns is that you can use more complicated rules (imagine wanting a specific rule for "CMakeFiles.txt" rather than a generic script for "*.txt"). However, note that the pattern of each glob rule is matched against the file name rather than the whole relative path, so those patterns have limited scope.
As you can see from the snippets, scripts for Code Runner support variable replacement. However, variable names are custom to Code Runner, rather than the standard Visual Studio Code ones. We will be using $dir (the directory of the files on which to run the script), $fileName (the base name of the file), and $fileNameWithoutExt (the base name of the file without an extension). For all other supported variables, you can check the extension's main page.
Once configured, the scripts mapped through Code Runner can be executed by launching the "Run Code" command or by using the key combination "Ctrl + Alt + N."
There are few caveats to keep in mind when using Code Runner to avoid surprises.
Caveat #1: Preset configurations
There are a number of preset configurations provided by the Code Runner extension itself. You can find them here.
Furthermore, mapping from files to scripts is resolved in a specific order and, as soon as a script is found for the file, all other matching rules are ignored. The order is roughly by glob, then by language ID, then by extension. If you would like more details, you can check the source code.
Because of how mappings are resolved, it could happen that a script in your settings is not being executed as you would expect. When that happens, it's possible that one of the default scripts is running instead. To fix that, you can override the default script by explicitly setting it to null.
For instance, let's take the following snippet:
{"code-runner.executorMapByFileExtension":{".cpp":"echo I am a cpp file!"}}
This will not work because there is already a script mapped to the language ID, "cpp," and that will be checked first. To get it to work as expected, you will need first to remove the default entry explicitly:
{"code-runner.executorMapByFileExtension":{".cpp":"echo I am a cpp file!"},"code-runner.executorMap":{"cpp": null
}}
Caveat #2: Default arguments
If you don't use any variable ($dir, $fileName, etc.) in your script, the full path to the file to run will be appended to your script implicitly.
So, if you have a rule like this one:
{"code-runner.executorMapByFileExtension":{".cpp":"echo I am a cpp file!"}}
what you will see as an output will be this:
> I am a cpp file!/full/path/to/your/cpp/file.cpp
Caveat #3: Running environment
Scripts, by default, will inherit environment variables from the Visual Studio Code process. Therefore, any command referred by scripts should be already reachable through the PATH environment variable. However, you can customize your environment from within Visual Studio Code with a few extra steps:
Configure the environment for Visual Studio Code's integrated terminal. That is done by configuring the setting "terminal.integrated.env.{windows,linux,osx}" according to your current system. For instance, in the example below, we make clang/clang++ available on the terminal under Windows.
Configure Code Runner so it runs its scripts on a terminal rather than using its own process. To do so, it is enough to set "code-runner.runInTerminal" to true.
{"code-runner.runInTerminal":true}
Preview QML files with qmlscene
Running QML files through qmlscene only requires adding a script for QML files through Code Runner. Note that Visual Studio Code doesn't recognize QML as a language by default. Therefore, we should either map the script by extension or by glob, or install an extension that provides QML as a language, like this one.
If you need access to custom QML plugins that are not available in your PATH, you can change your environment through settings, making sure to have Code Runner scripts run through a terminal.
This snippet is useful if you want to take advantage of the Qt Creator UI for updating resource files or using the designer for .ui files. The rule for this is pretty straightforward, as what we need to do in the end is only to open a file through Qt Creator.
Note that we pass the -client argument to Qt Creator, so that we don't end up launching a new instance every time.
Inspect your application with GammaRay
GammaRay is a powerful introspection tool for Qt applications, built by KDAB. It can attach to a running Qt application and let you do some interesting debugging with a graphical interface. Thanks to its in-depth knowledge of Qt internals, GammaRay can visualize graphically Qt Quick scene graphs, Qt Widgets hierarchies, signals, events, and so on.
If you are interested in knowing more about GammaRay, check out our tutorials on YouTube.
When launching GammaRay, we have the option to pass the path to a Qt application as an argument. If we do so, GammaRay will automatically launch the application, inject itself into it, and start the main GammaRay window. We can take advantage of this and create a launch configuration that lets us inspect our application through GammaRay in Visual Studio Code. If you don't know how launch configurations work, you may want to read older posts of this series (Part 1, Part 2).
{"name":"Launch app with GammaRay","type":"cppvsdbg","request":"launch","program":"GammaRay","args":["path/to/our/app","appArg1","appArg2",...],"console":"internalConsole","cwd":"${workspaceFolder}"}
Note that this launch configuration requires that you have GammaRay in your path.
Additionally, if the project is using CMake and is built through the Visual Studio Code CMake extension, we can also tune the GammaRay launch configuration so it runs the active CMake target through GammaRay, by slightly changing the args parameter of the configuration, as shown below.
{"name":"Launch current CMake target with GammaRay","type":"cppvsdbg","request":"launch","program":"GammaRay","args":["${command:cmake.launchTargetPath}"],"console":"internalConsole","cwd":"${workspaceFolder}"}
Profile QML applications with qmlprofiler
You can generate profile data for your QML application directly from Visual Studio Code by using qmlprofiler. To add that to your Visual Studio Code project it's enough to add a launch configuration as follows:
{"name":"Profile application with qmlprofile","type":"cppvsdbg","request":"launch","program":"qmlprofiler","args":["-o","your/favourite/output/dir/qmlprofiler.qtd","path/to/your/app"],}
Alternatively, to launch the current CMake target instead of a fixed executable, we can write a configuration like this:
{"name":"Profile current CMake target with qmlprofile","type":"cppvsdbg","request":"launch","program":"qmlprofiler","args":["-o","your/favourite/output/dir/qmlprofiler.qtd","${command:cmake.launchTargetPath}"],}
The output .qtd file can then be loaded by Qt Creator's QML Profiler.
Syntax highlighting
There are a few file types that recur often in Qt projects.
When developing a Qt application, you may get to manipulate files with nonstandard extensions, such as resource files (.qrc), ui definition files (.ui), or moc files (.moc).
By default, Visual Studio Code will not be able to infer the file type for those files whose extensions it doesn't know. It will then default the file type to "Plain Text," which also means there will be no code highlighting.
Visual Studio Code will let you customize the file associations for files by using a glob pattern. You can take advantage of that and get Qt specific files to look as you would expect. To create new code highlight associations, it is enough to update the "files.association" setting in your settings.
For our case in particular, with Qt, the specific files extensions ".moc", ".qrc" and ".ui" are enough to add the following lines in your workspace settings:
Trusted software excellence across embedded and desktop platforms
The KDAB Group is a globally recognized provider for software consulting, development and training, specializing in embedded devices and complex cross-platform desktop applications. In addition to being leading experts in Qt, C++ and 3D technologies for over two decades, KDAB provides deep expertise across the stack, including Linux, Rust and modern UI frameworks. With 100+ employees from 20 countries and offices in Sweden, Germany, USA, France and UK, we serve clients around the world.
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.