Why `FBVisualComponent::GetQWidgetAddress()` in Motion Builder SDK always return 0?

Why `FBVisualComponent::GetQWidgetAddress()` in Motion Builder SDK always return 0?

exkulo
Participant Participant
430 Views
1 Reply
Message 1 of 2

Why `FBVisualComponent::GetQWidgetAddress()` in Motion Builder SDK always return 0?

exkulo
Participant
Participant

Why `FBVisualComponent::GetQWidgetAddress()` in Motion Builder SDK always return 0?

I want to get the address of qwidget inside a `FBLabel`, and call some native QT method on it.

However, I found that the method always return a 0.

I wonder if this method works.

0 Likes
431 Views
1 Reply
Reply (1)
Message 2 of 2

exkulo
Participant
Participant

It seems that MotionBuilder uses QWidget encapsulated by theirselves, instead of native QT widgets like QLabel or QPushButton. It means that even if you can get the address of these QWidgets, you can do nothing to them. If you really want to make a nice user interface, just use the QT via `FBNativeHolder`.

0 Likes