Behind the Commit · Episode 10 · 9 July 2026 · 11 min

The Best of Two Languages: Connecting C++ & Python with Cristián Maureira-Fredes

Mia Bajić talks with Cristián Maureira-Fredes about connecting C++ and Python with Qt for Python.

Cristián Maureira-Fredes holds a PhD in astrophysics and is Research and Development Principal Manager at The Qt Company, where he leads the Qt for Python (PySide6) team and the Qt Core team. They discuss the open source history of Qt, why C++ code is not simply rewritten in Rust, how PySide bindings work, finding new C++ contributors, the impact of LLMs on understanding complex code, where Qt is used, why Qt uses Gerrit instead of GitHub, and where the name Qt comes from.

About the guest

Cristián Maureira-Fredes

PhD in astrophysics; Research and Development Principal Manager at The Qt Company, leading the Qt for Python (PySide6) team and the Qt Core team.

Chapters

Full Transcript
[00:00]

And most critically, because C++ is in many industries that already have C++ code bases interacting with these things. So you will not convince, I don't know, banks or whatever other thing. Hello, everyone, and welcome to another episode of Behind the Comet. Have you ever wondered what does AstroThings have in common with the software running in your car, your coffee machine, and Astro's internal tools? In this episode, I had the chance to talk to Cristián.

[00:27]

Cristián is a research and development principal manager at the Qt company. He leads the team behind Qt for Python, known as PyT6, the official Python bindings for the Qt framework. He also leads the Qt core team and a newly announced project called Qt Bridges, aims to introduce more languages to the Qt ecosystem. He has a PhD in astrophysics, but decided to leave academia and move into the software industry, eventually joining the Qt company in 2018. Beyond his day job, Cristián is a vice chair of the Python Software Foundation and a serial community organizer.

[01:03]

Involved in EuroPython, PyCon U.S. The transition of the Python documentation into Spanish and PyPI moderation. Where do you work and how does it relate to open source? I currently work at the Qt company for a long time, more than seven years, you know. And, well, it is a company, but has this nice feature in its core that it's based on an open source project.

[01:29]

So Qt is a framework that was introduced, well, it was developed, like, in the late 80s. Like, I think that it was, the first release was in 1991. And it was solving a real problem back then that was having a UI framework that you could have similar code, compile it in different operating systems, and then getting similar results. In the sense of, like, having the native look and feel.

[01:54]

So, mostly because of Linux, Windows, and macOS back then, they were really different. And there was no, like, you needed to have literally three different applications for that. Well, there were other options, but anyway. And the idea was an open source project since the beginning, solving a real problem. And folks that created, created a new company.

[02:15]

And then this company kept evolving, but at some point got acquired by another company. But they always kept the open source bit in this essence. So it was acquired by Nokia. And maybe you remember Nokia. And then everything was great with Nokia.

[02:31]

Then everything was not great with Nokia. And then they sold, as far as I know, the rights of the license, the commercial license of it, because it was always, like, open source and commercial as well, but with different licenses, to a different company called DJI. And then it was mature enough.

[02:46]

And then their own company kind of started. So even if it's called a cute company, that means that it's a company that has the rights to sell the commercial license. But it still is open source in this world. Right. And what language is the framework written in?

[03:01]

Or what technologies in general do you use? That's the tricky part, right? So it is a framework because it's so old. Back then it was written in the most popular language, the most complete, badly, includes language, which was C++. And considering the size of the framework and how it has been evolving, it's very difficult nowadays to kind of have a complete rewrite that we have seen recently with new languages, like, for example, Rust.

[03:28]

People rewriting things in new languages is almost impossible. And most critically, because C++ is in many industries that already have C++ code bases interacting with these things. So you will not convince, I don't know, banks or whatever other technology to, okay, can you rewrite everything so we can do so? Yeah. So it's C++ at this course, but there are a few bindings around.

[03:52]

And how is it working with a bindings-related project? So basically you need knowledge of C++ and knowledge of Python in order to be able to contribute, right? Yes. So with Qt, in the Qt company, we have the official set of bindings is called PySide. There is another set of bindings called PyQt that might be widely known, but it's a different company.

[04:13]

But I can talk to you about the PySide at least. So in PySide, there are the bindings for Python. So exposing the C++ framework to Python. But we needed, as a technology, first, a binding generator. So we have our own binding generator.

[04:29]

That's fun enough, it comes from a different set of binding burial for the Java language. But we took the essence of it, started to change the functionality, and then you need to, on a daily basis, be exposed to C++ code that is doing something. And then it gets generated into some C code to make it compatible with C Python. And after that, you compile it and have something that is importable from Python. So then, of course, it is and everything goes in Python.

[04:56]

So you need to have this understanding of modifying the core, generating the bindings, compiling the bindings, and then using it from Python to check if something works. So it's tricky. So how often do you get contributions from people on the internet? Yeah, on Qt, I think it is very difficult nowadays. We still have, like, a stable inflow contribution from different companies and other open source enthusiasts.

[05:22]

But I personally have seen a decrease in the C++ users around the world, like new users. So getting new contributors is something that we don't see very often, maybe a few per month. And sometimes people also get confused, right? Because if you want to, they know Python, they want to contribute to PySide, then how do they do it? Some of, most of the time, they need to contribute things through C++.

[05:46]

So it might be tricky for them. So for solving that, we have been trying to push in the past in different events, like Hacktoberfest, for example, to have people contributing other interesting things for the project, like new examples, new tests, or even new Python functionality that we have on top. Because as it's a binding, it's a one-on-one thing of Python.

[06:09]

We do have a lot of features that are Python only. So people could contribute to those things in a simpler way, kind of compared to C++. And you said that every year you have less contributions to C++. But I wonder, what is the impact of LLMs? Because LLMs do help people understand code and write code.

[06:30]

And I wonder, have you seen maybe people being able to contribute or to read once LLMs started being popular? Yeah, I think we had a few cases where people was contributing fixes that once the experts on those fields were checking, was, this makes no sense. What do you mean? And then we noticed that it was generated with the LLMs.

[06:52]

But I don't neglect the fact that, of course, those things are very useful for you to understand. I'm not a user myself, not because I don't like it or anything, but I never had the need. But I did a few tries with a couple of models out there in order for them to explain a few concepts within the Qt framework. And it was very accurate. So if you want to learn at least the idea, the implementation of things,

[07:16]

I believe that it would be very beneficial for new developers that are not exposed to this old language to understand how things work on top. But I haven't seen people getting help from LLMs to submit their contributions, to be honest. But maybe they are. And I didn't see it. So it sounds like the most challenging part of contributing to Qt is basically C++, right?

[07:41]

Are there any other challenges or is it only this one? No. Well, the other challenge, as I said, is that, and I'm not bragging, is the reality, Qt is used widely. Like from coffee machines into, you know, more advanced. At NASA, for example, they are using Qt everywhere for internal tools.

[07:58]

Most of the major other tech companies, I would not say any names of tech companies, but also have a lot of Qt within even some electric cars that you have. So modifying something has a lot of implications in what is going on in the world. I mean, C++ still, believe it or not, of course, runs the world. So we do have a very, need to have a very strict process. So it's not as easy, like, I want to just maybe add a new functionality.

[08:25]

Maybe not. But fixing bugs is something that we value the most. So fixing a bug of a super old framework is very difficult. Maybe you know it even from Python that if you go to the issue tracker and you see the oldest bugs, nobody has managed to fix it. So it's very rare for someone new to try to jump there and try to fix the bug.

[08:44]

So, yeah, it's tricky, but still possible. We still get contribution from externals. And how can people get involved if they would like to contribute? What's the best place where they can find more information about the project? This is a good question because for many years it was a pain point for people that they didn't know what to follow, what to read to the start.

[09:04]

So we managed to do something very simple in the URL of the project, so the open source side of things. So it's Qt, so Qt-project.org. And there we have a little text box with saying, like, oh, you want to submit a patch? First step, do this. Second step, do this.

[09:20]

But, of course, that is the process, not, like, guiding people how to solve problems, or at least the mechanism. Because there is one feature that might be very different to other projects that you might know, which is we are not on GitHub. We have our own instance of Gerrit. Gerrit is a different, you know, Git-tracking kind of platform thingy. It's used by the Chromium project, for example.

[09:42]

So that's kind of like the first wall for contributors to get there. And I wonder, what is the reasoning behind it that you are not on GitHub? Historical reasons. Historical reasons, right. Because before, there were other web interfaces for Git that we were using.

[09:57]

Well, before, even I think before it was SVN as well. But things were moving out. But, yeah, I mean, now we see that every single project is on GitHub. But moving this huge beast of a project to a new, because everyone is there, it's super tricky. We have mirrors on GitHub.

[10:11]

People get confused sometimes. They want to contribute there. But those are only mirrors. So that people need to seal that with the... But if you don't know it, I really invite you to try to check it out.

[10:21]

I mean, Gary, this is... I prefer the approach. And actually, it's that you always work on the same patch. So you're always, like, committing and amending the same commits. We have versions.

[10:30]

So then you merge the final version. So it's not like GitHub that you have many pull requests. Then you stash. Right. And what does the name Qt stand for?

[10:39]

Because when I heard it for the first time, I thought it was Qt as in C-U-T-E. But actually, it's Qt. What does it mean? The story goes as far as I remember. There was a different framework, sorry, Windows Manager for Windows, I think.

[10:55]

Or for... I don't remember. But it was called XT. That's the name. And one of the authors said that in the font that he was using, he really liked how the Q was rendered.

[11:07]

So he took that thing and they said, okay, Qt, and then the name, the rest is history. Yeah, that's it. Thank you for coming. Thank you very much. Thank you.

Behind the Commit is a podcast hosted by Mia Bajić. All episodes.