Integrate other GUI

Hi, I want to have some help on how to run the opengl window along with the Qt gui window. When I run my project, I only can get one or the other. I want to show the OF window when the user clicks a pushbutton or something like.