跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Access variables declare in qml function

    3
    0 評價
    3 貼文
    1k 瀏覽
    V
    I think you should return variable instead of accessing the variable inside the function.
  • Bug: TableView doesn't set key.accepted on Key_Up or Key_Down

    3
    0 評價
    3 貼文
    912 瀏覽
    C
    Yes, I'm using 5.3.1, apparently I was looking at the wrong source code. However, the correct code you linked to is problematic - the documentation for KeyEvent says "Generally, if the item acts on the key event then it should be accepted so that ancestor items do not also respond to the same event" which definitely applies in this case. So either the author of this code made a mistake (in which case they should fix it) or they have something very clever in mind where they deliberately went against the documentation (in which case they need to add a comment and also explain in the documentation what is happening. You have an interesting suggestion - that maybe this was done deliberately so that users could also implement Keys.onUpPressed and perform some actions, but the actions I perform will be different depending on whether TableView has already acted on the keypress or not - and the only way to find that out is by TableView.onUpPressed setting event.accepted to true ...
  • Show animated progress inidicator while doing time consuming c++ stuff.

    4
    0 評價
    4 貼文
    1k 瀏覽
    dheerendraD
    I know you told about not starting the thread. But starting the thread is elegant way it avoids lot of stuff. I have tried earlier and move to thread finally.
  • [SOLVED] Problem with anchors within tabs

    3
    0 評價
    3 貼文
    748 瀏覽
    J
    Thanks! Works like a charm!
  • [solved] TextFieldStyle: Height of Rectangle does not correspond font size...

    7
    0 評價
    7 貼文
    2k 瀏覽
    D
    I've downloaded Qt 5.3.2, now the problem is gone!
  • Application Window is empty - Windows 8 - Default project

    4
    0 評價
    4 貼文
    1k 瀏覽
    IamSumitI
    That's g8.. please modify thread title as (SOLVED) . Thanks..
  • Qml works fine on dev machine, crashes on others.

    5
    0 評價
    5 貼文
    1k 瀏覽
    dheerendraD
    You may be missing some plugins and qml directory. @1. Please go to your installation take plugins like platform etc. 2. Go to qml directory and get some directories like QtQml, QtQuick.2 etc. @ These need to be there in the directory where you are placing your executable. This should fix your issue.
  • Dynamic text using QString::arg() in QML

    9
    0 評價
    9 貼文
    21k 瀏覽
    S
    Appears that the .arg function does not allow you to set a fieldWidth from QML.
  • Are Qt Quick Enterprise Controls only available under Commercial License?

    3
    0 評價
    3 貼文
    1k 瀏覽
    D
    Thank You Jens.
  • Touch and text selection problem

    1
    0 評價
    1 貼文
    524 瀏覽
    尚無回覆
  • High level object VS Scene graph rendering

    1
    0 評價
    1 貼文
    615 瀏覽
    尚無回覆
  • Slider value can't be set to its maximumValue

    3
    0 評價
    3 貼文
    770 瀏覽
    S
    Ok guess i have to wait for the bugfix.
  • [SOLVED]How to add separator in row

    9
    0 評價
    9 貼文
    12k 瀏覽
    A
    SOLVED SOLVED SOLVED. Thank you Dheerendra :-)
  • Properly destroying qml objects

    1
    0 評價
    1 貼文
    687 瀏覽
    尚無回覆
  • How to append function object to an ListElement and callback when the element clicked

    12
    0 評價
    12 貼文
    7k 瀏覽
    S
    Thank you dasRicardo! but still has errors. 'qrc:///func.js:4: TypeError: Property 'call' of object [object Object] is not a function' Now I used switch case to call different functions. In @signal clicked onClicked: { onElementClicked(callback_key) }@ always call the same interface. onElementClicked is defined at where I using the list view. I just confused why some type like 'string' or 'int' can keep its real type after listview.append, but funtion type can not.
  • QML ListView scrolling and full screen

    8
    0 評價
    8 貼文
    3k 瀏覽
    C
    I have found something that may help: http://qt-project.org/doc/qt-4.8/declarative-modelviews-package.html actually I must display the same list model in different views... yes I would appreciate preparing something! Thanks in advance!
  • Can I specify the ListView's delegate text from outside the ListView?

    2
    0 評價
    2 貼文
    655 瀏覽
    dheerendraD
    You can try something like this. It may help you. @Rectangle { width: 200;height: 500;color :"red" property variant role1; property variant role2; Component{ id : del Item { height: 50;width: 200 Row { Text { text : role1} Text { text : role2} } } } ListView { id : view anchors.fill: parent model : MyModel {id :mymodel } delegate: del } Timer { id : tim interval: 5000 running: true repeat: true property int count : 10 onTriggered: { role1 = "cost1"; role2 = "name1"; mymodel.append({role1: count, role2:"Pizza"}) count++; } } } ====MyModel.qml=== ListModel { id :mod dynamicRoles: true } @
  • Showing Qml Message Diaglog while closing qml application (solved)

    3
    1 評價
    3 貼文
    2k 瀏覽
    T
    Hi p3c0, I forgot this. Thanks to your guide, I can do it.
  • Project ERROR: Unknown module(s) in QT: quick

    25
    0 評價
    25 貼文
    35k 瀏覽
    SGaistS
    Hi and welcome to devnet, Did you cross-compiled/installed all related modules ?
  • Styling/theming QML in a CSS-like way

    2
    0 評價
    2 貼文
    2k 瀏覽
    SGaistS
    Hi and welcome to devnet, Interesting question and proposition, however, I would recommend to post them on the interest mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented