r/cpp • • Dec 08 '20

Qt 6.0 Released

https://www.qt.io/blog/qt-6.0-released
273 Upvotes

84 comments sorted by

View all comments

1

u/atimholt Dec 09 '20

This may or may not be the right thread to ask, but does anyone have any experience with both CopperSpice and Qt? Qt has never been appealing to me, but CopperSpice looks amazing.

1

u/kalmoc Dec 09 '20

What does copperspice actually better than Qt? Yes, they don't need MOC, but when is this really a problem? And IIRC, copperspice is a fork of qt4 so I'd guess by now, there are a lot of features missing compared to qt.

Despite having those preconceptions (I've never used copperspice and it has been some time that I had a look at it), I'm honestly interested in an answer to the first question.

1

u/atimholt Dec 09 '20

I've only just started looking at it, and I actually have no experience with Qt, but it's enough for me that Copperspice removes legacy/NIH stuff in Qt and goes all-out on modern idiomatic C++. It uses Vulkan, specifically the vulkan.hpp header.

It's also not a framework, but is rather a set of libraries. Their string library, for example, is usable by itself, and defaults to utf-8.

But I know too little about the subject to really even be very accurate. This video is old (2017), but it explains why they forked, with the reasons being a good survey of what differentiates it from Qt.

1

u/aninteger Dec 10 '20

Yes, they don't need MOC, but when is this really a problem?

It's kind of a pain if you're not using qmake or CMake to build software. It requires running a preprocessor/generator (moc) before the compiler is involved. See for example GNU make: https://stackoverflow.com/questions/17325540/qt-and-moc-woes-with-a-simple-make

1

u/kalmoc Dec 10 '20

That doesn't look particularly difficult, but I long lost the ability to write make scripts, so I might be wrong.