Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
19.8k Topics 76.7k Posts
  • picture locations

    Unsolved
    7
    0 Votes
    7 Posts
    146 Views
    G

    Is there anything else I am supposed to do other than create the resources file that links the pictures?

  • Sync QQuickPaintedItem and QML painting

    Unsolved
    2
    0 Votes
    2 Posts
    29 Views
    jeremy_kJ

    Based on a quick read of the documentation, I don't think that this strategy will work.

    https://doc.qt.io/qt-6/qquickpainteditem.html#paint

    Note: The QML Scene Graph uses two separate threads, the main thread does things such as processing events or updating animations while a second thread does the actual issuing of graphics resource updates and the recording of draw calls. As a consequence, paint() is not called from the main GUI thread but from the GL enabled renderer thread. At the moment paint() is called, the GUI thread is blocked and this is therefore thread-safe.

    Warning: Extreme caution must be used when creating QObjects, emitting signals, starting timers and similar inside this function as these will have affinity to the rendering thread.

  • OpenSSL with QML Image source. Self signed ca-certificate

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    A

    Interesting

  • 0 Votes
    3 Posts
    70 Views
    P

    Snipaste_2025-02-21_19-04-28.jpg
    The complete picture looks like this

  • Bug in qt 5.15.2: Button.checkable = false is gettin ignored

    Unsolved
    2
    0 Votes
    2 Posts
    51 Views
    MarkkyboyM

    Checkable and checked are not components of Button QML.

    A similar question here; https://forum.qt.io/topic/36479/solved-button-checkable-and-checked-not-working albeit a different answer/outcome from my response. Regardless, I still myself, cannot use checkable or checked with Button.

  • 0 Votes
    3 Posts
    58 Views
    S

    @SGaist Thank you so much!

  • 0 Votes
    2 Posts
    72 Views
    M

    It turns out wrapping the child Layout in an Item does the trick. Don't know why and whether this is the best solution

    import QtQuick import QtQuick.Controls import QtQuick.Layouts Window { height: 300 width: 240 visible: true StackLayout { anchors.fill: parent Item { Layout.fillWidth: true Layout.fillHeight: true ColumnLayout { anchors.fill: parent Rectangle { color: "red" Layout.preferredWidth: 100 Layout.preferredHeight: 50 Layout.alignment: Qt.AlignHCenter // Center within ColumnLayout } // other items } } // other items } }
  • 0 Votes
    6 Posts
    114 Views
    jsulmJ

    @VITORdk said in Error: ":\Qt\6.7.3\android_arm64_v8a\include\QtCore\qnamespace.:24:1: error: error: Parse error at "__attribute__"":

    So I reduced my file to an empty file

    You can't compile an empty file. Also, I guess your project consists of more than just an empty file.
    Please provide more information, else nobody knows what you're doing and what the problem is.
    Did you try to create a new widget project in QtCreator and build it for Android?

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    31 Views
    No one has replied
  • MapPolygon border color doesnt change on update

    Unsolved
    1
    0 Votes
    1 Posts
    20 Views
    No one has replied
  • No word suggestions on Android in TextEdit

    Solved
    6
    1 Votes
    6 Posts
    227 Views
    M

    Fixed in 6.8.2

  • QML + CSS

    17
    0 Votes
    17 Posts
    27k Views
    B

    I wonder if that forum post is referring to text components that support html to some extent, rather than to QML itself?

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    7 Posts
    113 Views
    B

    Though that page doesn't show any QML examples as far as I can see.

    I recall having to try a few things when I first wanted to do this a few years ago. I don't know if what I arrived at is the "correct" approach, but the format that I found to work in QML and have stuck to ever since involves using a triple forward slash like this:

    source: "qrc:///images/my-image.png"
  • Facing an issue with Listview in Repeater

    Unsolved
    2
    0 Votes
    2 Posts
    48 Views
    jeremy_kJ

    @Praveen-Illa said in Facing an issue with Listview in Repeater:

    Hi Team,

    I am trying to control the visibility of the listview control on every button click for respective data model.
    But, I am getting below errors at "visible: buttonRepeater.model.expanded"
    Unable to assign [undefined] to bool

    Edited to emphasize the problem:

    Repeater { id: buttonRepeater model: groupModel delegate: Column { ListView { visible: buttonRepeater.model.expanded } } }

    buttonRepeater.model.expanded is attempting to access a property called expanded in buttonRepeater's model, not a role called expanded within a row of the model. Printing the values of buttonRepeater and buttonRepeater.model should make this clear.

  • Qt Quick with CMake Error

    Unsolved
    1
    0 Votes
    1 Posts
    35 Views
    No one has replied
  • App stoped working after `QTP0004 = NEW`

    Unsolved
    5
    0 Votes
    5 Posts
    309 Views
    D

    Looks like it's QTBUG-133587. I also have .js files in QML_FILES.

  • Hide Rectangle Behind Transparent Rectangle

    Unsolved
    6
    0 Votes
    6 Posts
    301 Views
    R

    @jeremy_k Thank you for your input. It seems I have to rethink the concept.

  • How to support Vulkan with QML?

    Unsolved
    2
    0 Votes
    2 Posts
    59 Views
    SGaistS

    Hi,

    Are you looking for something like the Vulkan under QML example ?