Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • How to make

    Unsolved
    2
    0 Votes
    2 Posts
    215 Views
    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
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • import OpenGLUnderQML 1.0 not found

    Unsolved
    4
    0 Votes
    4 Posts
    478 Views
    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 Votes
    3 Posts
    346 Views
    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 Votes
    4 Posts
    750 Views
    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 Votes
    1 Posts
    129 Views
    No one has replied
  • 2D projections from Scatter3D. It is possible?

    Unsolved
    1
    0 Votes
    1 Posts
    175 Views
    No one has replied
  • Calls from QML to context property objects only in main thread?

    Unsolved
    5
    0 Votes
    5 Posts
    755 Views
    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 Votes
    2 Posts
    255 Views
    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 Votes
    2 Posts
    2k Views
    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 } }
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • How to read Array values and display in ListView?

    Solved
    4
    0 Votes
    4 Posts
    591 Views
    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 Votes
    3 Posts
    1k Views
    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 Votes
    6 Posts
    671 Views
    SGaistS
    Can you test with 5.15.2 ? It did not crash for me with that version on macOS.
  • Access and alias problem

    Moved Unsolved
    2
    0 Votes
    2 Posts
    214 Views
    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 Votes
    3 Posts
    657 Views
    Sunita MarshalS
    Any solution to my problem...???
  • How to call a method of a QModelIndex object from QML?

    Unsolved
    1
    0 Votes
    1 Posts
    240 Views
    No one has replied
  • QML & QObject's Dynamic Properties

    Solved
    3
    0 Votes
    3 Posts
    256 Views
    V
    The better way is using QQmlProperty.
  • Forward QML property binding in C++

    Solved
    5
    0 Votes
    5 Posts
    595 Views
    A
    Yes, it does make sense, when I think a little about it. And if you know that is how it works, it can actually simplify some code. Thanks!
  • Qt Quick or QWidget in a tight memory constraint Android device?

    Unsolved
    8
    0 Votes
    8 Posts
    754 Views
    Sunita MarshalS
    @J-Hilk Yes, I know Qt apps are so memory hungry but I need an advice on choice of new QML or old QWidgets - what will take less memory? I've no plan to make my Android app any fancy or themed - just simple plain controls will be included, and some SQLite database access.