Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • [SOLVED]How do you use an object list in a Repeater?

    1
    0 Votes
    1 Posts
    760 Views
    No one has replied
  • [Solved] Best way to display/update live image data in a QML GUI

    8
    0 Votes
    8 Posts
    7k Views
    D
    [quote author="sletta" date="1410458827"] Could you please elaborate on which ones are not working properly? [/quote] Sorry, my fault. I take a look into the simple material example and it looks good. In my mind there was no types like lowp in the variables definitions but there are. Maybe in another example. If i found it i will report it and make a patch.
  • Q_ENUMS problem

    14
    0 Votes
    14 Posts
    13k Views
    O
    [[blank-post-content-placeholder]]
  • Which is the right way to implement to show emp data on qml

    9
    0 Votes
    9 Posts
    2k Views
    A
    Thank you so much. Let me try.
  • List Model How to Append data

    2
    0 Votes
    2 Posts
    787 Views
    H
    Finally I found the answer "here":http://www.codeproject.com/Articles/632795/QML-TreeModel-and-TreeView We can append new data to child list using @nestedModel.get(index).folders.append({"folderName": "Cam55}) nestedModel.get(index).folders.append({"folderName": "Cam66})@
  • Bug in TableView: keyboard (down arrow) after selection.select() is wrong

    2
    0 Votes
    2 Posts
    1k Views
    C
    I discovered the problem, the keyboard is responding to the "currentRow" which is not the same as the selected row. The solution is that when I call selection.select(0) I also have to set currentRow=0
  • Unable to get attribute in XmlListModel

    4
    0 Votes
    4 Posts
    1k Views
    dheerendraD
    I used the same xml. I'm able to get it through thumbnail. Just pasting here on what I did. It may help you. ===qt.xml========= @<?xml version="1.0" encoding="utf-8"?> <current> <thumbnail url="http://pthinks.france24.com/en/files/imagecache/france24_ct_api_medium2/article/image/20140910 marina silva.jpg"/> <source url="http://scd.france24.com/en/files/imagecache/france24_ct_api_medium2/article/image/20140910 marina silva.jpg">AFP | Marina Silva campaigns in the Rocinha favela in Rio de Janeiro on August 30</source> </current>@ @XmlListModel { id: xmlModel source : "qt.xml" query: "/current" XmlRole { name: "ThumNail"; query: "thumbnail/@url/string()" } XmlRole { name: "Source"; query: "source/@url/string()" } Component.onCompleted: { console.log("XML Model loaded") } } ListView { id : showCity width: 180; height: 300 model: xmlModel delegate: Text { text: ThumNail + ": " + Source } } @
  • Button with iconSource - how to set size?

    6
    0 Votes
    6 Posts
    2k Views
    Q
    Nice workaround! It really works. Not sure I can use it, but thank you, p3c0 :)
  • [SOLVED]resizing window doesn't resize gui element

    10
    0 Votes
    10 Posts
    4k Views
    D
    Simply change the thread title like all the other solved threads here :)
  • [SOLVED] Label supports mouse click event?

    3
    0 Votes
    3 Posts
    921 Views
    dheerendraD
    In addition what dasRicardo said, it is not like QLabel. Label is item. MouseArea is typically defined for visible item. So MouseArea can be defined for Label and implement whatever the mouseArea event you would like to have.
  • [BUG] Some styles does not work (background-color, background-image)

    7
    0 Votes
    7 Posts
    2k Views
    Q
    Please vote for bug "QTBUG-34219":https://bugreports.qt-project.org/browse/QTBUG-34219. Thanks!
  • [SOLVED] Anchoring childs in window element problem

    5
    0 Votes
    5 Posts
    3k Views
    X
    Thanks, That works, the funny thing I tried it, as I mentioned in my original post and you quoted it. But forgot to change the id of the item to be "window", and got really frustrated.
  • QQuickView change controls palette

    4
    0 Votes
    4 Posts
    1k Views
    p3c0P
    I tried the following which works @ QPalette customPalette(app.palette()); customPalette.setColor(QPalette::ButtonText, QColor("red")); customPalette.setColor(QPalette::WindowText,QColor("yellow")); app.setPalette(customPalette); @ and QML @ Button { text: "Qt" } Label { text: "Hello world" } @ Here the color of the text changes as per the palette but neither QPalette::Window/QPalette::Background/QPalette::Base/QPalette::Button worked for background of button for eg.
  • OpenGL and QML overlapping

    5
    0 Votes
    5 Posts
    2k Views
    M
    Sometimes a good RTFM is the right hint :P Thanks, it should work now!
  • Flow + Repeater + Image = performance issue

    6
    0 Votes
    6 Posts
    1k Views
    M
    any else ideas?
  • QML debugging is enabled. Only use this in a safe environment ERROR

    3
    0 Votes
    3 Posts
    8k Views
    SGaistS
    Hi, AFAIK this is not an error, just a warning. And the build output looks just fine. What doesn't work ?
  • Designer Error: qmlpuppet cannot be built

    7
    0 Votes
    7 Posts
    2k Views
    P
    Yea I might just reinstall the whole OS, it's running pretty shit anyway.
  • How to load a component from qml file in loader

    4
    0 Votes
    4 Posts
    1k Views
    p3c0P
    Try removing the Component from a.qml. Just keep the Rectangle.
  • Detect if two items overlap

    4
    0 Votes
    4 Posts
    3k Views
    p3c0P
    In case of collision detection, "this":http://developer.nokia.com/community/wiki/Collision_Detection_In_QtQuick would also be a good start.
  • Send QVariantList and QVariantMap to JavaScript Array and Object

    19
    0 Votes
    19 Posts
    11k Views
    p3c0P
    Good... Happy Coding :)