Project

General

Profile

Bug #6874

WFileUpload does not support WPushButton as displayWidget

Added by Stefan Ruppert about 4 years ago. Updated almost 4 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

#1

Updated by Stefan Ruppert about 4 years ago

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

#2

Updated by Roel Standaert almost 4 years ago

  • Assignee set to Korneel Dumon
#3

Updated by Korneel Dumon almost 4 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

#4

Updated by Stefan Ruppert almost 4 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

#5

Updated by Roel Standaert almost 4 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF