Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • 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
  • 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
    609 Views
    No one has replied
  • Custom icon for QML component

    1
    0 Votes
    1 Posts
    492 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
    567 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
  • Need help deciding how to do things with listview

    qt quick qml listview
    5
    0 Votes
    5 Posts
    2k Views
    F
    @Chris-Kawa Thanks. Btw, is there a way to make something OO like in qml? I mean from my point of view I have a bunch of objects with different properties, some of then even contain another such objects. And I'd want to be able to draw all of them with these properties but all delegate/role models imply that I have some common set of properties which is not the case. Isn't there a way to "bind" some c++ qt object to it's proper qml representation stating how it should be drawn? For example, If I have object with int foo and QString bar property I'd like it to be drawn as Rectangle with foo and bar displayed inside of it. And if I have object wich is a "node" i'd like to draw it as the on above but with all children to the right or inside.