Search code examples
qtqt4qt-creatorqpainter

Kind of QPainter WYSIWYG Editor?


I need to draw a complicated object with Qt primitives using QPainter. The thing is I really need to do this in a such uncomfortable way, because it's part of the task. So, is there a kind of WYSIWYG editor, when you just draw object like you would in Gimp or Paint, and get pre-made code for Qt? The object is pretty complicated to draw manually, but I need to get raw code somehow! And yes, I'm totally new to Qt.


Solution

  • You might be interested in the QSvgRenderer.

    This should allow you to basically draw your object in any program which can export to SVG (Scalable Vector Graphics) (e.g. Inkscape) and start from there.