This reference page is linked to from the following overview topics: MotionBuilder 2014.
Native Widget Holder (can be used to embed native Qt Widget inside MoBu UI elements) A Widget holder provides a bridge to instantiate a Native Qt widget into MB framework.
This will be used to allow user to create UI with QT designer and hook their created UI into MB.
To allow a FBWidgetHolder to work properly, you need to specify a Creator function. This function will be called when needed to instantiate the native Widget.
Or override WidgetCreate(QWidget* pParent) function in the subclass.
/bin/config/Scripts/UI/ToolNativeWidgetHolder.py for python usage example.
Definition at line 2374 of file fbcontrols.h.
#include <fbcontrols.h>
Public Types | |
typedef QWidget *(* | WidgetCreator )(QWidget *pParent) |
typedef QWidget* (*WidgetCreator)(QWidget* pParent); | |
Public Member Functions | |
FBWidgetHolder () | |
Constructor. | |
void | SetCreator (WidgetCreator pCreatorFunction) |
Add a function that creates a native widget (a QWidget on Qt platform) On Qt, this creator function will take a void* (which can be cast as a QWidget) as the Widget parent On Qt, this creator function should return a void* (which will be a QWidget) that will be the newly created widget. | |
virtual QWidget * | WidgetCreate (QWidget *pParent) |
virtual function to be override in subclass. |
typedef QWidget*(* WidgetCreator)(QWidget *pParent) |
typedef QWidget* (*WidgetCreator)(QWidget* pParent);
Definition at line 2379 of file fbcontrols.h.
FBWidgetHolder | ( | ) |
Constructor.
void SetCreator | ( | WidgetCreator | pCreatorFunction | ) |
Add a function that creates a native widget (a QWidget on Qt platform) On Qt, this creator function will take a void* (which can be cast as a QWidget) as the Widget parent On Qt, this creator function should return a void* (which will be a QWidget) that will be the newly created widget.
pCreatorFunction | The creator function |
virtual QWidget* WidgetCreate | ( | QWidget * | pParent | ) | [virtual] |
virtual function to be override in subclass.
This function will be invoked if WidgetCreator is not set.