Bug #6874
closedWFileUpload does not support WPushButton as displayWidget
0%
Description
Hi,
I want to use the WFileUpload class and only provide a WPushButton to the user to pickup a file. But setting an instance of a WPushButton using the setDisplayWidget() method does not work.
Any idea whats going wrong?
Regards,
Stefan
Updated by Stefan Ruppert almost 6 years ago
Just forgot to mention I use wt-3.3.11 ...
Updated by Korneel Dumon almost 6 years ago
- Status changed from New to Feedback
Hi Stefan,
did you put the WPushButton in the widget-tree? If not, this will not work, since the file-upload does not take care of displaying the widget. You can for example put the WFileUpload and the WPushButton together in a WContainerWidget.
Korneel
Updated by Stefan Ruppert almost 6 years ago
Hi Korneel,
yes, adding the WPushButton to the widget-tree works fine!
Thanks,
Stefan
Korneel Dumon wrote:
Hi Stefan,
did you put the WPushButton in the widget-tree? If not, this will not work, since the file-upload does not take care of displaying the widget. You can for example put the WFileUpload and the WPushButton together in a WContainerWidget.
Korneel
Updated by Roel Standaert almost 6 years ago
- Status changed from Feedback to Closed