Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.10.0 RC QFile::copy on Android not works
QtWS25 Last Chance

Qt 5.10.0 RC QFile::copy on Android not works

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
10 Posts 3 Posters 2.4k 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.
  • M Offline
    M Offline
    morte
    wrote on last edited by
    #1

    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
    1
    • ekkescornerE Offline
      ekkescornerE Offline
      ekkescorner
      Qt Champions 2016
      wrote on last edited by
      #2

      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 2016 | 2024 ... mobile business apps
      5.15 --> 6.8 https://t1p.de/ekkeChecklist
      QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

      M 1 Reply Last reply
      0
      • ekkescornerE ekkescorner

        have you tried

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

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

        M Offline
        M Offline
        morte
        wrote on last edited by
        #3

        @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

        ekkescornerE 1 Reply Last reply
        0
        • M morte

          @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

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

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

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          M 1 Reply Last reply
          0
          • ekkescornerE ekkescorner

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

            M Offline
            M Offline
            morte
            wrote on last edited by
            #5

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

            ekkescornerE 1 Reply Last reply
            0
            • M morte

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

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @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 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              M 1 Reply Last reply
              0
              • ekkescornerE ekkescorner

                @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'

                M Offline
                M Offline
                morte
                wrote on last edited by morte
                #7

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

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  iamqt
                  wrote on last edited by
                  #8

                  I can confirm this bug.

                  ekkescornerE 1 Reply Last reply
                  0
                  • I iamqt

                    I can confirm this bug.

                    ekkescornerE Offline
                    ekkescornerE Offline
                    ekkescorner
                    Qt Champions 2016
                    wrote on last edited by
                    #9

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

                    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                    5.15 --> 6.8 https://t1p.de/ekkeChecklist
                    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                    I 1 Reply Last reply
                    0
                    • ekkescornerE ekkescorner

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

                      I Offline
                      I Offline
                      iamqt
                      wrote on last edited by
                      #10

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

                      Thanks!

                      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