[DiscordArchive] <@160857905879449600> do we need these connects btw?
[DiscordArchive] <@160857905879449600> do we need these connects btw?
Archived author: Skarn • Posted: 2019-06-10T08:22:40.702000+00:00
Original source
<@160857905879449600> do we need these connects btw?
Archived author: Skarn • Posted: 2019-06-10T08:22:43.866000+00:00
Original source
```cpp
_main_window->statusBar()->addWidget (_status_area);
connect ( this
, &QObject::destroyed
, _main_window
, [=] { _main_window->statusBar()->removeWidget (_status_area); }
```
Archived author: Skarn • Posted: 2019-06-10T08:23:15.962000+00:00
Original source
As far as I understand, the widgets take parent by default, so that should be excessive, right?
Archived author: Skarn • Posted: 2019-06-10T08:24:20.527000+00:00
Original source
unless status bar never gets destroyed?
Archived author: Skarn • Posted: 2019-06-10T08:24:25.221000+00:00
Original source
then it makes sense
Archived author: schlumpf • Posted: 2019-06-10T08:24:42.011000+00:00
Original source
I guess addWidget on the statusbar takes ownership to status bar? That outlives unload/load cycles
Archived author: Skarn • Posted: 2019-06-10T08:31:41.101000+00:00
Original source
I see
Archived author: Skarn • Posted: 2019-06-10T08:32:14.673000+00:00
Original source
makes sense then since main window and status bar never get destroyed
Archived author: A2 • Posted: 2019-06-10T08:44:27.403000+00:00
Original source
tell me you are joking <@100246412050075648> how hard to add multilingual support for nugget?
Archived author: Skarn • Posted: 2019-06-10T08:58:05.760000+00:00
Original source
weird, QDockWidgets parented to MapView are not getting removed when MapView is destroyed