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. Qt QGraphicsScene AddWidget QSvgWidget
Forum Updated to NodeBB v4.3 + New Features

Qt QGraphicsScene AddWidget QSvgWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 622 Views 3 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.
  • Q Offline
    Q Offline
    Qt.Jo.Ha
    wrote on last edited by
    #1

    I have added QSvgWidget using addwidget to QGraphicsScene. However, the Svg is broken, so it looks like a pixmap. Is there any way to solve it?

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

      Hi,

      What do you mean by broken ?
      What are you getting ?
      What are you expecting ?

      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
      • Q Offline
        Q Offline
        Qt.Jo.Ha
        wrote on last edited by Qt.Jo.Ha
        #3

        Broken means that I used svg, but when I apply the svg image to the button widget, it looks clean, but when I addWidget to the QGraphicsScene, it looks sizzling like a pixmap.

        Hopefully I get a clean widget even when I add a widget in QGraphicsScene.

        eyllanescE 1 Reply Last reply
        0
        • Q Qt.Jo.Ha

          Broken means that I used svg, but when I apply the svg image to the button widget, it looks clean, but when I addWidget to the QGraphicsScene, it looks sizzling like a pixmap.

          Hopefully I get a clean widget even when I add a widget in QGraphicsScene.

          eyllanescE Offline
          eyllanescE Offline
          eyllanesc
          wrote on last edited by
          #4

          @Qt-Jo-Ha Could you provide images that illustrate the cases you point to: button and QGraphicsView?

          If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Asperamanca
            wrote on last edited by
            #5

            Why don't you use QGraphicsSvgItem instead?
            Using a proxy widget will add all kinds of nasty surprises, one of them being that the content of the embedded widget does not scale nicely by default.

            1 Reply Last reply
            1

            • Login

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