Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.2k Topics 77.8k Posts
  • Macos theme 6.9.2 to 6.10 broken?

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Correct way for a popup or overlay?

    Unsolved
    2
    0 Votes
    2 Posts
    29 Views
    GrecKoG
    I'm not sure what is the question. You are creating a Popup and that's the correct approach to have something above the rest of your content. You also set the close policy according to what I assume is what you want. As you also identified, your dynamic object creation can be improved. My rule of thumb: don't ever use Qt.createComponent, and use createObject lightly. I'd argue here that using createObject is the correct approach for creating a popup. You can just use a declaratively created Component instead. As for creating items from a list, you should use a ListView or a Repeater instead. With a DelegateChooser if you need different delegates.
  • Qt.callLater() and invalid context

    Unsolved
    2
    0 Votes
    2 Posts
    29 Views
    SGaistS
    Hi, Intuitively, I would say you are using it correctly Likely an unintended consequence I would think so You should check the bug report system to see if this is something known. If not please open a new ticket containing a complete minimal buildable example showing this.
  • 0 Votes
    1 Posts
    12 Views
    No one has replied
  • QRhi dynamic uniform buffer scope

    Unsolved
    2
    0 Votes
    2 Posts
    194 Views
    S
    Did you get that to work in the end? From: https://doc.qt.io/qt-6/qrhi.html "writing to a dynamic buffer multiple times within a frame, in case such buffers are backed by host-visible memory, will result in making the results of all writes are visible to all draw calls in the command buffer of the frame, regardless of when the dynamic buffer update was recorded relative to a draw call"
  • Dialog standardButtons localization

    Unsolved
    3
    0 Votes
    3 Posts
    101 Views
    CattivikC
    Thanks @Bandler for your reply. I started a test application from this example: https://doc.qt.io/qt-6/qtlinguist-localizedclock-example.html. I'm doing the same to load myApp_xx.qm and then the other translator: I think that button texts are translated in qtbase_xx.qm file (qtquickcontrols was changed into qtdeclarative according to this, but it does not contain what I need). In my application I have a button to open a standard message dialog like this: MessageDialog { title: qsTr("This is a standard message dialog") text: qsTr("The document has been modified.") informativeText: qsTr("Do you want to save your changes?") buttons: MessageDialog.Yes | MessageDialog.No } and a dropdown to change language and locale dynamically. Something strange happens in two cases. Case #1 run application (default language is english) open the message (button texts are Yes and No) every attempt to change language fails for message buttons: all other application texts are correctly translated but message button texts remain in english. Case #2 run application (english default) change language to japanese (for example) open the message, and yes, now button text are in japanese! BUT every attempt to change language again fails from now on: message button texts still remain in japanese while all other texts in the app are correctly translated. For that reason I can imagine that MessageDialog component doesn't support dynamic translation, maybe. Hope this helps. -C
  • QML Repeater with Qt Graphs Invalid Y Values

    Unsolved qabstractmodel qml c++ qml qt graphs repeater
    1
    0 Votes
    1 Posts
    42 Views
    No one has replied
  • 0 Votes
    5 Posts
    238 Views
    G
    Thanks a lot @Pl45m4 for your time ! With this link (https://doc.qt.io/qtforpython-6/examples/index.html) i found some good examples ! However i face a big problem it seems impossible to embed QWidgets (like PyQtGraph or Matplotlib plots) directly in a QML panel. I'm looking for alternatives or solution but nothing ... Thanks
  • Qt6.8 QML ListView Bug: Cannot click item in the list while scrolling ListView

    Solved
    2
    0 Votes
    2 Posts
    95 Views
    J
    This bug has been fixed in Qt6.10.1 https://bugreports.qt.io/browse/QTBUG-135931 Reg[6.8.2-6.9.0]ListView containing AbstractSeries does not scroll on Drag
  • 0 Votes
    2 Posts
    95 Views
    GrecKoG
    https://doc.qt.io/qt-6/qtquickcontrols-customize.html#customization-reference Note: The macOS and Windows styles are not suitable for customizing. It is instead recommended to always base a customized control on top of a single style that is available on all platforms, e.g Basic Style, Fusion Style, Imagine Style, Material Style, Universal Style. By doing so, you are guaranteed that it will always look the same, regardless of which style the application is run with. To learn how to use a different style, see Using Styles in Qt Quick Controls. Alternatively, you can create your own style. If you want to customize a control the best way is to do an explicit style import (import QtQuick.Controls.Basic for example vs import QtQuick.Controls).
  • SVG is not supported on preview mod

    Unsolved
    4
    0 Votes
    4 Posts
    146 Views
    SGaistS
    Can you start Qt Creator from the command line using the QT_DEBUG_PLUGINS environment variable set to one and then use the preview mode ? I am wondering whether the svg plugin gets lost somehow.
  • Can not use flexboxlayout

    Solved
    8
    0 Votes
    8 Posts
    338 Views
    A
    Hi, This was the problem! I also just found out, I typed it and it worked and could not see what was the difference. I had to use a hexdump to see the error ! 46 6C 65 78 62 6F 78 4C 61 79 6F 75 74 20 7B 46 6C 65 78 42 6F 78 4C 61 79 6F 75 74 20 7B 62 and 42. Thanks a lot for your help :) Emmanuel
  • Qt Graphs lacking functionalities - Axes range

    Unsolved
    17
    1 Votes
    17 Posts
    2k Views
    T
    FYI: https://bugreports.qt.io/browse/QTBUG-142046 Thanks @mklisiewicz for bringing this into our attention.
  • 0 Votes
    5 Posts
    195 Views
    JKSHJ
    @timafaer said in QML: Functions inside var-array model become undefined after switching Repeater model: JavaScript functions are not supported as model data, so when the array is wrapped into this internal model, any function properties are effectively lost or become non-callable. That’s why inside the delegate typeof modelData.handler (or modelData[1]) is no longer "function". That was the case in Qt 5.15, but that's no longer true in Qt 6.5+. As I mentioned before, your code works just fine with a recent version of Qt.
  • QMouseEvent bug?

    Unsolved
    7
    0 Votes
    7 Posts
    312 Views
    Axel SpoerlA
    There is no bug with QMouseEvent, unless you provide a minimal reproducer showing that there is one :-) The VNC based issue looks more than a desktop or client/server compatibility issue to me.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    12 Views
    No one has replied
  • QML Extension make install gives Errors

    Unsolved
    11
    0 Votes
    11 Posts
    2k Views
    K
    @sandro4912, if you are still interested... ;) Just change file permissions and remove execution rights: chmod -x /home/sandro/Qt/5.14.2/gcc_64/qml/org/example/io/qmldir or cd /home/sandro/Qt/5.14.2/gcc_64/qml/org/example/io chmod -x qmldir
  • qmlscene issues

    Moved Unsolved
    3
    0 Votes
    3 Posts
    112 Views
    jeremy_kJ
    Change Qt.application.qtVersion to Qt.application.version, and it works for me with Qt 6.9.2 from a qt.io installer. [image: a60f0120-53b5-4a2d-934b-589124d37f1c.png] There is a warning on stderr: qt.tools.qmlscene.deprecated: Warning: qmlscene is deprecated and will be removed in a future version of Qt. Please use qml instead.
  • DelegateModel DelegateModelGroup under the hood

    Unsolved
    3
    0 Votes
    3 Posts
    393 Views
    GrecKoG
    I would recommend using a SortFilterProxyModel instead, the DelegateModel API is very cumbersome.
  • Focusing TextInput doesn't open the virtual keyboard

    Unsolved
    1
    0 Votes
    1 Posts
    77 Views
    No one has replied