Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • Generalizing Animation Setup in QML

    Solved animations qml qml
    8
    1 Votes
    8 Posts
    1k Views
    V
    @afalsa said in Generalizing Animation Setup in QML: PropertyChanges { passwordRequeriment1.opacity: 0 passwordRequeriment2.opacity: 0 passwordRequeriment3.opacity: 0 } Thanks ! Work excellent!
  • Refactoring option is greyed out (unselectable)

    Solved
    2
    0 Votes
    2 Posts
    448 Views
    V
    I had a similar situation, I needed to create a new component 'button_Color' and move it to a new file 'button_Color.qml', I selected a block of code to transfer, pressed the right mouse button, but the item option 'refactoring' of the menuwas unavailable(gray), It was solved by accident, I move the mouse cursor to the beginning of code block 'button_Color' , Item {}, on the word 'Item', and press right button on mouse and get the menu with available item option of menu 'refactoring'
  • onDropped not being triggered in QML

    Unsolved
    1
    0 Votes
    1 Posts
    270 Views
    No one has replied
  • access to qquickframebufferobject renderer instance

    Solved qquickframebuf opengl qquickitem
    3
    0 Votes
    3 Posts
    754 Views
    W
    @MintogoDeveloper Hi, i am also following the blog post and trying to do the example he provided. But it seems i can't render anything out. Do you have some snippets of your code that can render something? Such that i can use it as reference
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    29 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • how to hide command window while opening exe

    Solved
    7
    0 Votes
    7 Posts
    733 Views
    F
    @jsulm It was solved. Thank you very much.
  • 0 Votes
    2 Posts
    557 Views
    J
    @Jenny-R I solved the problem by using this solution: https://stackoverflow.com/questions/58874314/animating-bearing-property-change-with-qml-map. Some additions and clarifications: I placed the RotationAnimation component on the same level as the MapView and placed the property "myBearing" and "onMyBearingChanged" inside the MapView component. The animation is then called from whereever the change should be triggered. I.e., a separate property (myBearing) is animated and every time the property is changed, setBearing() is called. alignCoordinateToPoint is handled in a similar way. Code example: MapView { id: mapView property real myBearing property geoCoordinate myCenter anchors.fill: parent z: 0 map { plugin: mapPlugin zoomLevel: 14 center: QtPositioning.coordinate(51.507622, -0.127855) } onMyBearingChanged: { mapView.map.setBearing(myBearing, predefinedAlignmentPoint) } onMyCenterChanged: { mapView.map.alignCoordinateToPoint(myCenter, predefinedAlignmentPoint) } } RotationAnimation { id: bearingAnimation target: mapView property: "myBearing" direction: RotationAnimation.Shortest duration: 1000 function startBearingAnimation(to) { bearingAnimation.stop() bearingAnimation.from = mapView.map.bearing bearingAnimation.to = to if (bearingAnimation.from !== bearingAnimation.to) { bearingAnimation.start() } } } CoordinateAnimation{ id: centerAnimation target: mapView property: "myCenter" to: QtPositioning.coordinate(newLatitude, newLongitude) duration: 1000 }
  • ListView delegated Component{} sees outside only sometimes?

    Solved
    2
    0 Votes
    2 Posts
    209 Views
    S
    If anyone interested in the future, bug reported: https://bugreports.qt.io/browse/QTBUG-123573
  • App stays on white screen after being reopened

    Unsolved
    7
    0 Votes
    7 Posts
    546 Views
    T
    @Ivelin It is really difficult to understand what you are trying to achieve. Are you trying to trigger the re-authentication like this? If so, what about this approach? Foo.qml import QtQuick import QtQuick.Controls.Material ApplicationWindow { id: root width: 640 height: 640 visible: true Material.theme: Material.Dark Loader { id: loader } function authenticate() { loader.sourceComponent = null loader.sourceComponent = barComponent } Component.onCompleted: root.authenticate() Item { anchors.centerIn: parent Label { id: label text: "Let's try this" anchors.centerIn: parent } } Component { id: barComponent Bar { onSucceeded: message => { label.text = "Succeeded " + message } onFailed: message => { label.text = "I'll try again because " + message root.authenticate() } } } } Bar.qml import QtQuick.Controls.Material import QtQuick.Layouts ApplicationWindow { id: root width: 320 height: 320 visible: true Material.theme: Material.Light signal succeeded(message: string) signal failed(message: string) RowLayout { Button { text: 'success' onClicked: { root.succeeded('yay!!') root.close() } } Button { text: 'failure' onClicked: { root.failed('I failed') root.close() } } } }
  • QML measurement unit symbols

    Unsolved
    4
    0 Votes
    4 Posts
    350 Views
    K
    @ShaunaB1 I also thinking about using that way. (problem this way not simple for internalization)
  • how to automatically update a property?

    Solved
    8
    0 Votes
    8 Posts
    752 Views
    mzimmersM
    Thanks for all the suggestions, everyone. I decided that emitting the signal directly was the most straightforward way to go. I didn't realize that any of those possibilities even existed...I guess I haven't found the documentation that explains this.
  • How to show Dialog window from QML plugin

    Unsolved
    1
    0 Votes
    1 Posts
    177 Views
    No one has replied
  • ToolButton with dropdown/pulldown menu?

    Unsolved qml quick controls qt quick
    1
    0 Votes
    1 Posts
    347 Views
    No one has replied
  • Synchronizing Real-Time Clock (RTC) with Local Time:

    Unsolved
    4
    0 Votes
    4 Posts
    435 Views
    SGaistS
    @Sachin-Gaikwad how are you using it ?
  • Proper QML Dialog integration with QtWidget QMainWindow

    Unsolved
    1
    0 Votes
    1 Posts
    149 Views
    No one has replied
  • ListView Delegate and databing on model deletion

    Unsolved
    1
    0 Votes
    1 Posts
    138 Views
    No one has replied
  • 0 Votes
    5 Posts
    1k Views
    I
    @Kuldip-Somwanshi have you ever solved this? I couldn't find a solution anywhere
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()

    Solved
    7
    0 Votes
    7 Posts
    14k Views
    T
    @saeidparand thanks thanks thanks you so much