setWinId(win->winId());
- //first check children. and create them if necessary
-// q_createNativeChildrenAndSetParent(q->platformWindow(),q);
-
-// //if we we have a parent, then set correct parent;
-// if (!q->isWindow()) {
-// if (QWidget *nativeParent = q->nativeParentWidget()) {
-// if (nativeParent->platformWindow()) {
-// platformWindow->setParent(nativeParent->platformWindow());
-// }
-// }
-// }
+// first check children. and create them if necessary
+ q_createNativeChildrenAndSetParent(q->windowHandle(),q);
+
+ //if we we have a parent, then set correct parent;
+ if (!q->isWindow()) {
+ if (QWidget *nativeParent = q->nativeParentWidget()) {
+ if (nativeParent->windowHandle()) {
+ win->setParent(nativeParent->windowHandle());
+ }
+ }
+ }
QApplicationPrivate::platformIntegration()->moveToScreen(q, topData()->screenIndex);
// qDebug() << "create_sys" << q << q->internalWinId();