Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Download file in qmlapplication engine

    General and Desktop
    2
    6
    1059
    Loading More Posts
    • 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.
    • Bharathi
      Bharathi last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • Bharathi
          Bharathi last edited by

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

          1 Reply Last reply Reply Quote 1
          • Bharathi
            Bharathi last edited by

            @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 Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              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 Reply Quote 0
              • Bharathi
                Bharathi last edited by

                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 Reply Quote 0
                • First post
                  Last post