跳到內容

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k 主題 77.4k 貼文
  • Insert un placeholder or similar in a state

    Unsolved
    3
    0 評價
    3 貼文
    256 瀏覽
    PollyP
    @LeLev thank you i'll try.
  • Adjusting constant sizes to DPI

    Unsolved
    2
    0 評價
    2 貼文
    247 瀏覽
    ODБOïO
    hi @Asperamanca said in Adjusting constant sizes to DPI: My best idea right now is to register some context property or similar with this scaling factor, and multiply every constant size with that. I think that is the right thing to do. https://doc.qt.io/qt-5/scalability.html
  • How to make

    Unsolved
    2
    0 評價
    2 貼文
    215 瀏覽
    ODБOïO
    Hi In your 2nd Tqmlc_TextButton you have @OpenCoder said in How to make: Tqmlc_TextButton { Layout.alignment: Qt.AlignLeftRight sould be Qt.AlignLeft
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    2 瀏覽
    尚無回覆
  • import OpenGLUnderQML 1.0 not found

    Unsolved
    4
    0 評價
    4 貼文
    474 瀏覽
    SGaistS
    IIRC, the examples have not yet been all ported to Python. I currently do not know how this one can be translated. On thing you can do is check the bug report system to see if there's something related to these examples.
  • Qt gets crashes when there are too many resource files.

    Unsolved
    3
    0 評價
    3 貼文
    345 瀏覽
    SGaistS
    Hi, Beside the information requested by @jsulm, what type are these icons ? How big are they ? And out of curiosity, why so many ?
  • Displaying multiple images using GridView

    Unsolved
    4
    0 評價
    4 貼文
    744 瀏覽
    M
    it has been solved :) https://stackoverflow.com/questions/66139807/displaying-multiple-images-using-qml-in-gridview
  • Child Element of SplitView overriding SplitView functionality

    Unsolved
    1
    0 評價
    1 貼文
    129 瀏覽
    尚無回覆
  • 2D projections from Scatter3D. It is possible?

    Unsolved
    1
    0 評價
    1 貼文
    175 瀏覽
    尚無回覆
  • Calls from QML to context property objects only in main thread?

    Unsolved
    5
    0 評價
    5 貼文
    751 瀏覽
    A
    @KroMignon said in Calls from QML to context property objects only in main thread?: @Asperamanca said in Calls from QML to context property objects only in main thread?: EDIT: And for QQuickImageProviders they explicitly say you need to be able to handle calls from different threads. Yes, this is normal because renderer could be multiple-threaded. My conclusion here is that they would note it elsewhere, if calls from multiple threads are to be expected.
  • Custom control with different size rectangle

    Unsolved
    2
    0 評價
    2 貼文
    251 瀏覽
    ODБOïO
    @Makarand_EB GridLayout{ anchors.fill: parent columns : 3 Repeater{ model: 13 Rectangle{ Layout.fillHeight: true Layout.fillWidth: true border.width: 1 Layout.columnSpan: index===0||index===1||index===11||index===12 ? 3 : 1 opacity : index===3||index===6||index===9 ? 0 : 1 } } }
  • QML Invert color of image using a mask?

    Unsolved
    2
    0 評價
    2 貼文
    2k 瀏覽
    fcarneyF
    Not sure this will work for me, but it is possible in a way (really messy): import QtQuick 2.15 import QtQuick.Window 2.15 import QtGraphicalEffects 1.15 Window { id: root width: 512 height: 512 visible: true title: qsTr("Mask Invert") Image { id: mapimage width: parent.width height: parent.height source: "testimagesquare.png" visible: true } MouseArea { anchors.fill: mapimage hoverEnabled: true onPositionChanged: { maskposx = mouseX - masksizew/2 maskposy = mouseY - masksizeh/2 } } Image { id: mapimagesub width: masksizew height: masksizeh source: "testimagesquare.png" sourceSize.width: root.width sourceSize.height: root.height sourceClipRect: Qt.rect(maskposx, maskposy, masksizew, masksizeh) visible: false } property real maskposx: 128 property real maskposy: 128 property real masksizew: 128 property real masksizeh: 128 Image { id: subsourceimage width: masksizew height: masksizeh } Image { id: maskimage width: subsourceimage.width height: subsourceimage.height source: "crosshairround.svg" visible: false } OpacityMask { id: opmask x: maskposx y: maskposy width: masksizew height: masksizeh source: huesat //mapimagesub maskSource: maskimage invert: false } HueSaturation { id: huesat anchors.fill: mapimagesub source: mapimagesub hue: 0.5 //lightness: -0.2 //saturation: 0.5 visible: false } }
  • 此主題已被刪除!

    Unsolved
    1
    0 評價
    1 貼文
    24 瀏覽
    尚無回覆
  • How to read Array values and display in ListView?

    Solved
    4
    0 評價
    4 貼文
    588 瀏覽
    raven-worxR
    @lakshmanGiri if it's a property of the listview (as in my example) you can try to access the data with: ListView.view.modelData[index] from within the delegate instead.
  • QML Loader: Binding loop detected for property "sourceComponent" in ComboBox

    Solved
    3
    0 評價
    3 貼文
    1k 瀏覽
    V
    @LeLev said in QML Loader: Binding loop detected for property "sourceComponent" in ComboBox: onDownChanged: loader.sourceComponent = down ? textInputEditable : textRO It works. Thanks a lot. Vaclav.
  • Applcation crashes: Qt 5.15.0 Version on using Virtual keyBoard [Debug mode]

    Unsolved
    6
    0 評價
    6 貼文
    661 瀏覽
    SGaistS
    Can you test with 5.15.2 ? It did not crash for me with that version on macOS.
  • Access and alias problem

    已移動 Unsolved
    2
    0 評價
    2 貼文
    214 瀏覽
    sierdzioS
    It is correct, yes. How to access text (property alias text: input.text) from main.qml while it's not in the scope ofFocusScope { but its child Rectangle? Make another alias property in that Rectangle. Also, isn't property alias input: input redundant? No, it exposes the input element to the outside - components which use TLineEditV2.
  • QML Form Editor/Designer shows empty rectangle in place of an item

    Unsolved
    3
    1 評價
    3 貼文
    654 瀏覽
    Sunita MarshalS
    Any solution to my problem...???
  • How to call a method of a QModelIndex object from QML?

    Unsolved
    1
    0 評價
    1 貼文
    239 瀏覽
    尚無回覆
  • QML & QObject's Dynamic Properties

    Solved
    3
    0 評價
    3 貼文
    251 瀏覽
    V
    The better way is using QQmlProperty.