Stay in GLUT. There is no need to add Qt for the control panel. You can open the auxiliary window (or the second window, depending on what is best suited for the design of your program) and draw the controls in this window, as well as use GLUT to interact with the mouse.
In addition, Qt and GLUT have their own event loops. To use only the Qt event loop, you will have to abandon most of the GLUT structure since the GLUT event loop will not be there to call the callback functions. Qt has a function that allows someone else to loop through the events of the Qt event handling code, but I don’t think there is a simple way to get GLUT to pass event information.
source share