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.
To watch this video on our website please or view it directly on YouTube
For SIGGRAPH, KDAB has been working on a new Qt 3D based demo. We decided that instead of using C++, it would be interesting to try out PySide2 and harness Python to drive the application. The idea behind this demo is to do with data acquisition of a vehicle's surrounding environment. Once the data is acquired it can be processed and used to display a 3D scene. The application is structured in two main parts. On the one hand, we use QtQuick and the Qt 3D QML API to declare the UI and instantiate the 3D scene. On the other hand we use Python for the backend logic, data processing and models and definition of the custom Qt 3D meshes elements we'll need to use in the UI.
Simulating Data Acquisition
Since this is a demo, we simulate the data that we acquire rather than rely on real data acquisition through sensors. We simulate only two things:
Vehicle position and orientation
Road lines
The information for these is obtained by looping around a generated set of road sections. To define a fake road track, we've used cubic bezier curves, each bezier curve defining a road section.
A cubic bezier curve is defined as 2 end points + 2 control points. This allows for a rather compact description of the road section we want our vehicle to travel on.
Going from one curve to a full road track
Using this tool, we generated the bezier curves with these values:
Notice how each bezier curve starts at the position of the last point of the previous curve. That's because we want no discontinuity between our road sections.
On each curve, we sample 250 subdivisions to generate raw position data. Given we have 7 curves, that gives us a total of 1750 positions. In real life our vehicle is only aware of the immediately surrounding environment. In our case, we've decided that would be about 100 positions in front of the vehicle and 50 positions at the rear. Every 16ms, we increase a global index (which goes from 0 to 1750) and select 150 entries starting at our index. From these 150 positions we extrude 4 lines (to make 3 road lanes). The 50th entry we've selected is where we assume our vehicle is.
Road section start is positions[0]
Road section end is positions[149]
Vehicle position is positions[50]
Making our track visible through the camera
In the 3D view we assume the vehicle is placed in (0, 0, 0). The camera is placed slightly behind the vehicle, its view center being the vehicle. So if positions[49] is where our vehicle actually is in the real world, we actually need to translate back all our positions to minus positions[49]. We also want our vehicle and our camera to rotate as we are going along curves. For that we know that our camera is looking toward -Z (0, 0, -1). We can compute a vector u (vehicle position - road section start) and then find the angle between u and -z using the dot product.
In code this translates to simply creating a transform matrix:
road_start_position = self.m_points_at_position[0]screen_origin_position = self.m_points_at_position[50]defcompute_angle_between_road_section_and_z():# We want to look toward -Z target_dir = QVector3D(0.0,0.0,-1.0)# Our current dir current_dir =(screen_origin_position - road_start_position).normalized()# Angle between our two vectors is acos(dot, current_dir, target_dir) dot = QVector3D.dotProduct(target_dir, current_dir)return acos(dot)rot_angle = compute_angle_between_road_section_and_z()self.m_road_to_world_matrix = QMatrix4x4()# Rotate of rot_angle around +Yself.m_road_to_world_matrix.rotate(degrees(rot_angle), QVector3D(0.0,1.0,0.0))# Translate points back to originself.m_road_to_world_matrix.translate(-screen_origin_position)
Then, it's just a matter of transforming all these positions using the transformation matrix.
3D Rendering
Drawing the road
To render the road lines, we have created a new Qt 3D QGeometry subclass. The python backend generates new buffer data for the road every frame, based on the 150 transformed positions that have been computed. Basically for each 2 positions, a quad made up of 2 triangles is generated to make up one part of a road line. This process is repeated 4 times with an offset on the x-axis for each road line. In turn, this is repeated 150 times so that we have quads for each position and for each line to make up our 3 road lanes. We just upload these buffers to the GPU by using a Qt 3D QBuffer and setting its data property.
from PySide2.QtCore import Property, Signal, QByteArray
from PySide2.Qt3DCore import Qt3DCore
from PySide2.Qt3DRender import Qt3DRender
from array import array
classRoadLineGeometry(Qt3DRender.QGeometry):def__init__(self, parent=None): Qt3DRender.QGeometry.__init__(self, parent) self.m_position_buffer = Qt3DRender.QBuffer(self) self.m_position_buffer.setUsage(Qt3DRender.QBuffer.StaticDraw) self.m_position_attribute = Qt3DRender.QAttribute(self) self.m_position_attribute.setAttributeType(Qt3DRender.QAttribute.VertexAttribute) self.m_position_attribute.setDataType(Qt3DRender.QAttribute.Float) self.m_position_attribute.setDataSize(3) self.m_position_attribute.setName(Qt3DRender.QAttribute.defaultPositionAttributeName()) self.m_position_attribute.setBuffer(self.m_position_buffer) self.addAttribute(self.m_position_attribute)defupdate(self, data, width):# Data is a QByteArray of floats as vec3 float_data = array('f', data.data()) transformed_point =[v for i inrange(0,len(float_data),3)for v in[float_data[i]- width /2.0,0.0, float_data[i +2], float_data[i]+ width /2.0,0.0, float_data[i +2]]] self.m_position_buffer.setData(QByteArray(array('f', transformed_point).tobytes())) self.m_position_attribute.setCount(len(transformed_point)/3)
Note: in Python the QGeometry::geometryFactory API is unavailable, meaning that we need to update directly our QBuffer data in the frontend.
Drawing the bike
As for the bike, it is a .obj model we load and then scale and rotate with a transformation matrix. The scale and rotations are updated as we move through the track so that the bike always aligns with the road. To load the geometry, a custom .obj loader was written. Regular wireframing techniques usually display triangles if the mesh was exported as triangles (which was the case for us). Our custom loader works around that by analyzing faces described in the .obj file and generating lines to match the faces (we have square faces in our case). In addition, the bike uses a special FrameGraph. I won't highlight it in details but instead just give you a rough idea of what it does:
A first pass is rendered into a texture.
A loop is made
An input texture is then used as a base for a multi pass gaussian blur.
The fragment color is summed up with the previous blur output which ends up creating a Bloom Effect.
input texture for next pass = output texture of this pass
The Tron-like appearance is simply a result of this FrameGraph Bloom effect.
What about PySide2 and Qt 3D?
Using Python and PySide2 instead of C++ to create a Qt 3D-based application has quite a few advantages but also a couple of disadvantages:
Pros:
You can leverage 90% of the C++ API through the Python bindings
You can still use QML for the UI
A lot of C++ boilerplate is avoided, prototyping faster
Deployment is easy on desktop (pip install pyside2)
Cons
Qt 3D documentation for the Python is still lacking, tricky to find how to import the namespaces
Conversion of some Qt types to Python types is tricky (QByteArray, QVector<QVector3D> ...)
Deployment is hard on embedded (no arm pyside2 pip release yet)
Some odd behaviors and queue invocations (variable having to be printed for some changes to be take into account).
Overall it was an enjoyable experience and with the bindings, Python is a real alternative to C++ for most of what regular users might wish to do with Qt 3D. You can download Qt for Python here.
Sorry, we usually don't share the source code of our demos.
1 - Jan - 2024
Juliusz Kaczmarek
Why is that, if I may ask? You already provide snippets of code in the above article. Qt3d for Python documentation is so poor - there's never too many examples...
Paul Lemire
Senior Software Engineer
Senior software engineer at KDAB, Paul is a Qt approver and active contributor to the Qt 3D module where he is one of the main developers. He has been developing Qt based C++ and QML applications since 2010 and has particular interest and expertise in OpenGL and GPU assisted computing. Paul holds a Master’s degree in Computer Science.
6 Comments
26 - Jul - 2018
GIto
Impressive work ! Could you upload the video file for this?
27 - Jul - 2018
David Murphy
"Using this tool, we generated the bezier curves with these values:". I may have missed something but what dd you use for this ?
27 - Jul - 2018
Paul Lemire
Sorry, the link on "this" might not have worked. Full link is http://www.victoriakirst.com/beziertool/
23 - Mar - 2021
Nigel Brown
Where can we find the source to this demo?
19 - May - 2021
Paul Lemire
Sorry, we usually don't share the source code of our demos.
1 - Jan - 2024
Juliusz Kaczmarek
Why is that, if I may ask? You already provide snippets of code in the above article. Qt3d for Python documentation is so poor - there's never too many examples...