[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [Resolved] Re: No MainWindow after refactoring
From:       Axel Rau <Axel.Rau () Chaos1 ! DE>
Date:       2021-06-25 16:40:15
Message-ID: 0445C62F-2A0B-4BBF-8C6C-EC6B05F249BC () Chaos1 ! DE
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello David,

> Am 25.06.2021 um 13:28 schrieb David Boddie <david@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,
Axel
---
PGP-Key: CDE74120  ☀  computing @ chaos claudius


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class="">Hello David,<br class=""><div><br \
class=""><blockquote type="cite" class=""><div class="">Am 25.06.2021 um 13:28 \
schrieb David Boddie &lt;<a href="mailto:david@boddie.org.uk" \
class="">david@boddie.org.uk</a>&gt;:</div><br class="Apple-interchange-newline"><div \
class=""><div class="">On Wed Jun 23 22:49:16 BST 2021, Axel Rau wrote:<br \
class=""><br class=""><blockquote type="cite" class="">Source can be checked out \
here:<br class=""><span class="Apple-tab-span" style="white-space:pre">	</span>git \
clone git at <a href="http://codeberg.org" class="">codeberg.org</a> &lt;mailto:git \
at <a href="http://codeberg.org" class="">codeberg.org</a>&gt;:ajr/zad.git<br \
class=""><br class="">This version runs the DNS stuff until completion but does not \
display the<br class="">MainWindow, only the app icon. It requires a network \
connection.<br class=""></blockquote><br class="">It looks like the main window will \
be destroyed before the application's<br class="">event loop runs.<br class=""><br \
class="">In <a href="https://codeberg.org/ajr/zad/src/branch/master/zad/views/main.py" \
class="">https://codeberg.org/ajr/zad/src/branch/master/zad/views/main.py</a> you<br \
class="">create an instance of ZaMainWindow and configure it, but you don't return \
it<br class="">to the calling function or keep a reference to it, so it will be \
garbage<br class="">collected.<br class=""></div></div></blockquote></div><div \
class=""><br class=""></div>That's it.<div class="">No magic in Qt.</div><div \
class="">It seems I missed the basics of oop here. (-;</div><div class=""><br \
class=""></div><div class="">Thanks a lot,</div><div class="">Axel<br class=""><div \
class=""> <div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; \
text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: \
after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: \
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; \
-webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: \
rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; \
text-transform: none; white-space: normal; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); \
letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; \
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: \
break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div \
style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; \
font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: \
normal; font-variant-numeric: normal; font-variant-alternates: normal; \
font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; \
line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; \
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; \
-webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class=""><div class="">---<br \
class="">PGP-Key:&nbsp;CDE74120 &nbsp;☀ &nbsp;computing @ chaos \
claudius</div></div></div></div></div></div> </div>
<br class=""></div></body></html>


["signature.asc" (signature.asc)]

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEl5evOTfnjZdhkBzKaPxTRM3nQSAFAmDWBu8ACgkQaPxTRM3n
QSB73w//WKuO7v8/pb22PgKadd7PbMYTRRN7MVMciITWNcGnamYvwuiEFwXkkRRv
c3MvHe9EeYh5GN4NKKUbxzR1jb8o2XmiSI48+1QbKYAVlcW0y8Sz2oXjSb1Lp/aA
tGJxk+TansFDU7K5j37Wec9GB98644EPetcs/san4eGeC52UnIFXgcbbeIGlSI/m
uwJIUWKi7FijUiiycokL6upw5f542rkKS2wW/hMwzFFEaRoB6ITTb2grD3i4nKWx
BEBbo1/WmLvJ/zHM0/zVfEi6nnqO8gBUFf0aOCcK+ZVVOLGMvQZP9pnzonmWcqe7
Cvr1tqktkIQCHUVnsnAXdOJYbuI2HNaCxbTFVDLUixOYE+cpoQ38b3JWtX7V5ua8
bOcG15o13AVyMgnkJXEQ44U9d5NS/S4mDTuLnyR/4itl5e+3xbdWBdj9DuERBFVe
Nqille/BnsX5esln4EQcgvwHc+kmSDLZHQm4K5vLKp93DbGVxFwcywwJH/NuIYj2
bT33ECqwxFJT0tzH84zceykdveLE1cTBOueqX0QV6K1jWUgtWArTKDN8ys+X51np
XUttb9ceaGSttb2yhSdT4MJUEsLuU9S5ZA1gaDXcB21MYdMhDBrQsz2/Nmu8SB3/
xA/8a85cn8LZs4+i8+0mJuaol/9/+Wp9MXG0LPssx3R+LESnblE=
=N9k7
-----END PGP SIGNATURE-----


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic