Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.1k Posts
  • [SOLVED] QQmlListProperty: QObject subclass usage

    4
    0 Votes
    4 Posts
    4k Views
    J
    damm, had the same problem. for the record, the error message was Invalid property assignment: "roles" is a read-only property where Q_PROPERTY(QQmlListProperty<ModelRole> roles READ roleObjects)
  • A good way to allow editing of Model items?

    4
    0 Votes
    4 Posts
    2k Views
    D
    [quote author="njeisecke" date="1368618421"]Models should be part of the business logic and belong to C++. Accessing model data is currently readonly. You must provide a Q_INVOKABLE setData method in your model if you want to modify data in a C++ model. [/quote] Thank's so much for your response and detailed reply neisecke.
  • How to perform tasks sequentially? [SOLVED]

    11
    0 Votes
    11 Posts
    3k Views
    G
    Yeah, I managed to make a draft of a the manager. Now my application is waiting for the database before creating the interface. Like you said, I'll need to have a splashcreen to display the downloading of the database as it may take some time... thanks a lot.
  • [SOLVED] Need help at creating components module

    5
    0 Votes
    5 Posts
    2k Views
    P
    Yep you where right. It has to be in the qml folder not in the import folder. Thank you very much. :)
  • 0 Votes
    4 Posts
    2k Views
    sierdzioS
    Cool :) Please prepend "[Solved]" to the topic's title (you need to edit your first post too do that), it might help some other bloke in need ;)
  • QGraphicsProxyWidget and KeyNavigation - not a QDeclarativeItem?

    2
    0 Votes
    2 Posts
    1k Views
    T
    It sort of looks to me like I'm going to have to go through the whole business of putting a QComboBox into a QDeclarativeItem rather than a QGraphicsProxyWidget. If I've stumped the crowd here, I'm guessing that getting keyboard focus working with a QGraphicsProxyWidget would be hard.
  • Using QGraphicsView inside QML doesn't receive Touch Events!

    2
    0 Votes
    2 Posts
    2k Views
    J
    Nobody has an idea? Workaround?
  • 0 Votes
    3 Posts
    3k Views
    D
    Thank you very much for your insightful response! I've fixed my code and removed the margins, etc. and everything is working much better now. I really appreciate your feedback!!! Now if I can only figure out how to find the width in pixels of the longest (widest) line of text contained within a ListModel, still trying to figure that one out, heh. :-)
  • [SOLVED] Reference error: Can't find variable...

    3
    0 Votes
    3 Posts
    5k Views
    T
    Argh, thanks...didn't realise that they skipped the part where they explained the floodFill function. Guess it sometimes would be worth it to read the guide a bit more thoroughly. Once again Thank you!
  • [SOLVED] Problem with Canvas loading pictures

    3
    0 Votes
    3 Posts
    3k Views
    O
    Your are right. I have inserted the following line between line 16 and 17: @ canvas.unloadImage(canvas.path)@ Now it works.
  • MouseArea: making it stop capturing mouse events

    1
    0 Votes
    1 Posts
    804 Views
    No one has replied
  • [SOLVED] QML Qt.createQmlObject how to refer variable

    3
    0 Votes
    3 Posts
    1k Views
    M
    Thanks:)
  • How does QTreeWidget parse SQL tables?

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Speeding up Rendering of Repeater Item containing ShaderEffects

    1
    0 Votes
    1 Posts
    663 Views
    No one has replied
  • Register QTreeView To Qml using QGraphicsProxyWidget (QtQuick 2.0)

    2
    0 Votes
    2 Posts
    3k Views
    J
    No, I'm afraid that is exactly what it means. QGraphicsProxyWidget is a QGraphicsItem and not a QQuickItem. Since QtQuick 2 is not built on top of QGraphicsView like QtQuick 1 was, it is no longer possible to add widgets this way. One possible solution would be to port QTreeView into a QQuickPaintedItem yourself. The other option you have is to embed QtQuick 2 into a widget application, which will be supported in 5.1.
  • [SOLVED] Layout (ColumnLayout) margins doesn't work in SplitView

    8
    0 Votes
    8 Posts
    15k Views
    J
    Yes, the alignment was added after "columns" and "rows" was added, so that makes sense.
  • Calculating bounding shape of group of elements without corners

    1
    0 Votes
    1 Posts
    836 Views
    No one has replied
  • Can C++ totally replace Javascript?

    4
    0 Votes
    4 Posts
    3k Views
    Z
    You cant go wrong with C++. Python and JavaScript. Having these three languages under your belt, equips you for just about any programming related task, System, Desktop, Network, Game, Web, ...
  • Slow qml animation on linux

    2
    0 Votes
    2 Posts
    2k Views
    D
    Everything is connected to the drivers from intel and opengl. And tunning systems. After testing on pure gentoo linux performance equaled the windows 7 - the animation runs smoothly, although the CPU load. Do I right, that this is partially software rendering? Does it make sense to try to rebuild without qt opengl or not (and, indeed, how it can be done)?
  • QtQuick 2.0, read a QList<QString> from C++

    3
    0 Votes
    3 Posts
    1k Views
    O
    [quote author="DRAX" date="1368091405"]Have you tried: @egcView.allfiles.length@[/quote] Thank you for your reply. I don't know where is the index iterator o which property. In the tutorial seems this task is made by QQmlListProperty. But in my gridview I don't know how to make this index or iterator.