Any Qt + Python devs out there with any experience on calling deleteLater() from the Python side?
I have some costly dialogs I want cleared on close, and so far I've been running deleteLater() in the closeEvent, which is clearly a little risky. I do get the very rare segfault especially if I close one particular dialog which has a QTimer singleShot call. If the deleteLater() is called when it is running, I get a RunTImeError.
Every time I explore #GUI making without a proper GUI library/framework, drawing directly on a window with #py5, I get something useful very quickly with lot's of control, but on the other hand, the code starts getting "complicated" quickly.
#PySimpleGUI is awesome for small forms/panels and, as the name implies, simple GUIs. I quickly got blocked by it for this use case. Maybe one day I'll learn #PyQt and "make the jump" to proper GUI building. But the initial complexity is daunting. I'm probably ignoring/overlooking the initial complexity of py5 too, because I'm so used to it and the subjacent #Processing way of doing things!
How come there are no widely used #FOSS#Android apps developed in #Kivy or #PyQt / #PySide ? Am I missing those somehow or is #Python not an appealing ecosystem/language for #mobile development?
For research projects where I use #NumPy and #MatPlotLib, I actually like using #Jupyter! It is just easier to run code and view my plots.
With #PyQt, you can even have widgets like sliders and other #Qt stuff.
It just speeds up my prototyping and makes me more productive. Naturally, only my plotting code and math exist in the .ipynb, and the rest is just imported from normal .py files. Thus, it allows for quick conversions once the prototyping is done.
I do love that just when i think i cant do something with a QT interface it surprises me and lets me do exactly what I need. Its been a productive day 💪
After installing PyQt with pip in a GNOME Wayland session, my application doesn't share my system theme.
This problem doesn't exist if I use PyQt from the distribution's repository. However, this also makes it difficult to use virtual environments for my applications.
Does anyone know why this happens? It seems to be specific to GNOME as I didn't have an issue like this before.
It could be possible that it is just set not to. Maybe there is a default setting or initialization. I would check if you could supply it.
Also, I've only used this in a #Windows environment, so maybe it doesn't work in the way you are running it. Just build it as an executable and see if it works then?
After spending almost an hour (and without any prior experience with custom widgets), finally managed to create my first custom listWidgetItem #Python#Qt#PyQt