fix flush
This commit is contained in:
parent
ed758bc551
commit
4fed661031
@ -171,11 +171,11 @@ QtOsgViewWidget::QtOsgViewWidget(QWidget* parent)
|
|||||||
: QWidget(parent) {
|
: QWidget(parent) {
|
||||||
LOG_INFO("actor, self={}", fmt::ptr(this));
|
LOG_INFO("actor, self={}", fmt::ptr(this));
|
||||||
|
|
||||||
setAttribute(Qt::WA_PaintOnScreen, false);
|
setAttribute(Qt::WA_PaintOnScreen, true);
|
||||||
setAttribute(Qt::WA_StaticContents, false);
|
setAttribute(Qt::WA_StaticContents, true);
|
||||||
setAttribute(Qt::WA_NoSystemBackground, false);
|
setAttribute(Qt::WA_NoSystemBackground, true);
|
||||||
setAttribute(Qt::WA_OpaquePaintEvent, false);
|
setAttribute(Qt::WA_OpaquePaintEvent, true);
|
||||||
setAttribute(Qt::WA_DontCreateNativeAncestors, false);
|
setAttribute(Qt::WA_DontCreateNativeAncestors, true);
|
||||||
setFocusPolicy(Qt::StrongFocus);
|
setFocusPolicy(Qt::StrongFocus);
|
||||||
//Initialize();
|
//Initialize();
|
||||||
}
|
}
|
||||||
@ -312,7 +312,7 @@ void QtOsgViewWidget::Initialize(void) {
|
|||||||
|
|
||||||
setMouseTracking(true);
|
setMouseTracking(true);
|
||||||
|
|
||||||
activeScene_ = new OEScene;
|
/* activeScene_ = new OEScene;
|
||||||
|
|
||||||
activeScene_->AttachView(view_);
|
activeScene_->AttachView(view_);
|
||||||
activeScene_->InitEventHandle(view_);
|
activeScene_->InitEventHandle(view_);
|
||||||
@ -342,7 +342,7 @@ void QtOsgViewWidget::Initialize(void) {
|
|||||||
|
|
||||||
|
|
||||||
OsgCameraManipulator* cameraManipulator = new OsgCameraManipulator(manipulator, this);
|
OsgCameraManipulator* cameraManipulator = new OsgCameraManipulator(manipulator, this);
|
||||||
view_->Initialize(cameraManipulator);
|
view_->Initialize(cameraManipulator);*/
|
||||||
|
|
||||||
//activeScene_
|
//activeScene_
|
||||||
}
|
}
|
||||||
@ -396,6 +396,6 @@ void QtOsgViewWidget::resizeEvent(QResizeEvent* event) {
|
|||||||
|
|
||||||
devicePixelRatio_ = screen()->devicePixelRatio();
|
devicePixelRatio_ = screen()->devicePixelRatio();
|
||||||
const QSize& size = event->size();
|
const QSize& size = event->size();
|
||||||
view_->Resize(0, 0, size.width() * devicePixelRatio_, size.height() * devicePixelRatio_);
|
//view_->Resize(0, 0, size.width() * devicePixelRatio_, size.height() * devicePixelRatio_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user