跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k 主題 77.8k 貼文
  • accessing aggregates (QVector of a struct)

    Solved
    52
    0 評價
    52 貼文
    9k 瀏覽
    mzimmersM
    @kshegunov thanks. I have some follow-on questions, but as they don't focus on the original intent of this thread, and as this thread has gotten fairly long already, I'm going to mark this as solved, and open a new thread. Thanks to everyone for the assistance on this.
  • Can't get WebView goForward() to work

    Unsolved
    1
    0 評價
    1 貼文
    174 瀏覽
    尚無回覆
  • Project ERROR: Unknown module(s) in QT: studio3D

    Solved
    7
    0 評價
    7 貼文
    4k 瀏覽
    ShailendraS
    @kshegunov I am also facing the same issue in Qt5.15.2 for windows system. The 3D Studio is available in installed package[ under Tools] but if I try to include the studio3d module in my .pro file. It gives error. It was working fine previously. I installed the components via online installer. Please see below image for reference. The OpenGL runtime lib for 3D Studio are present in different directory. Can you recommend any solution for this. [image: 023580c7-b8c9-466e-a060-a905d960f507.PNG] [image: bdc45b85-b130-4766-9973-59e3768c930d.PNG] [image: fe137eb6-8ec2-42c6-88d9-34c54567d72e.PNG]
  • QML ComboBox and a C++ enum list

    Unsolved
    5
    1 評價
    5 貼文
    4k 瀏覽
    adaitabeheraA
    enum class Color { Red, Green, Blue }; Q_ENUM(Color) QMetaEnum metaEnum = QMetaEnum::fromType<Color>(); QStringList enumStrings; for(int i = 0; i < metaEnum.keyCount(); ++i) { enumStrings.append(metaEnum.key(i)); }
  • Qt Quick3D model in model reflection

    Unsolved
    1
    0 評價
    1 貼文
    228 瀏覽
    尚無回覆
  • Display 3D point cloud into QML

    Unsolved
    2
    0 評價
    2 貼文
    2k 瀏覽
    oria66O
    @Levicio Hi. I do not know what is the main purpose of your application, but you can use QtQuick3D with the new feature of custom geometry. Take a look at this basic example: https://github.com/oria66/test-qml-3dquickpc. It was developed based in https://www.qt.io/blog/what-is-new-in-qt-quick-3d-6.0 Version Qt 5.15.2
  • QML android webview error

    Unsolved
    3
    0 評價
    3 貼文
    1k 瀏覽
    C
    @Djeff said in QML android webview error: "ERR_UNKNOWN_URL_SCHEME This error is appeared because the WebView can’t recognize the URL Scheme,for example, the WebView will usually recognize only http and https, anything other than these. So WebView cannot parse it to right place, we should use intent to redirect the url. for example – intent://,market://,app://,mail:// etc will not be recognized by webview unless we add a handler to handle these url scheme or by disabling these schemes and only load http and https schemes. This error has no any specific solution till now. Android user and PC user all are facing this error which needs to be sought out. There's a long-standing bug in Chromium regarding how links without protocols are handled. It occasionally is patched, but seems to keep resurfacing. In some cases, prefixing your links with http:// (or https://) should resolve the issue for you. Also, in some cases, try to add target="_blank" in your URL Scheme/Code. for example: <a href="mailto:my@email.com" target="_blank">Link Text</a>
  • QML errors on objects exposed to QML via root setContextProperty in 5.15.2

    Solved
    8
    0 評價
    8 貼文
    679 瀏覽
    VStevenPV
    I am not able to recreate the problem as described so I will mark the topic as Solved. Thanks for your input.
  • QQuickPaintedItem calling both updatePaintNode and paint

    Unsolved
    2
    0 評價
    2 貼文
    357 瀏覽
    oria66O
    Did you check out the Nano painter Library? It uses the best of both approaches...
  • setContextProperty : integrating c++ with qml

    Unsolved
    4
    0 評價
    4 貼文
    733 瀏覽
    D
    @Anas_Deshmukh If your reason for not creating them in QML is that you want a handle to the objects. You could always pass them back to your C++ code though an Q_INVOCABLE method. Consider: Controller : public QObject { Q_INVOKABLE void addGuage(TempGauge *); private: QVector<TemperatureGauge *> m_gauges; };
  • TS-like syntax for QML types

    Solved
    3
    0 評價
    3 貼文
    697 瀏覽
    K
    @kenneth-fernandez Thanks!
  • artifacts using QtQuick.Shapes

    Solved
    2
    0 評價
    2 貼文
    334 瀏覽
    A
    @ABest2 I found a solution. If I limit the height of the rectangle which contains the elements to size increments of 100, the artifacts are not present (The items with artifacts are scaled to the height of the rectangle.). implicitHeight: appWin.height - (appWin.height % 100)
  • Changing the Audio Output Device?

    Unsolved
    2
    0 評價
    2 貼文
    1k 瀏覽
    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 評價
    1 貼文
    206 瀏覽
    尚無回覆
  • Dealing with dynamic content in ScrollView

    Unsolved
    2
    0 評價
    2 貼文
    582 瀏覽
    GabrielRRG
    Hello, you can always set a property in the parent object and bind it directly like: property1 = parent.propertyName property2 = child.propertyName
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    103 瀏覽
    尚無回覆
  • QML memory increase continuously

    Unsolved
    2
    1 評價
    2 貼文
    848 瀏覽
    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 評價
    4 貼文
    2k 瀏覽
    W
    @J-Hilk Thanks for your help! It works!
  • Abnormal Outline Style results.

    Unsolved
    3
    0 評價
    3 貼文
    369 瀏覽
    尚無回覆
  • sky layer cant add to MapBoxGl - QT5.12.4

    Unsolved
    2
    0 評價
    2 貼文
    400 瀏覽
    M
    any answer?