fix flahs
This commit is contained in:
parent
4fed661031
commit
1ecc46a94b
@ -175,7 +175,7 @@ QtOsgViewWidget::QtOsgViewWidget(QWidget* parent)
|
||||
setAttribute(Qt::WA_StaticContents, true);
|
||||
setAttribute(Qt::WA_NoSystemBackground, true);
|
||||
setAttribute(Qt::WA_OpaquePaintEvent, true);
|
||||
setAttribute(Qt::WA_DontCreateNativeAncestors, true);
|
||||
setAttribute(Qt::WA_DontCreateNativeAncestors, false);
|
||||
setFocusPolicy(Qt::StrongFocus);
|
||||
//Initialize();
|
||||
}
|
||||
@ -312,7 +312,7 @@ void QtOsgViewWidget::Initialize(void) {
|
||||
|
||||
setMouseTracking(true);
|
||||
|
||||
/* activeScene_ = new OEScene;
|
||||
activeScene_ = new OEScene;
|
||||
|
||||
activeScene_->AttachView(view_);
|
||||
activeScene_->InitEventHandle(view_);
|
||||
@ -342,7 +342,7 @@ void QtOsgViewWidget::Initialize(void) {
|
||||
|
||||
|
||||
OsgCameraManipulator* cameraManipulator = new OsgCameraManipulator(manipulator, this);
|
||||
view_->Initialize(cameraManipulator);*/
|
||||
view_->Initialize(cameraManipulator);
|
||||
|
||||
//activeScene_
|
||||
}
|
||||
@ -396,6 +396,6 @@ void QtOsgViewWidget::resizeEvent(QResizeEvent* event) {
|
||||
|
||||
devicePixelRatio_ = screen()->devicePixelRatio();
|
||||
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