Hi guys!
I try to modify QOSGWidget to work with QT dialogs so I have one problem
If I show my dialog like this in keyboard section
void keyPressEvent( QKeyEvent* event )
{
if(event->key()==Qt::Key_F11 )
main_dialog->show();
}
Dialog is shown above osg window and when closed osg window works fine.
But I want to show this dialog based on my app statenot based on keyboard
event. Let's say I need to show this dialog when
Variable flag_start=true; so I set in my updatecallback flag_start=true and
in paintevent I made
Like this
virtual void paintEvent( QPaintEvent * event )
{
if (flag_start)
{
main->show();
Flag_start=false;
}
frame();
}
But when I've done this way I see dialog and it works fine but my osg window
halt.
So my question how to work with osg events with QT?
Thanx in advance
Bye
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org