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. use of deleted function 'QFile::QFile(const QFile
QtWS25 Last Chance

use of deleted function 'QFile::QFile(const QFile

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 513 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.
  • faduF Offline
    faduF Offline
    fadu
    wrote on last edited by
    #1
       alo.remove("some text");
               QTextStream stream(&alo);
               QString Model = stream.readLine();
               AddLog("some text " + Model);
               QFile file2("path"+Model+".file extention");
    
               if(file2.exists())
               {
                  QFile defile("path") ;
                  if(decryptfiles(false,file2,defile))
                  {
    
                  }
               }
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You are trying to copy a QFile object which is not possible since in inherits from QObject.

      My guess is that decryptfiles parameters is what triggers the error message you see.

      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
      2
      • faduF Offline
        faduF Offline
        fadu
        wrote on last edited by
        #3

        @SGaist
        Thank you very much The Problem Is Solved As you saw

        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