Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Download file in qmlapplication engine
QtWS25 Last Chance

Download file in qmlapplication engine

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • BharathiB Offline
    BharathiB Offline
    Bharathi
    wrote on last edited by
    #1

    How to download file in qqmlapplicationengine?
    I downloaded the file qtnetworkaccess manager in gui,If I use the same thing in qqmlapplication engine,I get the following error.

    @main.cpp

    QObject::connect: No such slot QQmlApplicationEngine::slotFinished()

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Because there is no such slot in that class.

      What exactly are you trying to do with it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • BharathiB Offline
        BharathiB Offline
        Bharathi
        wrote on last edited by
        #3

        I want to download an image or some files and write it in new file using qqmlapplication.

        1 Reply Last reply
        1
        • BharathiB Offline
          BharathiB Offline
          Bharathi
          wrote on last edited by
          #4

          @main.cpp
          int main(int argc, char *argv[])
          {
          QApplication app(argc, argv);
          //download_asset();
          download call;
          QQmlApplicationEngine engine;
          call.download_asset();
          }
          void download::download_asset()
          {
          QObject::connect(reply,SIGNAL(finished()),this,SLOT(slotFinished()));
          }
          @
          I call download_asset function from main using object "call".But If I debug "this" it shows qqmlengine but I need download on that part.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Since you marked the thread as solved, what was the solution you found ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • BharathiB Offline
              BharathiB Offline
              Bharathi
              wrote on last edited by
              #6

              I found the alternate solution.I am not using qqmlapplication engine.I downloaded the video and show the video output in quick view.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved