How to include .svg file in qtopenglwidget
Unsolved
General and Desktop
-
Hello I am a new learner. I am trying to add .svg file inside qt opengl widget. I am not getting any resoursce from where i can take help. Can anyone help me in this regards.
-
Hi,
Do you mean create a texture from a svg file ?
-
https://forum.qt.io/topic/122595/draw-qimage-in-qopenglwidget
you load it and draw it. -
@SGaist hello. I already have some icon designed in .svg format. Now i want to show them in qt opengl widget within some given coordinate. Suppose i want to show them(icon designed in .svg) in x=300 and y=500 coordinate. Can you give me some suggestion
-
As part of your OpenGL scene ?
As an overlay ? -
Then make a texture out of it and render it as part of your scene with the rest of your assets.