c++ - How to joing window group on QNX using QT platform native interface? -
in qquickitem got window group name follows:
qplatformnativeinterface* interface = qcoreapplication::instance()->platformnativeinterface(); char* groupname = (char*) interface->nativeresourceforwindow( "windowgroup", window() );
i trying figure out how join window group. there little if documentation on qt platform native interface. found following via google search: https://qt.gitorious.org/qt/qtbase/source/b08cc0ec6f096d0e6764486c81264c24a406bee1:src/plugins/platforms/qnx/qqnxwindow.cpp
at point following creation of qqnxwindow object, application can change window group has joined. done using \e setwindowproperty function of native interface set \e qnxwindowgroup property desired value, example: \code qquickview *view = new qquickview(parent); view->create(); qguiapplication::platformnativeinterface()->setwindowproperty(view->handle(), "qnxwindowgroup", group);
so question "group" in case , if can show code snipped using interface ?
thank replies!
this snippet of code correct, in qnx can join window group of window created different process. group in case qvariant()
here meta example:
#include <qguiapplication> #include "qtgui/5.3.1/qtgui/qpa/qplatformnativeinterface.h" ...... qquickview *view = new qquickview(parent); view->create(); qguiapplication::platformnativeinterface()->setwindowproperty(view->handle(), "qnxwindowgroup",qvariant("mygroup")); ......
please give try, hope helps, did not have change test myself.
Comments
Post a Comment