跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Semicolons in QML

    Solved
    3
    0 評價
    3 貼文
    1k 瀏覽
    JKSHJ
    @Circuits said in Semicolons in QML: is there a valid argument for the first case over the second in QML? Note: The code to the right-hand-side of : is a JavaScript statement. So, you follow the JavaScript rules of braces and semicolons. The following snippets are all exactly the same. Like @KroMignon said, just choose the one you prefer. // Style 1 Component.onCompleted: { state = "selection"; } // Style 2 Component.onCompleted: { state = "selection" } // Style 3 Component.onCompleted: { state = "selection"; } // Style 4 Component.onCompleted: { state = "selection" } // Style 5 Component.onCompleted: state = "selection"; // Style 6 Component.onCompleted: state = "selection"
  • Opencv video window to qml window

    Unsolved
    1
    0 評價
    1 貼文
    292 瀏覽
    尚無回覆
  • App falling back to software renderer

    Unsolved
    3
    0 評價
    3 貼文
    375 瀏覽
    jeremy_kJ
    The qtdiag diagnostic program might be helpful.
  • This is precisely my current question. I'm rather disappointed to see that you got no responses.

    Unsolved
    1
    0 評價
    1 貼文
    137 瀏覽
    尚無回覆
  • ListView really slow scrolling

    Solved
    6
    0 評價
    6 貼文
    3k 瀏覽
    V
    @jeremy_k said in ListView really slow scrolling: Have you tried ListView.highlightMoveDuration or highlightMoveVelocity? That did it, thanks!
  • QMl auto clearin data

    Unsolved
    1
    0 評價
    1 貼文
    177 瀏覽
    尚無回覆
  • Need Advice using QML DataVisualisation or QML QpaintedItem ? .. or not QML ...

    Unsolved
    3
    0 評價
    3 貼文
    321 瀏覽
    L
    Thanks, i will check.
  • Vulkan with Qt Quick

    Unsolved
    1
    0 評價
    1 貼文
    275 瀏覽
    尚無回覆
  • Action-s in separete file

    已移動 Unsolved
    2
    0 評價
    2 貼文
    233 瀏覽
    jeremy_kJ
    @qtprogrammer123 said in Action-s in separete file: Hi, I'm trying place actions is separete file Act.qml, after that i add Act{ id: actions} in main.qml, but they dont work. Hi, It's helpful to have a description of what not working means. A compiler or interpreter error message, a screen capture, or something to differentiate the expected from the actual outcome. Act.qml Item { ... Action { id: copy } } main.qml: Act { id: act } Menu { id: men MenuItem { text: "copy" id: menuItem action: act.copy } //rest of actions } I may be leaping to conclusions, but it looks like this is attempting to use an id from Act.qml in main.qml. That won't work. The id property of items should only used within the same file. The cleanest solution is to export each of the actions as a property of Act.qml. Eg Act.qml: Item { property Action copy: Action { text: qsTr("&Copy") } property Action paste: Action { text: qsTr("&Paste") } } main.qml: Window { Act { id: act } MenuItem { action: act.copy } } It's also possible to access children of a top level item via the children, data, or resources properties of an Item. Finding a particular instance using these tends to require more code and more effort to maintain. They are useful for handling all children.
  • QML how to save variable value while changing to anothe qml.

    Unsolved
    1
    1 評價
    1 貼文
    325 瀏覽
    尚無回覆
  • About QSGGeometryNode and WebAssembly in QT

    Solved
    2
    0 評價
    2 貼文
    253 瀏覽
    J
    I figure out the solution. First there is supposed to be three indices in my elements. The second argument of the function glDrawElements should be 3. Second there's a limitation in webgl that the type of element supposed to be GL_UNSIGNED_SHORT.
  • Does SequentialAnimation have a delay?

    Unsolved
    1
    0 評價
    1 貼文
    161 瀏覽
    尚無回覆
  • Dialog opening few times

    Solved
    3
    0 評價
    3 貼文
    253 瀏覽
    qtprogrammer123Q
    You right i have bug in push on StackView, and sometimes item not poped, soo then i back to that page, it push copy of page
  • Can't start script with root privileges

    Unsolved
    2
    0 評價
    2 貼文
    736 瀏覽
    SGaistS
    Hi and welcome to devnet, Which IDE are you using to develop your application ? What do you get if you do that from the command line ? Since it looks like it's related to scapy rather than Qt, you might want to contact their authors. Note: I forked your issue in its own thread because it was completely unrelated to the one you posted it on.
  • QML Image: Error decoding: data:image/jpeg;base64,

    Unsolved
    3
    0 評價
    3 貼文
    1k 瀏覽
    SGaistS
    Hi, Can you explain exactly what you did to deploy your application ? Does it run successfully on your machine outside of Qt Creator once you deployed it ?
  • SwipeView shows all pages and no swipe

    Unsolved
    1
    0 評價
    1 貼文
    191 瀏覽
    尚無回覆
  • How can I simply customise one aspect of a button?

    Solved
    3
    0 評價
    3 貼文
    283 瀏覽
    V
    That works, thanks!
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    11 瀏覽
    尚無回覆
  • Extend the JS console object. How?

    Unsolved
    1
    0 評價
    1 貼文
    128 瀏覽
    尚無回覆
  • Make JS-object available in any file without import. How?

    Unsolved
    1
    0 評價
    1 貼文
    150 瀏覽
    尚無回覆