Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qtemporaryfile
    Log in to post

    • SOLVED Large incoming data to QByteArray and what to do with it?
      General and Desktop • qbytearray qiodevice qtemporaryfile • • scottnat  

      4
      0
      Votes
      4
      Posts
      777
      Views

      @sierdzio and @jsulm Thank you both for the suggestions. I will work on number 4 with moving of tempfiles or using a QSaveFile.
    • SOLVED QTemporaryFile: close method
      General and Desktop • file qtemporaryfile close • • Mark81  

      8
      0
      Votes
      8
      Posts
      2257
      Views

      @kshegunov I didn't know that function. Thank you very much, I will try it.
    • UNSOLVED QTemporaryFile takes forever
      General and Desktop • qtemporaryfile • • VRonin  

      6
      0
      Votes
      6
      Posts
      1551
      Views

      Why shouldn't it be fast? You only check whether a file exists or not. What QTemporaryFile is doing: it creates a unique file name and ensures nobody else creates one with the same name in the same directory. This, for sure, involves some OS calls to make the creation of a temp file an atomic operation. Else several processes could create and use a temp file with same file name.
    • [SOLVED] QTemporaryFile - strange behavior
      General and Desktop • qtemporaryfile qdirtemppath • • _rth_  

      6
      0
      Votes
      6
      Posts
      1713
      Views

      I have quickly gone through existing bugs reported for QTemporaryFile and nothing related found. So I have created new bug: https://bugreports.qt.io/browse/QTBUG-46156. IMO its better to have a few duplicates, that not reported at all :) BTW, the resize(0) works fine.