@BoboFuego said in How to use anti-aliasing on QGLWidget?:
how can I add MyWidget.h as promoted class for it in the MainWindow constructor?
Promoted class won't allow you to pass parameters to a constructor. Just don't add it in the designer at all.
Lets say you've got this designer_widget as a central widget of the mian window in the designer. Just delete it entirely and add it in code: