News for hackers. Stuff that matters.
Re:CXX-Qt: Safe Rust bindings for Qt by brnt on Wednesday March 02, 2022 @01:45PM (#30531100)
Quite frankly, I'd love to have some idiomatic C++14/17/20 bindings for Qt.

The official Qt for Python binding fits in very well with the language and style I think, but when using it in C++, I have to mix wildly different styles and me no likely.

Re:CXX-Qt: Safe Rust bindings for Qt by isomel on Wednesday March 02, 2022 @01:55PM (#30531251)
Qt is already idiomatic C++17. Isn't it?
Re:CXX-Qt: Safe Rust bindings for Qt by brnt on Wednesday March 02, 2022 @02:03PM (#30531338)
You're joking right?
Re:CXX-Qt: Safe Rust bindings for Qt by runnerup on Thursday March 03, 2022 @02:44AM (#30538263)
No, they’re ignorant. And the rest of us could use a clue too — I only use Qt with python and would love context on this.
Re:CXX-Qt: Safe Rust bindings for Qt by brnt on Thursday March 03, 2022 @02:50AM (#30538286)
Idiomatic C++98 and idiomatic C++17 might as well be two different languages. Using Qt, you'll feel forced to unlearn much of the recent good stuff and code like it's 98-ish. The fact that Qt comes with many of it's own standard types (QString!) without automatic conversion (unlike Qt for Python) makes it verbose and integrates badly with STL types. Then there are still some macros you need to use (e.g. for Connections).

In Python they did an excellent job with all of that.

Re:CXX-Qt: Safe Rust bindings for Qt by jcelerier on Thursday March 03, 2022 @03:09AM (#30538429)
What more integration do you need ? Qt types are able to use move semantics, are compatible with standard algorithms, support function objects and thus lambdas for callbacks, standard atomics, there's QStringView to match std::string_view use cases... What else ? Hell, it's trivial to make Qt work with c++20 coroutines ; Qt itself requires C++17 compilers since Qt 6
Re:CXX-Qt: Safe Rust bindings for Qt by brnt on Thursday March 03, 2022 @06:30AM (#30539642)
Integration is for instance not having to use QString(View) is the first place, like one doesnt with many of the bindings, including Qts own Python binding.

If you can show me a codebase that you think is modern C++ and uses Qt, it would be much appreaciated. I keep running into walls and havng to go back to coding like it's 98 basically, but hey, love to be shown it's me.

Re:CXX-Qt: Safe Rust bindings for Qt by jcelerier on Thursday March 03, 2022 @09:46AM (#30541684)
> Integration is for instance not having to use QString(View) is the first place, like one doesnt with many of the bindings, including Qts own Python binding.

that's because Python has unicode strings. C++ doesn't have a single, canonical unicode string type.

QString and QStringView are fundamentally different data types than std::string and std::string_view which aren't unicode ; the std::string and std::string_view Qt equivalents are QByteArray and QByteArrayView.

Re:CXX-Qt: Safe Rust bindings for Qt by pjmlp on Thursday March 03, 2022 @03:15AM (#30538481)
Plenty of people that actually pay for Qt, use it in environments where beautiful C++17 CppCon like examples are not welcomed, or even possible.

Naturally they care most about the people that support their families.

Anyone that dislikes this is free to provide pull requests.

Re:CXX-Qt: Safe Rust bindings for Qt by pjmlp on Wednesday March 02, 2022 @05:47PM (#30534451)
I think they accept pull requests.