Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • [SOLVED] how to initialize a property alias in QML

    property alias qml
    3
    0 Votes
    3 Posts
    6k Views
    T
    Ahh, sure! Thanks :-) Didn't thought it was that easy ;-)
  • ListView scrolling automatically

    7
    0 Votes
    7 Posts
    2k Views
    J
    @Iktwo Yes I want to see them all, but one by one.. I have this: height: 200 width: parent.width color: "blue" anchors.top: parent.top border.color: "black" border.width: 1 radius: 5 clip: true PathView { anchors.fill: parent model: latContent pathItemCount: 3 //currentIndex : 2 delegate: Component { Text { font.pointSize: 14 text: modelData } } path: Path { startX: 120; startY: 100 PathQuad { x: 120; y: 25; controlX: 260; controlY: 75 } PathQuad { x: 120; y: 100; controlX: -20; controlY: 75 } } } } latContent is my list from Bluetoothsocket, so basically my list could be 'infinite'.
  • Component.onCompleted events do not work

    3
    0 Votes
    3 Posts
    2k Views
    R
    thank you for suggestion! Now everything works like a charm!
  • Async API in qml and storing QJSValue in C++ objects

    3
    0 Votes
    3 Posts
    1k Views
    R
    ok, thank you!
  • Add double property as alias to text property

    2
    0 Votes
    2 Posts
    572 Views
    R
    The asnwer turns out to be as simple as: TextField { property double value: 0 validator: DoubleValidator { } focus: true text: "0" onAccepted: value = text onValueChanged: text = value }
  • MouseArea events on a Listview Component

    15
    0 Votes
    15 Posts
    5k Views
    p3c0P
    @Yuri Also just to make sure can you try with anchors.fill: parent instead of those 4 anchors ?
  • Set default font for qml controls

    6
    0 Votes
    6 Posts
    13k Views
    p3c0P
    @Rem-Kolomna Did you check FontLoader ? You can add FontLoader in sample.qml to load a particular font and then use it to assign to different elements.
  • The program finished unexpectedly

    8
    0 Votes
    8 Posts
    1k Views
    ?
    @Javeria If you really didn't change anything then maybe you should check your filesystem and hard drive. Maybe your disc is just about to die.
  • Unable to edit TextField font size

    qml
    7
    0 Votes
    7 Posts
    2k Views
    sosunS
    @p3c0 Yep, it works! I had to test this case before creating new thread. Anyway, thanks! I'll open an issue on GitHub.
  • drawText in QQuickItem

    qquickitem text
    11
    0 Votes
    11 Posts
    5k Views
    L
    Thanks @p3c0 Based on the documentation, QtDeclarative has already been deprecated in favor of the two new classes: Qt Quick and Qt QML. QQuickPaintedItem can be use as convenient way to port QDeclarativeItem-based classes that use the QPainter API. I've been searching on the internet how to render text on QSG nodes but to no avail. I'm still stuck into this problem. :(
  • 0 Votes
    13 Posts
    5k Views
    Z
    @p3c0 it does yet I wanted to fix the problem I personally faced thanks for an advice
  • MenuBar focus. Propagate hover and press events.

    qml qtquick menu
    3
    0 Votes
    3 Posts
    2k Views
    p3c0P
    @silex92 Perhaps you should post some code to try the scenario.
  • QML apps not runnable using static build up to Qt 5.0.1 release!

    24
    0 Votes
    24 Posts
    15k Views
    L
    The problem is actual for QT version 5.4
  • handling mouse events in QQuickView

    3
    0 Votes
    3 Posts
    840 Views
    R
    Thank you for your answer! I found even more simple solution - check QQuickItem::childAt for null. If it isn't null then I call inherited QQuickView::mousePressEvent method, otherwise I do my own work
  • [solved]qt.labs.gestures is not installed

    3
    0 Votes
    3 Posts
    1k Views
    B
    @p3c0 Thanks a lot.
  • [SOLVED]How to access sqlite rowid

    2
    0 Votes
    2 Posts
    2k Views
    B
    @belab Found it:var rs = tx.executeSql('SELECT rowid, * FROM Cards');
  • Newable script objects: QScriptEngine vs. QQMLEngine/QJSEngine

    4
    0 Votes
    4 Posts
    2k Views
    R
    You could also try to use your C++ object as a prototype: QJSValue myType = engine->evaluate("function MyType() {}"); myType.setPrototype( engine->newQObject(new MyTypeCpp)); I've not tried this, but this could work. Probably you would to have to set myType as property in the JSEngine::globalObject().
  • Cant launch Qt Quick Controls application

    11
    0 Votes
    11 Posts
    3k Views
    JKSHJ
    @Dmitriy You're welcome :) Good luck!
  • Locally Installed Modules

    1
    0 Votes
    1 Posts
    380 Views
    No one has replied
  • ListView: Change anchor onCurrentIndexChanged

    1
    0 Votes
    1 Posts
    650 Views
    No one has replied