Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved Qt 5.10.0 RC QFile::copy on Android not works

    Mobile and Embedded
    3
    10
    2079
    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.
    • M
      morte last edited by

      Seems like QFile::copy bugged in Qt 5.10, i've create bug report about that issue (https://bugreports.qt.io/browse/QTBUG-64103), can someone else test QFile::copy on Android?

      1 Reply Last reply Reply Quote 1
      • ekkescorner
        ekkescorner Qt Champions 2016 last edited by

        have you tried

        bool copied = QFile::copy(sourceFilePath, destinationFilePath);
        

        where destinationFilePath is QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation).value(0) + "/newFile.txt" or so ?

        ekke
        Qt Champion
        mobile business apps
        Qt Quick Controls 2 (Material style) for Android / iOS

        M 1 Reply Last reply Reply Quote 0
        • M
          morte @ekkescorner last edited by

          @ekkescorner Yes, i have tried (QStandardPaths::DocumentsLocation).first(), (QStandardPaths::DataLocation).first(), same code works fine with 5.9.3 but don't work on 5.10

          ekkescorner 1 Reply Last reply Reply Quote 0
          • ekkescorner
            ekkescorner Qt Champions 2016 @morte last edited by

            @morte and you haven't changed your SDK version ? and same NDK ?

            ekke
            Qt Champion
            mobile business apps
            Qt Quick Controls 2 (Material style) for Android / iOS

            M 1 Reply Last reply Reply Quote 0
            • M
              morte @ekkescorner last edited by

              @ekkescorner Yes, same SDK and NDK, same gcc from NDK r10e

              ekkescorner 1 Reply Last reply Reply Quote 0
              • ekkescorner
                ekkescorner Qt Champions 2016 @morte last edited by

                @morte I haven't tried w 5.10 yet - so much work on 5.9.x projects
                but this bug would be a show stopper
                please upload a really small demo app to make it easy to reproduce to the bug 64103, because status is 'need more info'

                ekke
                Qt Champion
                mobile business apps
                Qt Quick Controls 2 (Material style) for Android / iOS

                M 1 Reply Last reply Reply Quote 0
                • M
                  morte @ekkescorner last edited by morte

                  @ekkescorner 'Needs more info' probably because Thiago wants strace output, i didnt managed yet to get it on Android

                  1 Reply Last reply Reply Quote 0
                  • I
                    iamqt last edited by

                    I can confirm this bug.

                    ekkescorner 1 Reply Last reply Reply Quote 0
                    • ekkescorner
                      ekkescorner Qt Champions 2016 @iamqt last edited by

                      @iamqt this should be fixed in 5.10.1
                      https://bugreports.qt.io/browse/QTBUG-64103

                      ekke
                      Qt Champion
                      mobile business apps
                      Qt Quick Controls 2 (Material style) for Android / iOS

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        iamqt @ekkescorner last edited by

                        @ekkescorner That's good to hear. I already wrote my own copy function as a workaround.

                        Thanks!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post