Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window does not work with QVTKWidget #13

Open
marincom opened this issue Mar 22, 2018 · 1 comment
Open

Window does not work with QVTKWidget #13

marincom opened this issue Mar 22, 2018 · 1 comment

Comments

@marincom
Copy link

marincom commented Mar 22, 2018

It does not work as call setcentralwidget with QVTKWidget in Widget.cpp
My code is simple.
QVTKWidget * vtkw;

vtkw = new QVTKWidget;

this->setCentralWidget(vtkw);

I can not move dialog and resize, but toolbar button work well

Thank you in advance for your help.

#QVTKWidget is visualization tool kit libray for QT

@muby
Copy link

muby commented May 31, 2018

I have the same problem with a QGraphicsView with OpenGL.

I Have a QGraphicsView in the mainWindow.

then I set :
ui.graphicsView->setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));

then all mouse event seem's to be ignore.

Luweijia1989 pushed a commit to Luweijia1989/TrueFramelessWindow that referenced this issue Jan 7, 2020
when there is a widget that has a attribute Qt::WA_NativeWindow inside the mainwindow, QWinWidget will never receive any native event.
to fix this, install a native event filter for QWinWidget to force it to get the native event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants