Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.4k Posts
  • showing slider in ComboBox using QML

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    GrecKoG
    You can use the fact that the popup's contentItem of the ComboBox is a ListView and use ScrollBar vertical attached property: Binding { target: comboBox.popup.contentItem.ScrollBar property: "vertical" value: ScrollBar { policy: ScrollBar.AlwaysOn } }
  • 0 Votes
    1 Posts
    456 Views
    No one has replied
  • How to create QVideoFrame from AVFrame from FFmpeg in QT6?

    Unsolved
    3
    0 Votes
    3 Posts
    545 Views
    I
    Thanks, I will try it.
  • How To Play RTP-VideoStreams with QML2 VideoOutput?

    5
    0 Votes
    5 Posts
    7k Views
    M
    on Linux (GStreamer backend) , usually udp should be used to playback the stream
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    46 Views
    No one has replied
  • ListView loaded by Loader directly causes sections to not update when model changed

    Solved
    2
    0 Votes
    2 Posts
    218 Views
    fcarneyF
    https://bugreports.qt.io/browse/QTBUG-103367
  • MediaPlayer starts playback with wrong volume

    Unsolved
    1
    0 Votes
    1 Posts
    186 Views
    No one has replied
  • Import causes QML Item to not load

    Unsolved
    2
    0 Votes
    2 Posts
    312 Views
    GrecKoG
    Try running your application with the QML_IMPORT_TRACE set to 1 and look at the messages in the console.
  • Two cursors occurs, with qt5.15.2 eglfs

    Unsolved
    4
    0 Votes
    4 Posts
    390 Views
    SGaistS
    That's normal. You had two applications fighting for the same resources (your application and the X server).
  • How do I find out values for QML enumerations in docs?

    Unsolved
    2
    0 Votes
    2 Posts
    152 Views
    L
    They should refer to the Qt AlignmentFlag enum. Therefore, you should be able to do something like this: Q_PROPERTY(int hAlign READ getHorizontalAlignment NOTIFY objectChanged) Q_PROPERTY(int vAlign READ getVerticalAlignment NOTIFY objectChanged) int MyClass::getHorizontalAlignment() { return Qt::AlignHCenter; } int MyClass::getVerticalAlignment() { return Qt::AlignBottom; } TextEdit { anchors.fill: parent text: "Hello World" horizontalAlignment: MyContextPropertyOrModel.hAlign verticalAlignment: MyContextPropertyOrModel.vAlign }
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • how to call windows 10 calculator in qml?

    Unsolved
    3
    0 Votes
    3 Posts
    244 Views
    P
    I got it, thanks
  • Whats up with shadowing in qt 6?

    Unsolved
    1
    0 Votes
    1 Posts
    148 Views
    No one has replied
  • How to scale an item in a specific area?

    Unsolved
    1
    0 Votes
    1 Posts
    187 Views
    No one has replied
  • 0 Votes
    2 Posts
    151 Views
    M
    Ok I think i have got it. The following did the trick. I added anchors.fill in Sandbox.qml root item. I removed the code for view3d render mode setting from the main.qml into the sandbox.qml file so the Component.onCompleted just does this Component.onCompleted: { dynamicallyCreatedItem = Qt.createComponent('qrc:/Sandbox.qml').createObject(window, {value1: 0.5, value2:0.5, value3:0.5, value4:0.5, value5:0.5, value6:0.5, isEnabled1: false, isEnabled2: false, isEnabled3: false}) toptitle.text = dynamicallyCreatedItem.sessionText } Doing this works fine and I get the two viewports as in original code. The issue is solved. The github repo contains the correct code for anyone who is stuck.
  • QML ChartView absolute scroll value (and zoomIn)

    Solved
    2
    0 Votes
    2 Posts
    553 Views
    D
    It turns out that zoomReset() resets the scroll as well, so all the scrolling made while zommed in is reverted: (from the Docs) Note: This will also reset scrolling and explicit axis range settings specified between the first zoom operation and calling this method. If no zoom operation has been performed, this method does nothing.
  • onStatusChanged not getting called always

    Unsolved qml loader onstatuschanged
    1
    0 Votes
    1 Posts
    391 Views
    No one has replied
  • Swiping in TableView in qml

    Unsolved
    1
    0 Votes
    1 Posts
    141 Views
    No one has replied
  • How to disable/Stop default console logs from AudioEngine QML type

    Unsolved
    1
    0 Votes
    1 Posts
    179 Views
    No one has replied
  • Mousearea drag lag

    7
    0 Votes
    7 Posts
    2k Views
    MarkkyboyM
    Loving the attitudes here.......waiting for someone else to provide a fix, yet not one of you have bothered posting a code snippet for 'us' to look at or play with. Help us help you, the more info you give, the better the help is likely to be and if dragthreshold doesn't work, why are only 5 people complaining about it?, I suggest your code is mising something.