Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • Positioning an item into a Flickable

    9
    0 Votes
    9 Posts
    3k Views
    V
    You are right. It works with a local file. I had an another exemple where a local file failed too, but I don't remember the code. I will ask on the mailint list. Thank you very much.
  • 0 Votes
    2 Posts
    936 Views
    p3c0P
    Hi @DBoosalis If serverListModel is a C++ model better to do it on model side. You can write a Q_INVOKABLE function in model to grab the data and call it from QML. If it is a ListModel you can iterate the model and use get to fetch data. Eg: tableView.model.get(0).title
  • How to use DoubleValidator and disable groupSeparator

    1
    0 Votes
    1 Posts
    422 Views
    No one has replied
  • How to create PathView dynamically

    2
    0 Votes
    2 Posts
    904 Views
    p3c0P
    @rahul3349 I guess just like you added appended name you should append source path of image there itself. Item{ id: wrapper anchors.horizontalCenter: nameText.horizontalCenter WindowImage { source: strpath } // defined in another qml file } ... var windowContainer = windowImageComponent.createObject(root); //windowContainer.imgsrc = "images/green.jpg" appModel.append(windowContainer) appModel.append({name: "green", strpath: "images/green.jpg"})
  • 0 Votes
    1 Posts
    888 Views
    No one has replied
  • Unload qml file from QQuickView

    2
    0 Votes
    2 Posts
    926 Views
    M
    Hi, could you try to load/unload using Loader. You could find some information here
  • A semi-transparent Rectangle that also blurs

    7
    1 Votes
    7 Posts
    10k Views
    I
    Is this what you want? http://pastebin.com/VgTuzSY6 it looks like this [image: xKG8Gwp.png] The project with images: http://dropcanvas.com/r1r73
  • Problem with LocalStorage

    localstorage beginner database
    1
    0 Votes
    1 Posts
    766 Views
    No one has replied
  • This topic is deleted!

    Locked
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • WebView shows checker pattern while HTML is loading

    2
    0 Votes
    2 Posts
    2k Views
    C
    @mbarclaygmail.com anyone with a workaround?
  • Font rendering bug on some Android devices!?

    16
    0 Votes
    16 Posts
    12k Views
    M
    5.4.1 i use textEdit for create my own textField and it work! thanks...
  • declare property of non-createble C++ type

    2
    0 Votes
    2 Posts
    608 Views
    R
    Duplicate. As I can see here https://forum.qt.io/topic/25200/using-non-creatable-type-in-qml it isn't possible. But I don't understand why the way qml initialize objects makes this thing impossible.
  • [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.