Skip to content

QML and Qt Quick

Looking for The Bling Thing(tm)? Post here!
20.3k Topics 78.3k Posts
Qt 6.11 is out! See what's new in the release blog
  • 0 Votes
    1 Posts
    306 Views
    No one has replied
  • Prevent dragArea from affecting the SwipeView

    Moved Unsolved
    1
    0 Votes
    1 Posts
    290 Views
    No one has replied
  • How to get visible rectangle of QQuickPaintedItem inside ScrollView?

    Unsolved
    1
    0 Votes
    1 Posts
    298 Views
    No one has replied
  • 0 Votes
    1 Posts
    408 Views
    No one has replied
  • TableView disable row highlighting

    Solved
    3
    0 Votes
    3 Posts
    692 Views
    M
    Thank you. That is the solution.
  • Singleton QML failed to load as module

    Solved
    5
    0 Votes
    5 Posts
    3k Views
    N
    @KroMignon Sorry, I read your too quickly your first post. As you have defined TestMe as singleton, you can not create any instance of it, because its already exists! Change your main.qml as follow, it should than work: import QtQuick 2.15 import QtQuick.Window 2.15 import base 1.0 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") + TestMe.value Component.onCompleted: TestMe.value ="new value" } Oh yeah you are absolutely right, since it's a singleton the instance already exists! Of course now it works as expected! :) Thank you for your help!
  • [PROBLEM] How to store an image to reuse it

    Unsolved
    9
    0 Votes
    9 Posts
    2k Views
    M
    @JoeCFD I found the solution now the problem is writing on Android, after downloading all the stuff and I try to write I get this error "Problem opening save file "/storage/emulated/0/Pictures/tmpImg.jpg" for download "Operation not permitted" Meanwhile If i create the file I get "Problem opening save file "/storage/emulated/0/Pictures/tmpImg.jpg" for download "Permission Denied" This is the code I used: void DownloadManager::startDownload() { if (downloadQueue.isEmpty()) { qDebug() << "[DownloadManager::startNextDownload]" << downloadedCount << " " << totalCount << " files download succesfully"; emit finished(); return; } QUrl url = downloadQueue.dequeue(); // QString filename = saveFileName(url); QString filename = QStandardPaths::writableLocation(QStandardPaths::PicturesLocation); //Prendo nome primo elemento ed inserisco nella lista, poi lo rimuovo if(!imagesName.isEmpty()) { filename.append("/"); filename.append(imagesName.first()); imagesName.removeFirst(); } qDebug() << "[DownloadManager::startNextDownload] Filename " << filename; output.setFileName(filename); if (!output.open(QIODevice::WriteOnly)) { qDebug() << "[DownloadManager::startNextDownload] Problem opening save file " << filename << " for download " << output.errorString(); qDebug() << "[DownloadManager::startNextDownload] Skipping download"; startNextDownload(); return; // skip this download } //Download the file into the location QNetworkRequest request(url); currentDownload = manager.get(request); connect(currentDownload, &QNetworkReply::finished, this, &DownloadManager::downloadFinished); connect(currentDownload, &QNetworkReply::readyRead, this, &DownloadManager::downloadReadyRead); // prepare the output qDebug() << "[DownloadManager::startNextDownload] Downloading " << url; }
  • Is there a way to start qt webgl on a https connection ?

    Unsolved
    1
    0 Votes
    1 Posts
    307 Views
    No one has replied
  • How can I fill a "ListView QML Type" with a model from a "QList<QString>"'?

    Solved qtquick qml
    15
    0 Votes
    15 Posts
    10k Views
    P
    i made a script that fetch IP addresses and save them to QList and now i want to show buttons as many as the sizeof the QList in qml and i couldn't use the QAbstractListModel nor the Q_PROPERTY please help me.
  • can Surface3D convert to Q3DSurface ?

    Unsolved
    1
    0 Votes
    1 Posts
    343 Views
    No one has replied
  • Tableview column names not showing.

    Unsolved
    1
    0 Votes
    1 Posts
    374 Views
    No one has replied
  • QML Drag breaks when switching pressed button

    Unsolved qml drag&drop
    1
    0 Votes
    1 Posts
    875 Views
    No one has replied
  • ListView: Use positionItemAtIndex when some items are invisible

    Solved
    3
    0 Votes
    3 Posts
    599 Views
    M
    Hm, my question started with wrong assumptions, so I will close this question
  • Recommend a good starting point for QtQuick3D and Physics

    Unsolved
    1
    0 Votes
    1 Posts
    306 Views
    No one has replied
  • Deploy to iPhone fail after Build Success.

    Unsolved
    2
    0 Votes
    2 Posts
    436 Views
    KH-219DesignK
    I am only making a guess. (The last time I used Qt on iOS I was using XCode 11.) These seem relevant: https://bugreports.qt.io/browse/QTBUG-68705 https://bugreports.qt.io/browse/QTCREATORBUG-25535 If you are using Qt Creator, it seems like maybe you should attempt the following as a potential workaround/experiment: build at a command prompt (mac "Terminal" shell) open the YOUR_PROJECT.xcodeproj in XCode and perform further iPhone deployment steps from inside Xcode directly.
  • How to start qt application from browser

    Unsolved
    4
    0 Votes
    4 Posts
    896 Views
    Pablo J. RoginaP
    @Mc6bullet so please mark your post as solved!
  • Graphics performance drops when running with multiple (duplicate) windows

    Unsolved
    1
    0 Votes
    1 Posts
    431 Views
    No one has replied
  • Package containing QtQuick Timeline module

    Unsolved
    4
    0 Votes
    4 Posts
    1k Views
    JKSHJ
    @kwojcik said in Package containing QtQuick Timeline module: I am using Ubuntu 18.04 aka Bionic Beaver. Qt Quick Timeline was introduced with Qt 5.14 (https://www.qt.io/blog/qt-5.14-has-released ) However, Bionic Beaver's repo only has Qt 5.9, so you won't be able to install it from the Linux command line. I suggest you run the Qt installer (https://www.qt.io/download-open-source ) and install Qt 5.15. That will have Qt Quick Timeline built in.
  • Adding 2nd window causes animation stuttering in 1st window

    Unsolved
    4
    2 Votes
    4 Posts
    2k Views
    S
    @Jarrod It seems like I'm having the same issue. When running a Qt application with a single window the performance is good, running at 60 FPS. However, when adding a secondary window (actually a duplicate) the performance starts to drop. Performance continues to drop when adding more and more windows, while still not fully using available CPU power (approx. 160% out of 400%). Did you manage to find a solution or workaround for your issues?
  • distance and time of a route qml

    Unsolved
    2
    0 Votes
    2 Posts
    452 Views
    ndiasN
    Hi @BeniNoa , If you are looking for an alternative to Google Map API, you can opt for the OpenStreetMap solution. It offers several routing solutions including offline routing (https://wiki.openstreetmap.org/wiki/Routing)