6#include <QtCore/qcoreapplication.h>
7#include <QtCore/qjnienvironment.h>
8#include <QtCore/qjniobject.h>
9#include <QtCore/qjnitypes.h>
10#include <QtGui/qwindow.h>
23 QWindow *parentWindow = QWindow::fromWinId(
reinterpret_cast<WId
>(rootView.object()));
25 rootView.callMethod<
void>(
"createWindow",
reinterpret_cast<jlong
>(parentWindow));
41 if (!
window->parent()->isVisible())
42 window->parent()->showNormal();
61 return env.registerNativeMethods(
62 QtJniTypes::Traits<QtJniTypes::QtView>::className(),
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS(QtView, "org/qtproject/qt/android/QtView")
void setGeometry(int posx, int posy, int w, int h)
Sets the geometry of the window, excluding its window frame, to a rectangle constructed from posx,...
static bool registerNatives()
Combined button and popup list for selecting options.
void setWindowVisible(JNIEnv *, jclass, jlong windowRef, jboolean visible)
void createRootWindow(JNIEnv *, jclass, QtJniTypes::View rootView, jint x, jint y, jint width, jint height)
void resizeWindow(JNIEnv *, jclass, jlong windowRef, jint x, jint y, jint width, jint height)
void deleteWindow(JNIEnv *, jclass, jlong windowRef)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height