跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.7k 貼文
  • Multiple QML files with main

    Unsolved
    2
    0 評價
    2 貼文
    695 瀏覽
    F
    Use StackView ,It will be helpful for screen navigation as well.
  • Toggle a crossfade between two (or more images)

    Solved
    3
    0 評價
    3 貼文
    589 瀏覽
    GrecKoG
    Shameless plug: I've implemented that with an easy to use API here : https://github.com/okcerg/quickbehaviors Here's how you can use it when changing a Image source : import QtQuick 2.15 import QtQuick.Window 2.0 Window { id: root visible: true width: 400 height: 400 property bool toggle: true Image { anchors.centerIn: parent source: root.toggle ? "http://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/60/google/56/white-smiling-face_263a.png" : "http://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/60/google/56/winking-face_1f609.png" opacity: 1 CrossFadeBehavior on source { fadeDuration: 2500 delayWhile: fadeTarget.status === Image.Loading } } Timer { interval: 3000 repeat: true running: true onTriggered: root.toggle = !root.toggle } } Here's a demo video for crossfading an Image https://i.imgur.com/vAvxWsV.gifv Rest of the demo : https://imgur.com/a/7DZOYv5
  • Drawer not rotating with the rest of the scene

    Unsolved
    6
    1 評價
    6 貼文
    1k 瀏覽
    K
    I'm facing the same issue, I have a user-specific browser and the address will appear on swipe from the top edge. But when I rotate the screen, the web engine rotates perfectly but the address bar sticks at the same position in 0 deg or landscape. How to rotate the drawer along with the other components. I'm using Qt 5.15 in which I have to play with QML, instead of windowing rotate of the whole system @dbrown: did you resolve this issue and how, please suggest. @raven-worx: app drawer positioning is also not working. Thanks in advance.
  • Modify Tiles on QML Map with OSM plugin.

    Unsolved
    1
    0 評價
    1 貼文
    320 瀏覽
    尚無回覆
  • How do you call a function in a loader

    Solved
    7
    0 評價
    7 貼文
    2k 瀏覽
    F
    @jeremy_k said in How do you call a function in a loader: thisComboBoxLoader.item That works, thanks, I did not know about the item property, good to know.
  • Display numeric keyboard in Windows Surface

    Unsolved
    1
    0 評價
    1 貼文
    186 瀏覽
    尚無回覆
  • SwipeView and TabBar currentIndex issue when dynamic object creation

    Solved
    3
    0 評價
    3 貼文
    643 瀏覽
    N
    Hi @ndias , Indeed, using count instead of currentIndex solved my issue. Thanks!
  • 0 評價
    1 貼文
    400 瀏覽
    尚無回覆
  • About the impact of changing from QGuiApplication to QApplication

    Solved qguiapplication qapplication qtcharts qtchart
    4
    0 評價
    4 貼文
    1k 瀏覽
    Y
    @J-Hilk Thank you for answering the question.
  • ComboBox textRole doesn't work on custom delegate

    Solved
    3
    0 評價
    3 貼文
    499 瀏覽
    A
    Thanks! that works perfectly
  • How to encapsulate the components in widgets for QML to use, should it be possible?

    Solved
    2
    0 評價
    2 貼文
    204 瀏覽
    SGaistS
    Hi, Please put your question in the thread body and use a meaningful title. That said, originally no it's not. Now KDAB has created the DeclarativeWidgets project that could interest you.
  • CONFIG += qtquickcompiler doesn't seem to work

    Unsolved qml precompile qtquickcompiler qt5.9
    5
    0 評價
    5 貼文
    6k 瀏覽
    P
    Release builds using the QtQuick compiler generate a qtquickcompiler_loader.cpp file and *_qml.cpp files where * matches the name of your individual *.qml files all within a ".qtquickcompiler" folder within the "build-*-Release" output folder. I verified this with a commercial license Qt 5.9. Debugging QML is not compatible with the QtQuick compiler; using default settings to build a Debug executable will not use the QtQuick compiler.
  • 0 評價
    1 貼文
    244 瀏覽
    尚無回覆
  • How to play a .wav file in QT6?

    Unsolved
    9
    0 評價
    9 貼文
    2k 瀏覽
    ndiasN
    Hi @SGaist I am using Windows platform. For Qt5, I tested it with: Qt5.15.2 MinGW 32-bit Pyside 2 For Qt6, I used: qmlscene.exe (6.2.0 MinGW 64-bit) --- Not tested with Qt6.2 MinGW because "QtMultimedia is not currently supported on this platform or compiler" Pyside 6.2
  • qt upgrade to 5.14 version, issue still exist!

    Unsolved
    2
    0 評價
    2 貼文
    251 瀏覽
    jsulmJ
    @jylshm You should mention that in your original post instead of openning a new (redundant) one!
  • app crash when using combobox model,QT5.12

    Unsolved
    1
    0 評價
    1 貼文
    229 瀏覽
    尚無回覆
  • Visual Scripting for Qt apps

    2
    1 評價
    2 貼文
    571 瀏覽
    S
    I'm making an indie game with Qt. I'm looking for a Visual Scripting Editor for Qt that I can use like Blueprint in UE4. It's very good from what I've seen in your videos. How is the progress here?
  • 0 評價
    1 貼文
    276 瀏覽
    尚無回覆
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    1 瀏覽
    尚無回覆
  • An easingcurves example

    Unsolved
    6
    0 評價
    6 貼文
    1k 瀏覽
    H
    I want to Box and EasingType.qml,too.....if you have had an answer ,please replay me !thanks!