Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Changing the Audio Output Device?

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    kenneth.fernandezK
    @respect88 said in Changing the Audio Output Device?: (https://doc.qt.io/qt-5/qml-qtmultimedia-audio.html) Hi @respect88, You must make those changes directly in Python, because the QML element does not have such feature. On the other side of the coin, QML has the ability to use JavaScript functions, you could force it, but still that is not a good practice, it is better to do things in the way they were designed and respecting the main objective of each layer. So, Python is the place, as it is more natural to make a class in the lower layers to talk with the devices controllers/drives/API. Here are some references: C++ https://doc.qt.io/qt-5/qtmultimedia-multimedia-audiooutput-example.html https://doc.qt.io/qt-5/qaudiooutput.html Python https://doc.qt.io/archives/qtforpython-5.12/PySide2/QtMultimedia/QAudioOutput.html https://doc-snapshots.qt.io/qtforpython-5.15/overviews/qtmultimedia-multimedia-audiooutput-example.html I hope this would be useful,
  • Layout and wrapping problems with a rotated SpinBox

    Unsolved
    1
    0 Votes
    1 Posts
    191 Views
    No one has replied
  • Dealing with dynamic content in ScrollView

    Unsolved
    2
    0 Votes
    2 Posts
    547 Views
    GabrielRRG
    Hello, you can always set a property in the parent object and bind it directly like: property1 = parent.propertyName property2 = child.propertyName
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    103 Views
    No one has replied
  • QML memory increase continuously

    Unsolved
    2
    1 Votes
    2 Posts
    771 Views
    F
    @FeelFree said in QML memory increase continuously: ory is in two parts: C++/Js Engine. the gc() function only releas PS: the context is stored in QQmlData with property "context", but not released in void QQmlData::destroyed(QObject *object), also not released QQmlData::~QQmlData.
  • QML start external program: use QProcess fail build

    Solved qml qprocess build failed
    4
    0 Votes
    4 Posts
    2k Views
    W
    @J-Hilk Thanks for your help! It works!
  • Abnormal Outline Style results.

    Unsolved
    3
    0 Votes
    3 Posts
    340 Views
    No one has replied
  • sky layer cant add to MapBoxGl - QT5.12.4

    Unsolved
    2
    0 Votes
    2 Posts
    384 Views
    M
    any answer?
  • QT Quick 6.0.2 emulation layer crashe

    Unsolved
    1
    1 Votes
    1 Posts
    129 Views
    No one has replied
  • using scaling within ColumnLayouts

    Solved
    2
    0 Votes
    2 Posts
    211 Views
    mzimmersM
    I've worked around this issue with this hack: Rectangle { property var scaleFactor: 1.5 id: rack height: 197 * scaleFactor width: 495 * scaleFactor Bottle { id: bottle1 cellX: 25 cellY: 105 cellHeight: 75 cellWidth: 75 bottleScaleFactor: scaleFactor } The Bottle.qml does the same thing with its factor as does the rack. This fixes the problem, but I'd still be interested in hearing about more elegant solutions.
  • access to swipeview children from outside of it

    Unsolved qml swipeview rectangle
    2
    0 Votes
    2 Posts
    470 Views
    dheerendraD
    Modify the Repeater as Repeater{ id : rep1 Page { property alias myrect : pgrect Access each element inside the repeater using rep1.itemAt(index).
  • Compile error when using Q_GADGET macro

    Solved
    5
    0 Votes
    5 Posts
    1k Views
    V
    @sierdzio , Thanks for your clear explanation with code snippet. I got the point.
  • GUI Hang while playing audio in Infinite loop

    Unsolved
    8
    1 Votes
    8 Posts
    1k Views
    fcarneyF
    @SKWH Try a different machine with a different driver. Perhaps update the system driver for the audio. Make sure you are not fighting a system problem.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • What's wrong with alignment?

    Solved
    11
    0 Votes
    11 Posts
    2k Views
    raven-worxR
    @r3d9u11 and when you bind the row layout's width to the parent width? RowLayout { width: parent.width ... } So, all Controls on the right side will disappear (because their positions are out of application's width). I don't know why, looks like another bug. Not a bug, the minimumWidth will rise, but never shrink.
  • Nested Repeaters with Loader

    Solved
    5
    1 Votes
    5 Posts
    2k Views
    K
    @sierdzio Thanks!
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Initialize TextField placeholderText with value received from a signal

    Solved
    2
    0 Votes
    2 Posts
    215 Views
    E
    Apparently just a placeholderText: configwatch.patientID Works fine ! Sorry about that, I thought that I had already tried this...
  • View map in in Qt Designer, for Qt mapviewer example

    Unsolved
    1
    0 Votes
    1 Posts
    180 Views
    No one has replied
  • QML trembling delegate in ListView when scrolling

    Unsolved
    1
    0 Votes
    1 Posts
    400 Views
    No one has replied