Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • GridLayout items vertically centered

    Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    oria66O
    @ocgltd Hi. Can you provide some code or image to understand better your situation?
  • now they want a pattern...

    Solved
    16
    0 Votes
    16 Posts
    2k Views
    oria66O
    @mzimmers glad to help.
  • No Background Color in QML Material Application

    Unsolved
    1
    0 Votes
    1 Posts
    748 Views
    No one has replied
  • Connection to enterprise network access point from qt

    Unsolved
    2
    0 Votes
    2 Posts
    225 Views
    raven-worxR
    @manny_lp that is nothing that is handled by Qt, but rather by your operating system
  • Can C++ signal be called from QML

    Solved
    4
    0 Votes
    4 Posts
    377 Views
    KroMignonK
    @Vinoth-Rajendran4 said in Can C++ signal be called from QML: Can you please direct me to the documentation link if any available ? Take a look at this: https://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html#exposing-signals Any public signal of a QObject-derived type is accessible from QML code. The QML engine automatically creates a signal handler for any signal of a QObject-derived type that is used from QML. Signal handlers are always named on<Signal> where <Signal> is the name of the signal, with the first letter capitalized. All parameters passed by the signal are available in the signal handler through the parameter names.
  • Steer flow of displayed pages on external data triggers

    Unsolved
    1
    0 Votes
    1 Posts
    145 Views
    No one has replied
  • Semicolons in QML

    Solved
    3
    0 Votes
    3 Posts
    995 Views
    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 Votes
    1 Posts
    282 Views
    No one has replied
  • App falling back to software renderer

    Unsolved
    3
    0 Votes
    3 Posts
    340 Views
    jeremy_kJ
    The qtdiag diagnostic program might be helpful.
  • 0 Votes
    1 Posts
    128 Views
    No one has replied
  • ListView really slow scrolling

    Solved
    6
    0 Votes
    6 Posts
    3k Views
    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 Votes
    1 Posts
    167 Views
    No one has replied
  • Need Advice using QML DataVisualisation or QML QpaintedItem ? .. or not QML ...

    Unsolved
    3
    0 Votes
    3 Posts
    303 Views
    L
    Thanks, i will check.
  • Vulkan with Qt Quick

    Unsolved
    1
    0 Votes
    1 Posts
    260 Views
    No one has replied
  • Action-s in separete file

    Moved Unsolved
    2
    0 Votes
    2 Posts
    220 Views
    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 Votes
    1 Posts
    310 Views
    No one has replied
  • About QSGGeometryNode and WebAssembly in QT

    Solved
    2
    0 Votes
    2 Posts
    235 Views
    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 Votes
    1 Posts
    155 Views
    No one has replied
  • Dialog opening few times

    Solved
    3
    0 Votes
    3 Posts
    222 Views
    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 Votes
    2 Posts
    657 Views
    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.