[Solved]How can we say that a widget is native or alien(non-native) ??
-
How can we know that a widget is native or alien(non-native) and what is the means of the follwong line.
"If a widget is non-native (alien) and winId() is invoked on it, that widget will be provided a native handle."
This is from docs.
-
Hi,
IIRC, widgets are by default alien since Qt 4.4. You should be able to check that using QWidget::testAttribute with Qt::WA_NativeWindow as parameter.
It means that if you call winId(), the alien widget will become a native widget.
Hope it helps
-
thanx Gaist ..!!!
-
hello frnds,
This is really a good and interesting discussion.
Your Qt Widgets are alien widget means they have less priority over the native widget/forms of OS.But passing the handle of Qt widgets you can make them as native widget/forms(in behavior).
Then OS treats your Qt app widgets as OS's widgets after passing the handle.
Hope it will help you. -
@SGaist hi! Can you check my question about native widgets(https://forum.qt.io/topic/66624/display-gstreamer-video-on-android)?
Regards.