Re: Draw listbox (or pushbutton or slider ...) by opengl in QT
Originally Posted by wysota
QStylePainter (or QStyle itself) is capable of drawing Qt widgets on a given painter. You can either open a painter directly on OpenGL canvas in Qt4 or use QOpenGLPaintDevice in Qt5 or paint on a pixmap, then convert it to a texture and apply it wherever you want directly in GL scene.
An alternative is to use Qt Quick.
Would u do me a favore and give me a simple code to understand more?
Bookmarks