can we read and paint svg image in qt?
I want to paint the svg image on the widget.
Of course you can:
- QPixmap img("/path/to/image.svg");
Make sure to have installed the imageformats plugins and the QtSvg4 lib on the target machines.
Sorry, I don’t understand your question.
Can you decide yourself whether you want to ask about drawing on widgets or about styling a widget with style sheets.
Asking smart questions [catb.org] is more likely to get you useful answers. Asking incomplete, weird and contradictory questions is likely to get you no answers at all.
Then state so clearly please. You’re talking about painting on widgets on the first post. Nobody else than you knows that you’re switching topics and talking about style sheets now. It would help if you added something like an “additional question” to one of your answers. A bit more explanation would help avoiding such confusion.
Now that things are sorted out: I don’t have experiences with styles sheets on widgets, so no statement on that from my side, sorry.