Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Unsolved QQuickWidget on QGraphicsScene

    General and Desktop
    1
    1
    116
    Loading More Posts
    • 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.
    • L
      Luckless last edited by Luckless

      I have a certain drawing in a qml where I am loading a few images. I am loading this qml on a QQuickWidget pointer using:

      m_quickWidget = new QuickWidget(QUrl("......"));

      Then I have done the following:

      QWidget *baseWid = new QWidget();
      baseWid->setGeometry(.......);
      layer->QMLItem()->setParent(baseWid);
      //layer->QMLItem() returns m_quickWidget
      scene()->addWidget(baseWid);
      //Add QWidget to QGraphicsScene (returned by scene())

      Now, I am able to see all my drawings that were done in qml, but the images that I loaded are getting blurred(stretched).If I directly show m_quickWidget instead of adding to QGraphicsScene, image is clear.

      What should i do to get the drawing right, using QGraphicsScene?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post