mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

616
comptes actifs

#pyqt

0 message0 participant0 message aujourd’hui

I have been making progress with my color converter/creation application built with PyQt. I just added a 4 point gradient tool this morning. This application will allow you to create, convert and manage all your colors in one place.

#Linux#Python#PyQt

This is a question for the #FreeCAD #macro people: I’ve created a dialog box with 3 radio buttons. The correct default button is selected, but I can’t figure out why the first button is highlighted? I’ve been reading through the documentation for QRadiobutton, but I can’t figure out why the toggled button isn’t highlighted.

Anyone have any ideas?

#pyside #qt #pyqt

EDIT: This has been solved. See responses below.

With a huge diff of +3,972 / −3,667 lines, rewriting the project tree of @novelwriter to use a model/view set from the previous approach that synced changes between the data class and the view widget's internal model didn't result in less code.

But I think it resulted in an easier to maintain code, and hopefully more stable over time. Syncing the project state between two locations is just a little error-prone, and Qt's default implementation is also a bit buggy.

#Code#Python#Qt

My latest coding project is moving the project data structure of @novelwriter from a Qt standard tree view into a custom model/view set.

The old implementation based on a QTreeWidget is a shadow copy of the project data, which needs to be kept in sync and is the most error prone part of the code.

The new model/view set holds the proper tree structure in memory and handles consistency directly in the hierarchy. But there is *so* much functionality to port over!

#Code#Python#Qt

Bonjour,

Nous validons 4 jours de formation pour le développement d'extensions dans QGIS ; 28 heures pour apprendre à scripter avec QGIS.

La formation se déroulera en ligne, du lundi 9 au jeudi 12 décembre, sur notre plateforme de formation à distance. Toutes les informations et le programme sont ici : 2i2l.fr/formation-python-avanc

Objectifs :
– Utiliser les bases de PyQT
– Connaître l’API QGIS
– Réaliser une première extension QGIS

🙂

#2i2L#Python#QGIS

If you use Qt from #Python (from any of its bindings like #PyQt or PySide or QtPy), read this excellent guide from @czaki on writing robust tests.

@czaki has repeatedly cleaned up the test suite for @napari, which often failed randomly in CI, and this post distills many of his learnings. I’ve found it super useful for my understanding of wtf was going on in our CI! 😂
fosstodon.org/@czaki/113146457

FosstodonGrzegorz Bokota (@czaki@fosstodon.org)I have summarized my experience in debugging of segfaults in Python test for Qt widgets here https://czaki.github.io/blog/2024/09/16/preventing-segfaults-in-test-suite-that-has-qt-tests/

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.

#Python#PyQt#Qt

Humbug... I seem to have stumbled into another #Qt / #PyQt related bug on Windows 😬

Am currently trying to implement an in-app screenshot-to-clipboard feature.

Problem:
- Images with size 500 x 500, or 702 x 301 copy fine

- Image with size 550 x 550 (or other sizes) hang the pasting app + crash mine

Any ideas how to work around this, or what's causing this?