Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.5k Posts
  • FileDialog filemode not working

    Solved
    2
    0 Votes
    2 Posts
    330 Views
    V
    we have to define only one import statement for dialog component at a time. For my work, Qt.labs.platform 1.1 works fine so I discarded the other one. Like this,I have commented out the Dialogs component import QtQuick 2.15 import Qt.labs.platform 1.1 import QtQuick.Controls 2.15 import QtGraphicalEffects 1.15 import QtQuick.Layouts 1.15 //import QtQuick.Dialogs 1.3
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • QT PositionSource / MagicLane slow

    Unsolved
    2
    0 Votes
    2 Posts
    213 Views
    W
    @WilliamH07 I just tried to open the app, and it's nearly instantaneous, and it immediately locates itself upon opening. However, 5 seconds later, after closing and reopening the app, it takes 7 to 8 minutes.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    4 Views
    No one has replied
  • How to make a quick module as a shared library(.so or dll)that contains all things?

    Unsolved
    2
    0 Votes
    2 Posts
    190 Views
    No one has replied
  • How to create a quick plugin with a dot "." in the "URI"

    Solved
    3
    0 Votes
    3 Posts
    259 Views
    S
    @Anumas Thanks, I find out the really problem I got before, URI will composed with QT_QML_OUTPUT_DIRECTORY and the OUPUT_DIRECTORY parameter of qt_add_qml_module() to making some directories or target filename while building, and that cause conflicts
  • 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
    419 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
    266 Views
    No one has replied
  • access to qquickframebufferobject renderer instance

    Solved qquickframebuf opengl qquickitem
    3
    0 Votes
    3 Posts
    739 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
    720 Views
    F
    @jsulm It was solved. Thank you very much.
  • 0 Votes
    2 Posts
    544 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
    197 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
    538 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
    342 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
    742 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
    170 Views
    No one has replied
  • ToolButton with dropdown/pulldown menu?

    Unsolved qml quick controls qt quick
    1
    0 Votes
    1 Posts
    328 Views
    No one has replied