# QVTKOpenGLNativeWidget stop the qt page jumping

**URL:** https://discourse.vtk.org/t/qvtkopenglnativewidget-stop-the-qt-page-jumping/12472
**Category:** Support
**Created:** [October 12, 2023, 1:29am UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-stop-the-qt-page-jumping/12472 "2023-10-12T01:29:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lkuan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lkuan/32/6571_2.png) [@lkuan](https://discourse.vtk.org/u/lkuan)
#### Post date: [October 12, 2023, 1:29am UTC](https://discourse.vtk.org/t/qvtkopenglnativewidget-stop-the-qt-page-jumping/12472/1 "2023-10-12T01:29:47Z")

</div>

Hi,

I’m developing a program using Vtk 9.1 and QT 5.14.2. My main problem is QVTKOpenGLNativeWidget. In my program, the page7 has a QWidget. In order to let the QWidget show a vtk scene, I promote it to a QVTKOpenGLNativeWidget in QTDesigner. Now I added some codes jumping from page7 to page10. I found that the UI is freezing at page7 and page10 doesn’t show. But when I cancel the promoting of the QWidget in QTDesigner, the jumping between page7 and page10 works. So I think the QVTKOpenGLNativeWidget causes the qt page jumping failure.  
I would be grateful for any tips.

Some code is following

int main(int argc, char \*argv)  
{  
QApplication a(argc, argv);  
Page7MainWidget p7;  
Page10MainWidget p10;

```
QObject::connect(&p7, SIGNAL(showpage10()), &p10, SLOT(recepage7()));

p7.show();
return a.exec();

```

}

void Page7MainWidget::on\_pushButton\_3\_clicked()  
{  
this-\>hide();  
emit showpage10();  
}

void Page10MainWidget::recepage7()  
{  
this-\>show();  
}
