Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.1k Topics 77.6k Posts
  • How to display live stream video from camera

    8
    0 Votes
    8 Posts
    8k Views
    X
    QString webRTCUrl = QString::fromUtf8(UrlMessage); // Create and show WebRTC video viewer widget QWebEngineView view; view.setUrl(QUrl(webRTCUrl)); // Use the URL variable I have written this part of code to stream the video from camera bit it gives me black screen. Help me
  • Screen does not update

    Unsolved
    2
    0 Votes
    2 Posts
    266 Views
    dheerendraD
    @kim333 May be it is issue from your system ? Or Since you are calling qml methods directly from C++, something may be hung or got into deadlock ? There is no specific order of call. It is just method call. If it is multithread application & it may be work slightly differently. Best approach is write a small QML application. Use timer to continuously update the qml with some random text. Observe for the period you said. This may give you the hint on where the issue exist.
  • How to use https url to load an image in qml?

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    MarkkyboyM
    @zzzzxx - last time I had this problem, I'm pretty sure I solved it by installing OpenSSL. Also, make sure your device/laptop/phone has internet connection. I have a 10 year old Lenovo 64bit laptop. To be sure, I downloaded and installed both 32bit and 64bit OpenSSL; https://slproweb.com/products/Win32OpenSSL.html For me, to get the new image looking right; I made a few minor adjustments; Image { id: name fillMode: Image.PreserveAspectFit anchors.fill: parent source: "https://d2f9uwgpmber13.cloudfront.net/public/image_new/26fe75871805b8fa8ffcd1a94778be4c?.jpeg" }
  • Automatic connection of QML signal and C++ slot?

    Solved
    16
    0 Votes
    16 Posts
    1k Views
    JonBJ
    @SimonSchroeder I think @J-Hilk's interest in using vi/vim in any shape or form is absolute 0! We were jesting back & forth.
  • ScrollBar for PdfMultiPageView

    Unsolved
    3
    1 Votes
    3 Posts
    338 Views
    Serhan KarsS
    @BlinCt Any solution?
  • [SOLVED] Limit dragging range

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    MarkkyboyM
    @Markkyboy - solved it, answer staring me in the face. Have been using CircularSlider all wrong!, doh!
  • 0 Votes
    3 Posts
    324 Views
    SGaistS
    Hi, Based on the class documentation, the class is legacy and will only work if OpenGL is used in the backend. Try running your application with the QSG_RHI_BACKEND environment variable set to opengl. For example: QSG_RHI_BACKEND=opengl appopenGL.
  • 0 Votes
    10 Posts
    2k Views
    T
    @GrecKo Dear GrecKo, in the qml_singleton.h should I change the word "Type" to "System", because my Particlesystem is called like that? Where have I to introduce my Hardcore_Entrymodel - is it the UnsafeArea or is it the ApplicationUI class? I tend to UnsafeArea=Hardcore_Entrymodel and to leave the names "ApplicationUI" and "Type##QmlSingleton", but I'm not sure ...
  • QtQuick Controls TreeView section

    Unsolved
    2
    0 Votes
    2 Posts
    261 Views
    B
    @RandomName I am not sure about your specific question but would just like to note, in case you aren't already aware, that the TreeView in Qt 5.12 comes from the original Quick Controls library, which is deprecated in later Qt 5 releases and has been completely removed in Qt 6. There is a completely new TreeView in Qt 6 which is not a drop-in replacement for the old one. If you have any plans to upgrade to Qt 6 in the near future, it might be worth bringing those plans forward rather than having to do this work twice.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    21 Views
    No one has replied
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • FileDialog filemode not working

    Solved
    2
    0 Votes
    2 Posts
    337 Views
    V
    we have to define only one import statement for dialog component at a time. For my work, Qt.labs.platform 1.1 works fine so I discarded the other one. Like this,I have commented out the Dialogs component import QtQuick 2.15 import Qt.labs.platform 1.1 import QtQuick.Controls 2.15 import QtGraphicalEffects 1.15 import QtQuick.Layouts 1.15 //import QtQuick.Dialogs 1.3
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • QT PositionSource / MagicLane slow

    Unsolved
    2
    0 Votes
    2 Posts
    217 Views
    W
    @WilliamH07 I just tried to open the app, and it's nearly instantaneous, and it immediately locates itself upon opening. However, 5 seconds later, after closing and reopening the app, it takes 7 to 8 minutes.
  • This topic is deleted!

    Unsolved
    2
    0 Votes
    2 Posts
    4 Views
    No one has replied
  • How to make a quick module as a shared library(.so or dll)that contains all things?

    Unsolved
    2
    0 Votes
    2 Posts
    192 Views
    No one has replied
  • How to create a quick plugin with a dot "." in the "URI"

    Solved
    3
    0 Votes
    3 Posts
    263 Views
    S
    @Anumas Thanks, I find out the really problem I got before, URI will composed with QT_QML_OUTPUT_DIRECTORY and the OUPUT_DIRECTORY parameter of qt_add_qml_module() to making some directories or target filename while building, and that cause conflicts
  • Generalizing Animation Setup in QML

    Solved animations qml qml
    8
    1 Votes
    8 Posts
    1k Views
    V
    @afalsa said in Generalizing Animation Setup in QML: PropertyChanges { passwordRequeriment1.opacity: 0 passwordRequeriment2.opacity: 0 passwordRequeriment3.opacity: 0 } Thanks ! Work excellent!
  • Refactoring option is greyed out (unselectable)

    Solved
    2
    0 Votes
    2 Posts
    445 Views
    V
    I had a similar situation, I needed to create a new component 'button_Color' and move it to a new file 'button_Color.qml', I selected a block of code to transfer, pressed the right mouse button, but the item option 'refactoring' of the menuwas unavailable(gray), It was solved by accident, I move the mouse cursor to the beginning of code block 'button_Color' , Item {}, on the word 'Item', and press right button on mouse and get the menu with available item option of menu 'refactoring'
  • onDropped not being triggered in QML

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