[PyQt] Write BIG QString
    David Boddie 
    david at boddie.org.uk
       
    Fri May 22 01:11:24 BST 2009
    
    
  
On Mon, 18 May 2009 14:26:59 +0200, Kermit wrote:
> i've a big QString to write in a QFile
>
> i use this syntaxe :
> newFile=QFile("newFile.txt")
> if not newFile.open(QFile.WriteOnly | QFile.Text):
>     print "erreur fichier"
> else:
>     newFile.writeData(myStr)
>
> newFile.close()
>
>
> it's ok when  i parse and write a little texte file ( 4Mo ) nut with final
> file ( 60 Mo), the file is create but not write
>
> finction return -1 and the file is 0 Ko
Is there enough space on the device for the file?
David
    
    
More information about the PyQt
mailing list