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.
Some of your users (me!) will be thankful that your application appears in the same language as the rest of their system.
Background
I'm a Polish guy working with computers, mostly on Windows. However, the lingua franca of the IT industry is English, so every time I see a tutorial for some dev tool, it's in that language. To lessen the burden of decoding which menu entry in the tutorial corresponds to which menu entry on my PC I decided to run the system with an English display language. I still want the rest of the i18n-related stuff (date format, keyboard, currency etc.) to be in Polish however.
That's why my system has Polish locale and English display language. This leads to a problem:
As you can see, Thunderbird and Windows Settings show up in English but Qt Linguist is encrypted with some overengineered Slavic cipher (aka Polish language). What I further noticed, is that this incorrect language selection is particularly prevalent in Qt-based applications. Subsequent digging revealed that this antipattern is widespread in Qt world, see the relevant GitHub search (requires login).
The Root Cause
My investigation made me think: Why do Qt users keep doing this wrong?
It turns out that it's what the documentation tells them to do! See, the first time a Qt user wants to do i18n they are led to the Internationalization landing page which contained the following section in the middle:
Which in case of my system is unfortunately incorrect. QLocale::system().name() will return "pl_PL" which is not what I want. You should use the other overload of QTranslator::load() that consults the list of user's preferred display languages (yes, it's a list) and chooses the correct one.
To be fair to Qt's docs, they actually tell you to use it but you need to navigate to the QTranslator docs and scroll to the bottom of the section about the first QTranslator::load() overload:
Not very discoverable
I personally believe that we shouldn't blame the developers if they use the first thing they see prominently featured on the subsystem landing page. They don't want to delve into intricacies of Qt's i18n support, they have other problems to solve with their application (also, developers are lazy, at least, I am).
That's why it's so important to make sure that users are taught best practice the first time they are dealing with a concept. Or at least they are explicitly warned that they should do things differently in a real-world code (with examples).
The Fix
The obvious fix is to change the offending line as I show in the beginning of the post. This won't however prevent new users from making this mistake again. The real fix is thus to fix the Qt documentation. And I did just that:
If you are a maintainer of Qt-based application, please take a look in your codebase and see whether you use this antipattern. If you won't fix it, and I happen to use your application, be prepared to deal with a change request at some point. :)
About KDAB
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.
Thank you so much! I have the same problem! I live and work in Germany and must use the same date/number format as my colleagues (so that we can share spreadsheets, etc.), but as a native English speaker, I want the GUI to display in English. The application I develop is in English, but some Qt elements such as the FileDialog and the ColorDialog were always appearing in German on my machine! I finally renamed Qt's german translation files (added a tilde to the extension -- a good way to temporarily disable files!) so that they wouldn't be found. So annoying! Now I finally know where the problem is coming from!
17 - Jul - 2020
Miłosz Kosobucki
Thanks for reading. Glad that the article helped you!
12 - Aug - 2020
Linda
BTW, we just updated to 5.15 (we were using 5.6 before!) and the problem is fixed there, so I no longer have to rename the translation files! Hurrah!
That's possible. I'll try to take a look if I find some time. Thanks!
2 - Mar - 2021
Andre
Hi,
IMHO, there is a huge pitfall because the documentation is wrong regarding the order of locales it loads.
If you look at https://doc.qt.io/qt-5/qtranslator.html#load-1 the order for (fr-CA, de) is
This was a huge pitfall for me because on a fresh Windows 10 Education installation for Germany, QLocale::system().uiLanguages() returns ("de-DE", "en-US"). And my application had "App_de.qm" and "App_en_US.qm" files. The English version was loaded all the time!
Is there anyway to first try to load all German versions and only then use the second UI Language?
Unfortunately, if you're still on 5.x that's more involved. Fix for this didn't land till 5.15.3 which is not yet available as LGPL version.
Recently, KDE announced that they're hosting a set of backported patches for the 5.15 series, so you may need to build your own Qt:
8 Comments
10 - Jul - 2020
Sys
Thanks a lot!
15 - Jul - 2020
Linda
Thank you so much! I have the same problem! I live and work in Germany and must use the same date/number format as my colleagues (so that we can share spreadsheets, etc.), but as a native English speaker, I want the GUI to display in English. The application I develop is in English, but some Qt elements such as the FileDialog and the ColorDialog were always appearing in German on my machine! I finally renamed Qt's german translation files (added a tilde to the extension -- a good way to temporarily disable files!) so that they wouldn't be found. So annoying! Now I finally know where the problem is coming from!
17 - Jul - 2020
Miłosz Kosobucki
Thanks for reading. Glad that the article helped you!
12 - Aug - 2020
Linda
BTW, we just updated to 5.15 (we were using 5.6 before!) and the problem is fixed there, so I no longer have to rename the translation files! Hurrah!
14 - Sept - 2020
Alexander
Hmmm, whether QLocale() should be used instead of QLocale::system() when loading translators for KF5: https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/ECMQmLoader.cpp.in#L53 ?
18 - Jan - 2021
Miłosz Kosobucki
That's possible. I'll try to take a look if I find some time. Thanks!
2 - Mar - 2021
Andre
Hi,
IMHO, there is a huge pitfall because the documentation is wrong regarding the order of locales it loads. If you look at https://doc.qt.io/qt-5/qtranslator.html#load-1 the order for (fr-CA, de) is
But in reality and according to the source comments at https://github.com/qt/qtbase/blame/40143c189b7c1bf3c2058b77d00ea5c4e3be8b28/src/corelib/kernel/qtranslator.cpp#L757 the order is:
This was a huge pitfall for me because on a fresh Windows 10 Education installation for Germany, QLocale::system().uiLanguages() returns ("de-DE", "en-US"). And my application had "App_de.qm" and "App_en_US.qm" files. The English version was loaded all the time!
Is there anyway to first try to load all German versions and only then use the second UI Language?
Regards, Andre
8 - Apr - 2021
Miłosz Kosobucki
Hello Andre.
I believe that what you described is a bug: https://bugreports.qt.io/browse/QTBUG-86179
This bug seems to be fixed in 6.0.1 and onward.
Unfortunately, if you're still on 5.x that's more involved. Fix for this didn't land till 5.15.3 which is not yet available as LGPL version. Recently, KDE announced that they're hosting a set of backported patches for the 5.15 series, so you may need to build your own Qt:
https://dot.kde.org/2021/04/06/announcing-kdes-qt-5-patch-collection
The patch seems to be there: https://invent.kde.org/qt/qt/qtbase/-/commit/e6e23d061cb8ac81007119603f8e7c64fc572e04