跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Some confusion on Animator VS. Animation

    2
    1 評價
    2 貼文
    1k 瀏覽
    jiancaiyangJ
    From aknight's opinion: i would say the docs are pretty comprehensive. if you want more, check the source. animators only adjust values that are fed into shaders, and they don't sync their state with the gui thread while running use an animator where you can 2) use it when you don't need to read the values it is animating 3) use it when you know the gui thread might be blocked while it's animating
  • Fixing the size of a StatusBar

    visibility status bar rowlayout
    2
    0 評價
    2 貼文
    2k 瀏覽
    T
    In case anyone else has this problem, adding this to the RowLayout does the trick: Rectangle { height: rowLayout.childrenRect.height } The Rectangle by default has 0 width, and the RowLayout's childrenRect.height property has the value we're after, i.e. the maximum height of its children, visible or not. Bit of a hack, obviously.
  • Problem with WorkerScript and list model of a ListView

    1
    0 評價
    1 貼文
    577 瀏覽
    尚無回覆
  • OES_texture_float extension in QtCanvas3D

    oestexturefloat qtcanvas3d webview webgl
    3
    0 評價
    3 貼文
    2k 瀏覽
    W
    Hey, thanks for the info, I'll try that.
  • Combobox and Menu doesn't work in Full Screen QML

    8
    0 評價
    8 貼文
    3k 瀏覽
    p3c0P
    @EmulationQt Well then you should update that bug report or add a new bug with these details and a small example.
  • [SOLVED] Define states into separate QML file

    2
    0 評價
    2 貼文
    542 瀏覽
    F
    Meanwhile I found a solution by myself as follows: main.qml States { id: states } states: states.myStates States.qml Item { property list<State> myStates: [ State {}, State {}, State {} } } Is this already the best way to achieve what I want or are there any better solutions? Thanks and best regards, Markus
  • Import JavaScript library into "WorkerScript"

    4
    0 評價
    4 貼文
    1k 瀏覽
    p3c0P
    @sk2212 But it seems that another new instance of this library is created although the first line in "test.js" is ".pragma library". Therefore I cannot use this approach for saving a global setting. Yes it ignores pragmas and imports. See including-a-javascript-resource-from-another-javascript-resource for more info. import will only work in QML so you can go with your solution.
  • Experiences setting up & using QtQuick for Android & Desktop VMs

    qtquick virtual
    1
    0 評價
    1 貼文
    403 瀏覽
    尚無回覆
  • Why do some apps run properly w/wo visible property?

    2
    0 評價
    2 貼文
    489 瀏覽
    p3c0P
    @sosun Which are the components which you think run with or without visible: true ? If it is Window then it has to be set true explicitly.
  • (Sloved) Change tab title in TabView

    3
    0 評價
    3 貼文
    2k 瀏覽
    ?
    @p3c0 said: @EmulationQt Use getTab to get tab at particular index and then access its title mytab.getTab(0).title = "New tab Title" Thank you @p3c0 :-)
  • [SOLVED]Qml changes in version 5.5

    4
    0 評價
    4 貼文
    1k 瀏覽
    p3c0P
    @ealione I noticed that some things have changed for Qt Quick on version 5.5, like not having the option to create a purely qml project. It is still there. You have to enable it in Qt Creator. Go to Help > About Plugins > Qt Quick > QmlProjectManager > check it
  • Build the dependent statically link libs & set its order

    static library solution explor
    3
    0 評價
    3 貼文
    1k 瀏覽
    SGaistS
    Hi, To add to @koahnig , this article explains very well how to setup dependencies efficiently
  • How to apply frost-Effect (blur and transparency) to parent?

    1
    0 評價
    1 貼文
    899 瀏覽
    尚無回覆
  • Interacting with QML Objects from C++

    qml qt signal p
    22
    0 評價
    22 貼文
    7k 瀏覽
    K
    @p3c0 That is exactly what I need. Thank you :)
  • Creating "matrix-look-like" graphics

    1
    0 評價
    1 貼文
    395 瀏覽
    尚無回覆
  • QGraphicsProxyWidget equivalent for QtWebEngine

    qtwebengine
    1
    0 評價
    1 貼文
    669 瀏覽
    尚無回覆
  • Qt Quick GridLayout how to set item to column and row like qt widgets?

    2
    0 評價
    2 貼文
    777 瀏覽
    p3c0P
    @glararan IMO it would be better to use a ListView with a custom delegate consisting of those items i.e Image on left side with Text items anchored to its right.
  • 0 評價
    1 貼文
    1k 瀏覽
    尚無回覆
  • QQuickItem breaks batching

    3
    0 評價
    3 貼文
    838 瀏覽
    Z
    Thanks for the reply. Is there a way I can set the background of the QQuickItem to a fully opaque colour? I'd like to try it to see if it helps at all. I tried wrapping it inside an opaque Rectangle but that didn't work. At the moment the QQuickItem itself basically draws a grid on top of the parent item, but it doesn't fill its own background in.
  • Restore anchors.verticalCenter

    6
    0 評價
    6 貼文
    5k 瀏覽
    F
    Awesome. Thanks for the hint!