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

Flickering on resize #147

Open
hombit opened this issue Jul 11, 2019 · 4 comments
Open

Flickering on resize #147

hombit opened this issue Jul 11, 2019 · 4 comments
Labels

Comments

@hombit
Copy link
Collaborator

hombit commented Jul 11, 2019

All widgets change their size rapidly while application window is being resized.

We found that if scroll_zoom_area widget is switched of in main window than flickering disappear

Screenshot 2019-07-11 at 14 45 52

@hombit
Copy link
Collaborator Author

hombit commented Jul 11, 2019

The problem appears when OpenGLWidget is created in ScrollZoomArea constructor and only if OpenGLWidget's parent is this

@hombit
Copy link
Collaborator Author

hombit commented Jul 11, 2019

Minimal example

#include <QApplication>
#include <QDockWidget>
#include <QLabel>
#include <QMainWindow>
#include <QOpenGLWidget>

int main(int argc, char** argv) {
	QApplication app(argc, argv);

	QMainWindow main_window;
	auto opengl_widget = new QOpenGLWidget(&main_window);
	main_window.setCentralWidget(opengl_widget);
	auto dock_widget = new QDockWidget("label", &main_window);
	main_window.addDockWidget(Qt::RightDockWidgetArea, dock_widget);

	main_window.show();

	return app.exec();
}

IMG_0336
IMG_0311

https://youtu.be/idnqK6uSfBA

@hombit
Copy link
Collaborator Author

hombit commented Jul 12, 2019

Related bug in Qt: QTBUG-46634

@hombit
Copy link
Collaborator Author

hombit commented Jul 12, 2019

We opened new issue in Qt bug tracker: QTBUG-77032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant