Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.8k Posts
  • Animations on Treeview indicators not working correctly

    Unsolved qml qt6
    1
    0 Votes
    1 Posts
    255 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    8 Views
    No one has replied
  • module "QtQuick" version 2.12 is not installed

    Unsolved
    8
    0 Votes
    8 Posts
    806 Views
    A
    @J-Hilk By groping I found that the QtQuick I need to use with my setup was 2.3, but thanks for explain me the difference between versions
  • Module QtQuick 2.14 is not installed

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    jsulmJ
    @aim0d On what OS? You can download installer from here: https://download.qt.io/archive/qt/5.14/
  • 0 Votes
    10 Posts
    2k Views
    J
    For the purpouse of people who might search for an find this forum post, I put in a request with QT support and received the following. Hi Joe, Thank you for contacting Qt Support and for providing your sample project. There are 2 broad ways to specify the fragmentShader property, depending on which version of Qt you want to target: The Qt 5 way is to specify the shader's source code as a string. The Qt 6 way is to pre-compile your shader source code into a .qsb file, and specify a URL to that .qsb file See: https://doc.qt.io/qt-5/qml-qtquick-shadereffect.html#fragmentShader-prop https://doc.qt.io/qt-6/qml-qtquick-shadereffect.html#fragmentShader-prop To do it the Qt 5 way, the easiest approach is to copy the contents of your .frag file and paste it as a string literal (surrounded by quotation marks) to the RHS of the "fragmentShader" property. To do it the Qt 6 way, run the QSB tool to compile your shader source code. Unfortunately, the code of colour_wheel.frag is too old to be supported by QSB (for example, the "varying" keyword was deprecated long ago, and even removed for ES profiles) See: https://doc.qt.io/qt-6/qtshadertools-overview.html https://doc.qt.io/qt-6/qtshadertools-qsb.html I hope this helps.
  • QtLocation: MouseArea stop Updating even if hoverEnabled is true.

    Unsolved
    1
    0 Votes
    1 Posts
    172 Views
    No one has replied
  • Qt Quick 3D an point cloud

    Unsolved
    2
    0 Votes
    2 Posts
    502 Views
    0
    https://youtu.be/1EkU5dvygno?t=2983
  • Set type point for Scatter3DSeries

    Solved
    2
    0 Votes
    2 Posts
    224 Views
    M
    mesh: Scatter3DSeries.MeshMinimal mesh: Scatter3DSeries.MeshPoint
  • engine.rootContext()->setContextProperty is failing to add property

    Solved
    18
    0 Votes
    18 Posts
    4k Views
    sierdzioS
    @jcdelve said in engine.rootContext()->setContextProperty is failing to add property: Interesting. By all other conventions of coding standards, it's bad practice to have a variable directly accessible like that... Is there a reason QT/QML prefers that over doing an invokable getter? Please read up on how Q_PROPERTY system works. You are not accessing a variable, you are accessing a property. QML (via Meta Object System) will use the getter / setter you provide in Q_PROPERTY declaration. It will not access the variable directly.
  • Visual Studio "QtQuick.Controls" version 2.15 is not installed

    Solved
    3
    0 Votes
    3 Posts
    506 Views
    elicatE
    Not is same problem. But I have try Delete build folder and problem is solved (i have read into post). Thanks
  • QML Canvas synchronization

    Unsolved
    4
    0 Votes
    4 Posts
    412 Views
    GrecKoG
    QTimer::singleShot(0, this, [=] { doTheScreenshot(); }); should do it.
  • Not work Surface3D and Scatter3D

    Solved
    2
    0 Votes
    2 Posts
    322 Views
    M
    In main.cpp need add qputenv("QSG_RHI_BACKEND", "opengl"); more code: #include <QtDataVisualization/qutils.h> //! [2] #include <QtGui/QGuiApplication> #include <QtCore/QDir> #include <QtQml/QQmlContext> #include <QtQuick/QQuickView> #include <QtQml/QQmlEngine> int main(int argc, char *argv[]) { qputenv("QSG_RHI_BACKEND", "opengl");
  • ListView infinite list on adding/removing data from top/bottom

    Unsolved
    1
    0 Votes
    1 Posts
    179 Views
    No one has replied
  • [Quick3D] Vertex coloring

    Unsolved
    3
    0 Votes
    3 Posts
    361 Views
    0
    Just like in official tutorial with custom point cloud #include "heightmapgeometry.h" HeightMapGeometry::HeightMapGeometry() { m_pFrameTimer = new QTimer(this); connect(m_pFrameTimer, &QTimer::timeout, this, &HeightMapGeometry::m_update); m_pFrameTimer->start(120); m_generateTestMatrix(); m_updateGeometry(); } void HeightMapGeometry::m_updateGeometry() { clear(); int stride = 3 * sizeof(float); QByteArray vertexData(3 * stride, Qt::Initialization::Uninitialized); vertexData.resize(stride * (MATRIX_SIZE * MATRIX_SIZE * 2)); float *p = reinterpret_cast<float *>(vertexData.data()); for (int y = 0; y < MATRIX_SIZE; ++y) { for (int x = 0; x < MATRIX_SIZE; ++x) { QVector3D vertex(x * MATRIX_SCALE, y * MATRIX_SCALE, m_testMatrix[x][y] * MATRIX_SCALE); *p++ = vertex.x(); *p++ = vertex.y(); *p++ = vertex.z(); vertex.setY((y + 1) * MATRIX_SCALE); vertex.setZ(m_testMatrix[x][y + 1] * MATRIX_SCALE); *p++ = vertex.x(); *p++ = vertex.y(); *p++ = vertex.z(); } } setVertexData(vertexData); setPrimitiveType(QQuick3DGeometry::PrimitiveType::LineStrip); setStride(stride); addAttribute(QQuick3DGeometry::Attribute::PositionSemantic, 0, QQuick3DGeometry::Attribute::F32Type); } float HeightMapGeometry::m_generateTestMatrix() { for (int i = 0; i < MATRIX_SIZE; ++i) { for (int j = 0; j < MATRIX_SIZE; ++j) { float num = QRandomGenerator::global()->generateDouble() * (1.f - 0.f) + 0.f; m_testMatrix[i][j] = num; } } } void HeightMapGeometry::m_update() { m_generateTestMatrix(); m_updateGeometry(); update(); }
  • DoubleValidator strange behavior

    Unsolved
    3
    0 Votes
    3 Posts
    448 Views
    F
    @GrecKo said in DoubleValidator strange behavior: locale: "en" Thanks so much, this was indeed the problem! I suspected something like this at some point, and tried using a comma as a separator, but this wasn't accepted due to me using the parseFloat function somewhere in my code, which I mistakenly took as validation that commas weren't the right separator in the DoubleValidator.
  • QQmlApplicationEngine failed to load component

    Unsolved
    10
    0 Votes
    10 Posts
    2k Views
    P
    Thank you all
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    5
    0 Votes
    5 Posts
    293 Views
  • adding existing file

    Unsolved
    1
    0 Votes
    1 Posts
    241 Views
    No one has replied
  • How to set subtitle in QML MediaPlayer ?

    Unsolved
    2
    0 Votes
    2 Posts
    223 Views
    No one has replied