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. QQuickWidget on QGraphicsScene
Forum Updated to NodeBB v4.3 + New Features

QQuickWidget on QGraphicsScene

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 245 Views
  • 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 Offline
    L Offline
    Luckless
    wrote on last edited by Luckless
    #1

    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
    0

    • Login

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