WTimer::singleShot send signal to dead object
@ WContainerWidget* container = app~~root()
>addWidget( std::make_unique() );root()~~>clear();@
WTimer::singleShot( std::chrono::milliseconds( 1000 ), container, &WContainerWidget::hide );
Updated by Roel Standaert about 5 years ago
- Status changed from Feedback to InProgress
While your code does not work, it ideally should work. It's actually a regression from Wt 3, since this should really be equivalent to creating a timer and then connecting its
timeout() signal, which does work properly in Wt 4. I'll make it so it does what you'd expect.