Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • 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
    843 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
  • Loader vs createObject ?

    3
    0 Votes
    3 Posts
    1k Views
    N
    Thanks Wieland, Yeah so the asynchronous object creation is possible for both. The only major difference which I could find by studying the doc was that the instantiated qml component is destroyed when the Loader's source property is changed but you have complete control of the lifetime of the qml component when you explicitly manage the lifetime via javascript.
  • QQuickWidget beforeRendering()

    1
    0 Votes
    1 Posts
    477 Views
    No one has replied
  • How can I implement a TableView with merged cell span ?

    1
    0 Votes
    1 Posts
    612 Views
    No one has replied
  • Custom icon for QML component

    1
    0 Votes
    1 Posts
    494 Views
    No one has replied
  • [SOLVED] TextArea scroll events

    3
    0 Votes
    3 Posts
    1k Views
    B
    import QtQuick 2.4 import QtQuick.Window 2.2 import QtQuick.Controls 1.3 Window { visible: true width: 400 height: 200 TextArea { id: chat anchors.fill: parent property int threshold: 10 text: "Current\ntext\n\\to\nmove\ndown\ndown\ndown \ndown\ndown\ndown\ndown\ndown\ndown\ndown" Component.onCompleted: cursorPosition = text.length flickableItem.onContentYChanged: { if(flickableItem.contentY <= threshold) { var oldHeight = flickableItem.contentHeight text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua." + text flickableItem.contentY = threshold + flickableItem.contentHeight - oldHeight // leave flickable in old position } } } }
  • child's visibility

    1
    0 Votes
    1 Posts
    570 Views
    No one has replied
  • Displaying image by creating image file at runtime

    image qml opencv
    1
    0 Votes
    1 Posts
    630 Views
    No one has replied