Live data from Hacker News

Hello Qt for Python

blog.qt.io

21–30 of 176 posts

Re: Hello Qt for Python

#21

This seems to be the successor for PySide that supports Qt 5. The old PySide died some years ago and only PyQt was offering Qt 5 support. Due to some details PyQt was never officially supported by Qt. Is PySide2 now officially supported by Qt?

Yes: https://groups.google.com/forum/#!topic/pyside-dev/pqwzngAGL...

Re: Hello Qt for Python

#22
I've always found Qt and Python (PyQt and PySide) to be a weird match. So many times did I end up with cryptic segfaults in the python VM due to some python object being collected "too early", creating a dangling pointer in the C++ world. This can happen if you forget to set the parent object, for instance.

I know that those are things you have to worry about when you write C++, but when in the python world, you kind of expect everything to be refcounted for you. If I ever have to write a GUI app in python again, I'll probably chose another framework.

Re: Hello Qt for Python

#23

I would love to hear more about this from the sages of HN. I really don't enjoy GUI development in Python. I am not a good enough CS to have the language to describe what is wrong, but I find it really hard to get Python GUI stuff to do what I want.

Can't you use a designer GUI to develop the static GUIs? You will have to understand how layouts actually work and how the designer translates your design into code/widgets/layouts. Then in Python you write your logic and event handlers.

Qt also offers QML, if you are a fan of how those components look you may enjoy using it.

Re: Hello Qt for Python

#24
This is good ! I remember coding a GUI in PyQt5 when the first usables version of python 3 came out and it was incredibly painful.

Almost no documentation was avaible and I was learning how GUI works. It took me a while to get a basic app running and from there I mostly translated the official docs to python.

Re: Hello Qt for Python

#25
Sadly, we still don't have the seamless UI building functionality Delphi had 15 years ago, allowing making a fairly advanced desktop app in a day. Jumping between Qt Designer and IDE back and forth is still an order of magnitude more complicated than it needs to be.

Re: Hello Qt for Python

#26
FWIW I use PyQt5 in a code editor project I maintain. While all GUI frameworks have hiccups and smells to various degrees, Qt and PyQt5 has been, relatively speaking, the strongest UI framework I've encountered for Python. Why? Ease of development, cross-platform reach, "batteries included" (e.g. accessibility features, important for my project), friendliness of the API and breadth of features immediately spring to mind.

Perhaps PySide's return will encourage some competition in the Qt space for Python. For example, I wish it was simple to create a cross-platform installer for stand-alone Python apps that use Qt. Current solutions suffer from the 80/20 rule where the 20 usually contains something essential.

Re: Hello Qt for Python

#27
post #26

FWIW I use PyQt5 in a code editor project I maintain. While all GUI frameworks have hiccups and smells to various degrees, Qt and PyQt5 has been, relatively speaking, the strongest UI framework I've encountered for Python. Why? Ease of development, cross-platform reach, "batteries included" (e.g. accessibility features, important for my project), friendliness of the API and breadth of features immediately spring to m…

Sorry to be spamming here but check out my https://github.com/mherrmann/fbs. It is literally the solution to your pain point.

Re: Hello Qt for Python

#28
post #25

Sadly, we still don't have the seamless UI building functionality Delphi had 15 years ago, allowing making a fairly advanced desktop app in a day. Jumping between Qt Designer and IDE back and forth is still an order of magnitude more complicated than it needs to be.

> Jumping between Qt Designer and IDE back and forth is still an order of magnitude more complicated than it needs to be.

... uh ? the designer is part of the ide... nowadays you even have a code view synced with the UI editor in realtime (http://blog.qt.io/blog/2017/05/24/qt-quick-designer-qt-creat...)

Re: Hello Qt for Python

#30
post #7

Earlier quoted context omitted.

Permissive license.

So PyQt5 is GPL. Practically speaking what is the point of a new permissively licensed library?

Once upon a time, Qt was GPL + commercial. A separate project - PyQt - came and was GPL + commercial too.

Later, Qt became GPL + LGPL + commercial. However, PyQt, didn't want to add LGPL and stayed dual licensed. Qt thought "ok then, will have to do it by myself" and created an alternative to PyQt called PySide, which was GPL + LGPL + commercial.

That was in Qt4 time. Then Qt5 came, and PyQt5 appeared, while PySide was still in Qt4 land.

Then PySide2 happened, now known as Qt for Python.

Post reply on HN