Project

General

Profile

Can't Load WContainerWidget

Added by Jennifer Bailey about 7 years ago

Hi! I have a class with a function that returns a WContainerWidget with an image and text in it. I have another class where I want to have this WContainerWidget returned and displayed. I have an object which I am using to run the function that has the WContainerWidget being returned. The problem is I cannot get the contents of the WContainerWidget to display.

I've tried the following but it has not worked:

(RootClass.ContainerTest(), this);

WContainerWidget test = (RootClass.ContainerTest(), this);

Can anyone help me please?


Replies (2)

RE: Can't Load WContainerWidget - Added by Jennifer Bailey about 7 years ago

I also tried the following just now but no luck:

WContainerWidget *Container = new WContainerWidget(this);

WContainerWidget *test22 = new WContainerWidget(RootClass.ContainerTest());

Container->addWidget(test22);

I would appreciate any help greatly, thank you

RE: Can't Load WContainerWidget - Added by Jennifer Bailey about 7 years ago

Figured out my problem I changed to returning a WWidget instead and all is well

    (1-2/2)