[Resolved] Re: No MainWindow after refactoring

Axel Rau Axel.Rau at Chaos1.DE
Fri Jun 25 17:40:15 BST 2021

Hello David,

> Am 25.06.2021 um 13:28 schrieb David Boddie <david at boddie.org.uk>:
> On Wed Jun 23 22:49:16 BST 2021, Axel Rau wrote:
>> Source can be checked out here:
>> 	git clone git at codeberg.org <mailto:git at codeberg.org>:ajr/zad.git
>> This version runs the DNS stuff until completion but does not display the
>> MainWindow, only the app icon. It requires a network connection.
> It looks like the main window will be destroyed before the application's
> event loop runs.
> In https://codeberg.org/ajr/zad/src/branch/master/zad/views/main.py you
> create an instance of ZaMainWindow and configure it, but you don't return it
> to the calling function or keep a reference to it, so it will be garbage
> collected.

That’s it.
No magic in Qt.
It seems I missed the basics of oop here. (-;

Thanks a lot,
PGP-Key: CDE74120  ☀  computing @ chaos claudius

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210625/f2e9cff0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210625/f2e9cff0/attachment.sig>

More information about the PyQt mailing list