Project

General

Profile

Actions

Bug #6874

closed

WFileUpload does not support WPushButton as displayWidget

Added by Stefan Ruppert almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
01/28/2019
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Stefan Ruppert almost 6 years ago

Just forgot to mention I use wt-3.3.11 ...

Actions #2

Updated by Roel Standaert almost 6 years ago

  • Assignee set to Korneel Dumon
Actions #3

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

Actions #4

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

Actions #5

Updated by Roel Standaert almost 6 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF