Results 1 to 4 of 4

Thread: Qfile Question - hard coded path

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Qfile Question - hard coded path

    Get all drives via QDir::drives(), then "search" in all drives for a folder TemperatureReading using QDir::cd() (return value) and then check for the file. You can also use QFile::exists() with a constructed path directly.

  2. The following user says thank you to Lykurg for this useful post:

    fortyhideout12 (27th September 2010)

Similar Threads

  1. QFile open question
    By chenxuelian in forum Qt Programming
    Replies: 9
    Last Post: 2nd April 2010, 10:00
  2. Replies: 8
    Last Post: 17th October 2009, 08:10
  3. Include path question
    By MarkoSan in forum Qt Programming
    Replies: 3
    Last Post: 28th September 2009, 13:21
  4. Qfile question
    By dreamer in forum Qt Programming
    Replies: 1
    Last Post: 3rd May 2008, 15:32
  5. Replies: 16
    Last Post: 4th October 2007, 22:04

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.