I have been having a lot of trouble with picking a GUI library for new work lately and the worst idea, the worst possible idea that I keep coming back to, is adapting Ratatui or some other TUI library to create a backend that displays native GUI on a grid
@mcc After having suffered with PyQt builds for most of this calendar year, I can pretty categorically say that Python does *not* work well with Qt. It works, but not well, off of the immense amount of effort needed to package it... effort that breaks if you hold it even slightly wrong.
https://bsd.network/@scrottie/117651282491783567
*Picture of Roast Beef going … while all thought halts in his head* (in the next panel he is banging a robot)
@mcc is that a goddamn Achewood reference?
@patcharcana Well Patch, yes it is
@mcc i dunno. Qt + QML + JS. Sure. Why not. With a little bit of python. I once implemented an object system IN lingo script to avoid writing lingo script in Macromedia. I wrote java in MMdirector. Scheme interpreter in ES6 for QML. Next.
@poetaster In what engine does the JS part run? Could a program such as this be embedded in a website?
@mcc The js runs in the QML context of a Qt/QML thing. I don't understand why a website? That is what canvas is for. Pure JS and Canvas if it's to be web browser foo. Look at https://www.stef.be/bassoontracker/ pure canvas
If mindful you can do both. Canvas in qt/qml and in an html context. But, what for?
@mcc AND, I plugged a javascript canvas plotting library into a qt/qml wrapper as well. Still wip, though. But that's the math bits, not the rendering.
@mcc Qt in Python (via PyQt/PySide) works "okay enough". After getting into it, I've actually found it somewhat enjoyable, but I wouldn't claim that it works "legitmiately well".
I have also found multiple ways to cause native crashes with "pure PySide" code that does a use after free, effectively. So it doesn't fully solve the memory safety problem, sadly. And with how odd/C++-brained Qt's ownership management is, I wouldn't trust any language bindings to handle that completely right.
@mcc I've done things with PyQt, but I've never pushed it enough to really know, and I haven't seen any Qt applications written in anything but C++
@mcc they have C binding too right? 😅
@blinkygal I… I don't know if that's better or worse
@mcc (fair warning: this is a joke response)
This claude-slopped php qt extension claims to be a thing: https://github.com/php-io-extensions/qt
@kboyd hmm… i think… i will not use this
@mcc I certainly wouldn't - but it does have me wondering how sane/insane it would be to mess around with FFI for powering something like qt from php
Are there any non C++ languages that work legitimately well with Qt? Because I love the feel of programming with Qt but I just really don't want to write C++ anymore (this is before we get into inherent security risk)