Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • How to stop screen reader(Narrator) from reading password field in QML

    Unsolved
    11
    0 Votes
    11 Posts
    1k Views
    dheerendraD
    It is bug in Qt. Please look at the bug https://bugreports.qt.io/browse/QTBUG-82433
  • Difference between scene graph and frame graph? with suitable example and diagrams

    Unsolved
    3
    0 Votes
    3 Posts
    410 Views
    G
    @JKSH Scene graph is rendering loop of Qt Quick. How does frame graph gets render? How GPU resources are shared between Qt Quick 2 and Qt3D
  • Can't set MapPolyline path from C++

    Solved
    3
    0 Votes
    3 Posts
    496 Views
    eyllanescE
    @rykomick It is not recommended that you access QML objects directly from C++, it is best to create a QObject that has a property of the same type that the method requires and export it to QML through setContextProperty() or another mechanism and make the connection in QML.
  • Difference between Component, Instantiator, Loader

    Moved Unsolved
    1
    1 Votes
    1 Posts
    339 Views
    No one has replied
  • licensewizard

    Unsolved
    1
    0 Votes
    1 Posts
    131 Views
    No one has replied
  • DoubleClick Event on Qt wayland

    Unsolved
    1
    0 Votes
    1 Posts
    134 Views
    No one has replied
  • QML files in C++ libraries

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    M
    @raven-worx Thanks for your time. I think I need to spend some more time reading about Qt's MetaType system.
  • 0 Votes
    2 Posts
    432 Views
    L
    Try it offline, this way it wont go online and fetch tiles.. just a thought. lets see if you get any errors.
  • [qml] how to get x,y,w,h of zoom-in using PinchArea

    Unsolved
    2
    0 Votes
    2 Posts
    196 Views
    S
    Nobody to help me ;-( No pay, no support. I gave up qt. bye~
  • File Dialog default filename

    Solved
    2
    0 Votes
    2 Posts
    306 Views
    M
    I did not manage with the standard file dialog but with the platforms file dialog. the solution is to set the currentFile property
  • How to stop screen reader(Narrator) from reading password field in QML

    Locked Unsolved
    2
    0 Votes
    2 Posts
    181 Views
    aha_1980A
    Hi @Ajay-Krishna, you already have a topic for that question: https://forum.qt.io/topic/111358/how-to-stop-screen-reader-narrator-from-reading-password-field-in-qml Please stick there. There is also a last comment which you didn't answer yet. Regards
  • How to connect a signal to another in QML

    Solved
    2
    0 Votes
    2 Posts
    257 Views
    JKSHJ
    @hslee_6560 said in How to connect a signal to another in QML: so, I thought It would also possible in QML You're right! https://doc.qt.io/qt-5/qtqml-syntax-signals.html
  • Integrating C++ struct in struct to QML

    Unsolved
    3
    1 Votes
    3 Posts
    1k Views
    GabrielRRG
    I would suggest depending on your needs to use a model if you are planning on using a big data structure with a lot of components, but if you want to keep it simple I recommend using qmlRegisterType as FKosmale suggested.
  • QML binding executed before QObject connection

    Unsolved
    1
    0 Votes
    1 Posts
    144 Views
    No one has replied
  • Tying a context to the lifetime of a qml component?

    Unsolved
    4
    0 Votes
    4 Posts
    596 Views
    fcarneyF
    @FKosmale said in Tying a context to the lifetime of a qml component?: avoid setting context properties I guess I could create QQuickItem objects and add the relevant properties to those. I will have to think on this.
  • How to edit a cell in a model inheriting from QSqlTableModel

    Unsolved qml model-view
    7
    0 Votes
    7 Posts
    1k Views
    AhtiA
    @SGaist @Christian-Ehrlicher How would I let the view know about the data change ? And I would like to mention I am displaying the list of users with UserRole like this: QVariant UserModel::data(const QModelIndex &index, int role) const{ QVariant value; if (index.isValid()) { if (role < Qt::UserRole) value = QSqlQueryModel::data(index, role); else { int columnIdx = role - Qt::UserRole - 1; QModelIndex modelIndex = this->index(index.row(), columnIdx); value = QSqlQueryModel::data(modelIndex, Qt::DisplayRole); } } return value; } QHash<int, QByteArray> UserModel::roleNames() const{ QHash<int, QByteArray> roles; for (int i = 0; i < record().count(); i ++) { roles.insert(Qt::UserRole + i + 1, record().fieldName(i).toUtf8()); } return roles; }
  • Disable any date in QML Calendar

    Unsolved
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • Multiple charts on same QML page

    Unsolved
    2
    0 Votes
    2 Posts
    357 Views
    F
    @filipdns Hello, I'm trying what I need with the code below: function numberGraph() { var count= StringList.mecanoList().length for(var i=0;i<count;i++) { var trigramme=StringList.mecanoList()[i] console.log(trigramme) modelId.append({'mColor': 'blue','names':trigramme}) } } ListModel { id: modelId } BarCategoryAxis {id:categoryaxis; categories: ["2007", "2008", "2009", "2010", "2011","2012"] } Rectangle { id: rectId color: "transparent" anchors.fill: parent GridView { id: mGridViewId //anchors.fill: parent width: parent.width; height: parent.height cellWidth: parent.width; cellHeight: 300 model: modelId delegate: Rectangle { width: mGridViewId.cellWidth; height: mGridViewId.cellHeight color: mColor ChartView { width: parent.width; height: parent.height title:names StackedBarSeries { axisX:categoryaxis BarSet {id:free; label: "Free";values:[1,2,1,3]} BarSet {id:duty; label: "Duty";values:[1,2,5,0]} BarSet {id:off; label: "OFF";values:[5,3,1,4];color:"red"} } } } } } StackedBarSeries Charts are build fine but when I'm trying to scroll down, the application crash when I'm passing the seventh charts without any information on the reason, only the console message: "Can not find series on the chart." Trying to set axisX to null. Could you help me please? Kind regards
  • GridView crash when scrolling with no error even on debug mode

    Unsolved
    1
    0 Votes
    1 Posts
    130 Views
    No one has replied
  • Detect "KeyDown" event in qml

    Solved
    3
    0 Votes
    3 Posts
    564 Views
    M
    Thanks using below code works Keys.onReleased: { if(event.key === Qt.Key_Space && !event.isAutoRepeat) { // code here } }