Qt Developers Discuss Theoretical Clang-Based Tool For Porting Qt5 Code To Qt6
Written by Michael Larabel in Qt on 23 April 2020 at 12:30 PM EDT. 23 Comments
QT --
While the future of Qt as an open-source project isn't too clear for now it's progressing as if all is well. One of the new items being discussed on the Qt 6 front is discussing a possible LLVM Clang based tool to help developers in automatically converting all of their Qt 5 syntax into a Qt 6 compatible manner.

This theoretical tool could dramatically help with Qt 6 adoption if it's in large part able to convert most Qt 5 code into Qt 6 compatible usage.

Vitaly Fanaskov of The Qt Company has brought up a mailing list discussion on the following premise:
Provide clang-based tools to (semi-)automatically port users' code bases to a new version of Qt. These tools might either fix a code or at least add a comment in potentially problematic places where a user should correct the code. A developer who changes API should also implement a rule for these tools. And of course slightly adjust API design guides.

It's certainly an interesting concept of being able to (semi-)automatically convert Qt5 code into Qt6 or at least lowering the barrier for coding. LLVM/Clang has been leveraged for efforts like automatic code formatting, translating code, and other innovative use-cases so it's certainly not out of the realm of possibilities.

But no one has actually written this utility yet and it's not clear if The Qt Company themselves are planning on doing so. Views expressed against this proposal is that Clang isn't able to compile all Qt-using code-bases so it wouldn't be universal and that such conversion code has yet to be written. Auto-generated code also tends to not look as good as manually written code, but we'll see if this effort goes anywhere for helping Qt 6 adoption for its debut at the end of 2020.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week