Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Set Sampling in QQmlApplicationEngine
Forum Updated to NodeBB v4.3 + New Features

Set Sampling in QQmlApplicationEngine

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 699 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.
  • Z Offline
    Z Offline
    ZergedU
    wrote on last edited by
    #1

    Hey everyone,

    I was working through the "bezier curve":http://qt-project.org/doc/qt-5/qtquick-scenegraph-customgeometry-example.html example for subclassing a QQuickItem, and I ran into some issues with turning on multi-sampling. In the example code from main.cpp they do:

    @ QQuickView view;
    QSurfaceFormat format = view.format();
    format.setSamples(16);
    view.setFormat(format);
    view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml"));
    view.show();@

    But I would like to turn on multi-sampling and use an ApplicationWindow in my qml. So, I made a default Qt Quick Application, which has a main.cpp that looks like:

    @ QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:///main.qml")));@

    So, my question is how do I turn on multi-sampling for the QQmlApplicationEngine?

    Thanks!

    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