File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -1030,6 +1030,21 @@ void CDockAreaWidget::onDockWidgetFeaturesChanged()
10301030}
10311031
10321032
1033+ #ifdef Q_OS_WIN
1034+ // ============================================================================
1035+ bool CDockAreaWidget::event (QEvent *e)
1036+ {
1037+ switch (e->type ())
1038+ {
1039+ case QEvent::PlatformSurface: return true ;
1040+ default :
1041+ break ;
1042+ }
1043+
1044+ return Super::event (e);
1045+ }
1046+ #endif
1047+
10331048} // namespace ads
10341049
10351050// ---------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -77,6 +77,17 @@ private Q_SLOTS:
7777 void reorderDockWidget (int fromIndex, int toIndex);
7878
7979protected:
80+
81+ #ifdef Q_OS_WIN
82+ /* *
83+ * Reimplements QWidget::event to handle QEvent::PlatformSurface
84+ * This is here to fix issue #294 Tab refresh problem with a QGLWidget
85+ * that exists since Qt version 5.12.7. So this function is here to
86+ * work around a Qt issue.
87+ */
88+ virtual bool event (QEvent *event) override ;
89+ #endif
90+
8091 /* *
8192 * Inserts a dock widget into dock area.
8293 * All dockwidgets in the dock area tabified in a stacked layout with tabs.
You can’t perform that action at this time.
0 commit comments