Bug #8392
Updated by Roel Standaert about 1 year ago
Hello, I'm trying to convert a big application to wt4, I'm getting some errors that I will post here, first one is with toolbar widgets, I'm using the "widget()" method of the WToolbar to get a non owning pointer of the items: ```cpp auto lang_toolbar = make_unique<WToolBar>(); lang_toolbar->addWidget(make_unique<WComboBox>(), AlignmentFlag::Right); WComboBox* lang_select = (WComboBox*)lang_toolbar->widget(lang_toolbar->count()-1); ``` But each call to `lang_toolbar->widget(lang_toolbar->count()-1);` lang_toolbar->widget(lang_toolbar->count()-1); fails, any idea ? Kind regards J.