Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.0k Topics 77.3k Posts
  • Facing an issue with Listview in Repeater

    Unsolved
    2
    0 Votes
    2 Posts
    179 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
    158 Views
    No one has replied
  • App stoped working after `QTP0004 = NEW`

    Unsolved
    5
    0 Votes
    5 Posts
    687 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
    625 Views
    R
    @jeremy_k Thank you for your input. It seems I have to rethink the concept.
  • How to support Vulkan with QML?

    Unsolved vulkan qml c++ shader
    2
    0 Votes
    2 Posts
    355 Views
    SGaistS
    Hi, Are you looking for something like the Vulkan under QML example ?
  • How to use Arrow Key Navigation with QtVirtualKeyboard

    Unsolved
    5
    0 Votes
    5 Posts
    486 Views
    SGaistS
    You go the answer on this thread, correct ?
  • 0 Votes
    1 Posts
    141 Views
    No one has replied
  • Cannot load library but only on Windows

    Unsolved
    2
    0 Votes
    2 Posts
    221 Views
    T
    Okay so it seems that the problem is the compiler not being the same in Qt Creator than in Qt Design Studio. My Qt Creator kit on Windows is using MinGW but it's not compatible with whatever Qt Design Studio is using. Does someone know how to proceed?
  • WebSocket qml:Messages can only be sent when the socket is open.

    Solved
    1
    0 Votes
    1 Posts
    107 Views
    No one has replied
  • How to install the Qt6 version of the QML Runtime Tool?

    Solved
    5
    0 Votes
    5 Posts
    839 Views
    RokeJulianLockhartR
    @RokeJulianLockhart, per bugzilla.redhat.com/show_bug.cgi?id=2345428#c1: The real binary is installed into /usr/lib64/qt6/bin/qml, and symlinked to /usr/bin as qml-qt6 to not conflict with the Qt5 version.
  • Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1

    Solved
    18
    0 Votes
    18 Posts
    3k Views
    jsulmJ
    @UnknownCollegeCoder said in Enabling arrow-key-navigation with QtVirtualKeyboard on Qt 5.15.1: Would you happen to know how I get this configuration to my current project? You don't! Again: this instruction is to BUILD Qt virtualkeyboard itself, not your project! After calling configure you call make and then "make install" (just like @Joseph-Keene shown already).
  • How to add application icon to python3 QGuiApplication?

    Unsolved
    3
    0 Votes
    3 Posts
    338 Views
    SGaistS
    @RokeJulianLockhart don't be so harsh to your younger self. People make mistakes. You have to learn from them and grow past them :-)
  • Is QML GPU accelerated by default?

    Solved
    3
    0 Votes
    3 Posts
    869 Views
    RokeJulianLockhartR
    QtQuick used to require a GPU to be present. But now a software renderer which has limitations. @SGaist, thanks for that. Never would have found that article in a million years. However, I found a comment which appears to summarise both its current state and why I asked this succinctly, if correct: Yes QtQuick is much much faster in rendering high resolution complex scenes due to leveraging the gpu through the use of QRHI. Its the awesome rendering abstraction Qt made so it will call Dx11 Dx12 Vulkan Metal Opengl depending on the platform you compile for. This ensures you use the best graphics api for the platform as Opengl drivers (from most gpu vendors)on windows sucks compared to DirectX, so much so google even developed ANGLE. But I hear you say the word ‘responsiveness’ and this is something were a very nasty truth comes to light about QtQuick. By default Qt uses VSync and a swapChain interval of 2 or 3 frames (you can configure this) to throttle the rendering so we are not rendering 7000fps for a screen that can only display 120 per second. This adds latency which is noticable to the user. Likewise, since I'm asking this in a KDE context, reddit.com/r/kde/comments/81dfdc/comment/dv37xdr is of use: Today we need to compare QWidget and QtQuick. QWidget is rendered with what raster used to be, so no. QtQuick is by default rendered with OpenGL, so yes. Though, I presume they mean QtWidgets in the stead of QWidget.
  • Why do QML and QtWidgets context menus differ?

    Solved
    3
    0 Votes
    3 Posts
    419 Views
    RokeJulianLockhartR
    post/770024 The problem is inconsistency between the styles utilised by QtWidgets and QtQuick. It should be solved by Union. This is a user forum. You want to check the bug report system to discuss that matter. Thanks, @SGaist. I'd hoped back then that someone would link me to an existent BR for the problem, since I wasn't familiar enough with Qt back then to ascertain whether any of the reports that matched by queries at Jira were relevant.
  • QML MapView

    Solved
    7
    0 Votes
    7 Posts
    929 Views
    KoryK
    Thanks for the help, Kai, your way got rid of the grouped property error [image: 7f603bcd-54bc-4ab1-8b39-1fbeef4531e0.png]
  • Using the QML_ELEMENT macro properly to avoid error "use of undeclared identifier"

    Solved
    5
    0 Votes
    5 Posts
    814 Views
    KoryK
    Yeah that's all working now I was receiving some errors W/default : qrc:/Main.qml:10:1: static plugin for module "URI " with name "URIPlugin" cannot be loaded: Namespace 'URI' has already been used for type registration. GlobalContextModule/pages/SignUp.qml:204 RolesList is not a type Solution to this I believe was to Make sure I hadn't repeated the import statement for our URI from the Parent cmakelists.txt. Where URI refers to URI of our target that we provided to target_include_directories. And our URI is declared in qt_add_qml_module Move the RolesList{} QML element from page in child module to Main.qml where our import statement was. Even though Main.qml loads this page in and in effect, should provide it with what it wants, it didn't for me in practice. Before we used QML_ELEMENT I had an import statement just for RolesList{} in page of child module but now that thing is in our Import URI in Main.qml. If that doesn't make any sense, basically all I'm saying is don't assume classes put inside of main module via QML_ELEMENT and CmakeLIsts.txt get passed down to child modules included into this main module
  • How to transfer drag.active between objects?

    Unsolved
    2
    0 Votes
    2 Posts
    272 Views
    J
    For anybody that cares, I ended up creating the floating icon on top of each gateIcon as it is created: GateIcon.qml: Component.onCompleted:{ floatingGateIcon.fromPalette = fromPalette floatingGateIcon.gateType = gateType floatingGateIcon.parentIcon = gateIcon floatingGateIcon.source = iconSource console.log(gateIcon.x,gateIcon.y) floatingGateIcon.createFloatingIcon(gateIcon.x,gateIcon.y); } then set propagateComposedEvents: true in the gateIcon mouse area.
  • Am I the only one with issues on basic functionality of Qt Design Studio?

    Unsolved
    2
    0 Votes
    2 Posts
    260 Views
    SGaistS
    Hi and welcome to devnet, The forum is not the best place to discuss these issues as it's mainly a user forum. You might want to check the bug report system to see if there's already something that matches your issues. If not, you could consider opening feature requests regarding the points you are mentioning.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    18 Views
    No one has replied
  • Detected recursive rearrange

    Unsolved
    4
    0 Votes
    4 Posts
    666 Views
    SGaistS
    Hi, I think GammaRay might be useful to find that kind of things.