Fix: 场景渲染画面不动
parent
71588dc72c
commit
20114158be
|
@ -2,6 +2,7 @@
|
||||||
#include "RendererGLWidget.h"
|
#include "RendererGLWidget.h"
|
||||||
#include "../FluentMenu.h"
|
#include "../FluentMenu.h"
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
#include <QStackedwidget>
|
||||||
|
|
||||||
Renderer::RendererWidget::RendererWidget(QWidget* parent)
|
Renderer::RendererWidget::RendererWidget(QWidget* parent)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
|
@ -85,7 +86,7 @@ Renderer::RendererWidget::~RendererWidget()
|
||||||
|
|
||||||
void Renderer::RendererWidget::currentTabChanged(int index)
|
void Renderer::RendererWidget::currentTabChanged(int index)
|
||||||
{
|
{
|
||||||
if (index == 1)
|
if (qobject_cast<QStackedWidget*>(sender())->currentWidget() == this)
|
||||||
{
|
{
|
||||||
ui.openGLWidget->startTimer();
|
ui.openGLWidget->startTimer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue