Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • ListView Delegate and databing on model deletion

    Unsolved
    1
    0 Votes
    1 Posts
    136 Views
    No one has replied
  • 0 Votes
    5 Posts
    1k Views
    I
    @Kuldip-Somwanshi have you ever solved this? I couldn't find a solution anywhere
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    22 Views
    No one has replied
  • DirectShowPlayerService::doRender: Unresolved error code 0x80040266 ()

    Solved
    7
    0 Votes
    7 Posts
    14k Views
    T
    @saeidparand thanks thanks thanks you so much
  • WebEngineView cannot load external js from http

    Solved
    2
    0 Votes
    2 Posts
    332 Views
    C
    @charlie2024 Friends! I fixed this. Turned out we need to add this line to WebEngineView. settings { localContentCanAccessRemoteUrls: true } This is the problem: https://www.telerik.com/blogs/all-you-need-to-know-cors-errors
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Change VkFormat in Vulkan Texture Import

    Unsolved
    1
    0 Votes
    1 Posts
    168 Views
    No one has replied
  • QML QtLocation Map offline mapping GeoTiff to QML Map

    Unsolved
    3
    0 Votes
    3 Posts
    685 Views
    V
    @Alien Any reference or documentation Links?please
  • Include Folder Path in QML

    Solved
    3
    0 Votes
    3 Posts
    265 Views
    V
    @Bob64 I found that.. It should be like this: /resources/Joystick/main.qml
  • How to load Tiff File in QML

    Unsolved
    1
    0 Votes
    1 Posts
    167 Views
    No one has replied
  • Update and reset the text color of Selected List Item

    Solved
    3
    0 Votes
    3 Posts
    261 Views
    A
    @Tassos Thanks for the solution it worked.
  • Hardware Accelerated Video Playback

    Unsolved
    7
    0 Votes
    7 Posts
    3k Views
    Y
    @Paulo-Narvaez Hi Paulo, have you solved the issue? Hope if you can share your solution...
  • Custom Plugin Class

    Solved
    4
    0 Votes
    4 Posts
    462 Views
    A
    @M4cM4rco Glad to hear it! QML macros are fantastic in this case. Just to add more extra info, you can, in fact add more macros to your class depending on your needs QML_SINGLETON
  • Problem keeping ListView highlight in view after model update

    Unsolved
    3
    0 Votes
    3 Posts
    949 Views
    R
    To put it differently (illustrating why it may be working "as designed"): ListView has two modes. In the first mode we have a list, and there is a highlighted "current item" somewhere, perhaps scrolled out of sight, but we are not tracking it anymore. By scrolling, for instance, we immediately enter this mode. In this mode, inserting new elements will not try to keep the highlight in view, even if the highlight was in view before inserting. Fair enough, if you are scrolling you must perhaps give up on tracking the current item. The other mode happens after a particular item has been selected by the application by setting currentIndex. Now modifications of the list will cause the ListView to scroll to keep the highlight in view. My problem was that: ListView is in the first, non-tracking mode by default My operations on the ListView model always moved currentIndex implicitly, in exactly the same way as I was intending to move it explicitly My explicit setting of currentIndex, always to the value that it already had never triggered the tracking mode. This does perhaps not trigger onCurrentIndexChanged so it may be impossible to detect for the underlying code I can think of five separate ways that each would fix the issue: Set the ListView to the "tracking" mode on startup. Or: On scrolling (or in any state/operation), whenever the current item is left entirely contained within the visible range, automatically enter "tracking" mode (especially if "hichlightFollowsCurrentItem"). (Preferred.) Or: On model changes, whenever the current item is already within the visible range, automatically enter "tracking" mode before starting to visualize the model change. Or: Find out and fix why this code doesn't fix the problem: "onCurrentIndexChanged: positionViewAtIndex(currentIndex, ListView.Contain)". Or: A "setCurrentItem" method that always triggers tracking mode, even if we are setting the index to what it already is
  • Synchronizing RTC with System Time in Qt QML Application

    Unsolved
    2
    0 Votes
    2 Posts
    292 Views
    SGaistS
    Hi, AFAIK, no. Isn't that rather the role of ntp ?
  • How to authorization token with a QML MediaPlayer

    Unsolved
    1
    0 Votes
    1 Posts
    164 Views
    No one has replied
  • Robust interception of ApplicationWindow geometry initialisation

    Unsolved
    3
    0 Votes
    3 Posts
    238 Views
    B
    OK, so this certainly seems to work and is much cleaner if I do the work in Component.onCompleted. What I am missing is a guarantee that the Settings have been applied to the window geometry by the time Component.onCompleted is triggered.
  • 0 Votes
    1 Posts
    257 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • Image Correction in QML

    Unsolved
    3
    0 Votes
    3 Posts
    300 Views
    V
    @dheerendra Thank you, Now I have written like this: Image{ id: opencvImage width: 0.99*parent.width height:0.99*parent.height anchors.centerIn: parent fillMode: Image.PreserveAspectFit property bool counter: false visible: true source: "file:///C:/Users/hp/Pictures/11.jpg" asynchronous: false cache: true } and the output is like this: [image: 0b1be2e5-4ee0-4316-9e0d-f6ee3eddf321.png] What goes wrong? Actually ,What I have been working is: sending the image path from the file browser in qml to the backend C++ which uses Opencv for image processing the image and send that image using QImage to QML displaying window.. where does it goes wrong if I send from C++ to QML rather than directly displaying it?