Results 1 to 8 of 8

Thread: Creating a Tmporary file with random number ..

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    10
    Thanked 80 Times in 74 Posts

    Default Re: Creating a Tmporary file with random number ..

    hmmm....

    I was not able to find any other method using Qt 3. Some expert here might know a better way. Wait for their replies

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Creating a Tmporary file with random number ..

    You can create a "pseudorandom" filename based on current time and process id and then create a file with that name.

  3. #3
    Join Date
    Mar 2006
    Posts
    53
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    12
    Thanked 1 Time in 1 Post

    Talking Re: Creating a Tmporary file with random number ..

    Thank you wysota,

    I used getpid() to get the process id, and used the same.

    -

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.