|
From: Marc G. <mar...@it...> - 2019-11-13 15:57:06
|
Hi Oli, officially, it is not possible to use any Qt-based GUI framework as Python package (PyQt or PySide). The reason is: - It was a design descision to run Python within itom in a 2nd thread, hence, the main thread belongs to the C++/Qt based GUI of itom itself. The reason for this is, that we always wanted to use the GUI while Python is doing any operation - Qt has (or at least had) the requirement that any widget is ALWAYS created within the main thread. Therefore the itom-internal GUI creation via Python always passes commands to the uiOrganizer, that runs in the main thread and executes everything that has to do with GUIs. - When I tried out PyQt a couple of years ago, PyQt crashed for this reason, already at the point where the Python-based QApplication is initialized, since it is shared with the QApplication (C++) of itom itself. - I tried PyQt another time a couple of month ago, there I could successfully start some GUIs. Maybe Qt relaxed the basic requirements. Currently, I don't have information that Qt officially allows creating windows or widgets from another thread than the main thread. Therefore we cannot officially recommend or support using PyQt or PySide. Cheers Marc Am Mi., 13. Nov. 2019 um 09:54 Uhr schrieb <sch...@tw...>: > Hi, > > > > Und zwar wird ja seit einiger Zeit das PySide2 Projekt offiziell von qt > Company unterstützt und unter der gleichen Lizenz wie qt released. > > Und es gibt wohl auch schon ein release für 5.11+. > > Ist es möglich/sinnvoll das in itom einzubinden, anstatt einer eigenen > pythonQt Schnittstelle zu haben? > > Ich stand mal wieder vor dem Problem, dass die QT Widgets teilweise > komische Signale emitten, > > mit e.g. QmodelIndex anstatt ints, die sich dann nicht verwenden lassen. > > > > Mit freundlichen Grüßen > > Oliver Schwanke > > > > > > *twip optical solutions GmbH* > Stammheimer Straße 10, 70806 Kornwestheim > Tel.: +49 (0)7154 157 78 51 > > Fax: +49 (0)7154 157 98 17 > sch...@tw... > www.twip-os.com > > Amtsgericht Stuttgart - Registergericht > HRB 746470 > Geschäftsführer Dr. David Fleischle > > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > Diese E-Mail ist vertraulich. Falls Sie nicht der angegebene Empfänger > sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, > informieren Sie uns bitte unverzüglich und löschen Sie diese E-Mail in > Ihrem Computer. > > -------------------------------------------------------------------------------------------------------------------------------------------------------- > This e-mail is confidential. If you are not the named addressee or if you > have received this e-mail in error, please notify us immediately and delete > the e-mail in your computer. > > > > > > > > > _______________________________________________ > Itom-discussions mailing list > Ito...@li... > https://lists.sourceforge.net/lists/listinfo/itom-discussions > |