By plain window, I assume you mean QML being wrapped into an Item { ... } element rather than ApplicationWindow , as well as using QQuickView to handle the window from the C++ side?
It did not change anything, but I notice that the clicked event fires off if I click where the button is supposed to be, so it's at least there, just seems like it becomes invisible or put behind the QQUickItem GL window.
The button works fine in the openglunderqml example, I copied the Squircle code over to my project and noticed that the button would still not draw unless I did not change the QSurfaceFormat like so:
@int main(int argc, char **argv)
{
QGuiApplication app(argc, argv);
QSurfaceFormat format;
format.setSamples(16);
format.setOption(QSurfaceFormat::DebugContext);
format.setMajorVersion(3);
format.setMinorVersion(3);
format.setProfile(QSurfaceFormat::CoreProfile);
qmlRegisterType<Squircle>("SimpleLOS", 1, 0, "Overlay");
AppView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);
view.setSource(QUrl("qrc:////content/gui/main.qml"));
//view.setFormat(format);
view.show();
return app.exec();
}@
Setting up my normal scene again without changing the QSurfaceFormat does not show the button, but at least I can be fairly certain that the issue has to be with the context or something similar.