python - How can I use glutInitDisplayMode() in a QGLWidget, so I can get anti-aliasing? -


i have qglwidget in opengl objects created. want better anti-aliasing have using glutinitdisplaymode(glut_double | glut_multisample | glut_depth). how can impliment function (in python)?

qt application framework implements the gui event loop. glut application, implements the gui event loop. there can one gui event loop in process. hence qt , glut can not mixed.

just configure qglwidget multisampling. create qglformat instance, call setsamplebuffers(true) on it, , pass qglwidget constructor.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -