signal.signal(signal.SIGINT, signal.SIG_DFL)
-
-
https://www.pythonfixing.com/2022/02/fixed-ctrl-c-doesn-work-with-pyqt.htmlSur un Debian Buster tout frais, en cas de error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory, il faut exécuter : sudo strip --remove-section=.note.ABI-tag /usr/lib64/libQt5Core.so.5
-
-
https://github.com/dnschneid/crouton/wiki/Fix-error-while-loading-shared-libraries:-libQt5Core.so.5QVariantMap aiaValue = aia.value().toMap();
QCOMPARE(aiaValue.keys(), QList
QString ocsp = aiaValue[QStringLiteral("OCSP")].toString();
-
-
https://code.woboq.org/qt5/qtbase/tests/auto/network/ssl/qsslcertificate/tst_qsslcertificate.cpp.htmlLe 3ème argument d'un QObject::connect (le contexte) peut être très utile pour éviter les crash en cas de destruction du pointeur visé dans cet argument. Ou en cas de connexion inter-threads.
-
-
https://www.vikingsoftware.com/getting-the-most-of-signal-slot-connections/On peut ajouter une version de Qt sur sa machine grâce à qtchooser:
qtchooser -install 5.8 /opt/Qt/5.8.0/bin/qmake
qmake -qt5.8 -v
-
-
https://harishnavnit.wordpress.com/2014/03/24/handling-multiple-versions-of-qt/Luckily, the spin box appearance can be changed by Style Sheet.
To get “Wheel Diameter” style spin box, use following style sheet:
QSpinBox { border: 3px inset grey; }
QSpinBox::up-button { subcontrol-position: left; width: 40px; height: 35px;}
QSpinBox::down-button { subcontrol-position: right; width: 40px; height: 35px;}
To get “Pulses per Revolution” style spin box, use following style sheet:
QSpinBox { border: 3px outset grey;padding-right: 40px;}
QSpinBox::up-button { subcontrol-position: right; right: 40px; width: 40px; height: 35px;}
QSpinBox::down-button { subcontrol-position: right; width: 40px; height: 35px;}
To get “Count” style spin box, use following style sheet:
QSpinBox { border: 3px groove gray}
QSpinBox::up-button { subcontrol-position: top right; width: 40px; height: 19px;}
QSpinBox::down-button { subcontrol-position: bottom right; width: 40px; height: 19px;}
-
-
http://mmcircuit.com/qt-tips-01-enlarge-spin-box/
-
-
https://stackoverflow.com/questions/24899558/how-to-check-qt-version-to-include-different-headerUn autre post sur les QThread. Quand on connaît un tantiner le sujet, on peut commencer par celui-là pour remettre les pendules à l'heure.
-
-
http://www.vikingsoft.eu/how-to-use-qthread-properly/When adding some files to INSTALLS, they are stripped if they are excecutables.
To avoid using strip, you can update "QMAKE_STRIP" variable and force stripping executables one by one using ".extra":
target.extra = strip $${DESTDIR}/$(TARGET)
QMAKE_STRIP = echo # Avoid striping unwanted files (which will not work)
applibs.files = $${DESTDIR}/*.so*
applibs.path = $$EXPORT_LIBPATH
INSTALLS += applibs
-
-
http://www.gossamer-threads.com/lists/mythtv/dev/141885Un autre post sur les QThread.
-
-
http://blog.debao.me/2013/08/how-to-use-qthread-in-the-right-way-part-1/Hier, j'ai releasé la v0.2.6 de Qompoter, a C++/Qt dependency manager. Outre les améliorations apportées au truc (recherche récursive des paquets, numéros de versions flous du genre v1.*, recherche des paquets dans Inqlude), cela m'a aussi permis de découvrir les scripts d'auto-complémetion Bash ! Et je surkiffe taper qompoter tab tab et voir la liste des actions possibles apparaître "install export inqlude jsong". C'est beau Linux.
Qompoter a atteint un niveau de maturité suffisant pour les petits projets, alors n'hésitez pas ! Vos retours sont les bienvenues.
-
-
https://github.com/Fylhan/qompoterTrès pratique le fichier .qmake.conf.
-
-
https://wiki.qt.io/QMake-top-level-srcdir-and-builddir