Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to include .svg file in qtopenglwidget
Forum Updated to NodeBB v4.3 + New Features

How to include .svg file in qtopenglwidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 864 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Md Saif Khan
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean create a texture from a svg file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      1
      • JoeCFDJ Offline
        JoeCFDJ Offline
        JoeCFD
        wrote on last edited by
        #3

        https://forum.qt.io/topic/122595/draw-qimage-in-qopenglwidget
        you load it and draw it.

        1 Reply Last reply
        0
        • M Md Saif Khan

          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.

          M Offline
          M Offline
          Md Saif Khan
          wrote on last edited by Md Saif Khan
          #4

          @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

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Do you mean create a texture from a svg file ?

            M Offline
            M Offline
            Md Saif Khan
            wrote on last edited by Md Saif Khan
            #5

            @SGaist I am not sure. But I have explained what I need in previous reply.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              As part of your OpenGL scene ?
              As an overlay ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                As part of your OpenGL scene ?
                As an overlay ?

                M Offline
                M Offline
                Md Saif Khan
                wrote on last edited by Md Saif Khan
                #7

                @SGaist as part of opengl scene. I mean in Qt opengl Widget

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Then make a texture out of it and render it as part of your scene with the rest of your assets.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved