Results 1 to 3 of 3

Thread: 'QFile' Header File Problem

  1. #1
    Join Date
    Apr 2009
    Posts
    24
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default 'QFile' Header File Problem

    Hello , I wana use "QFile" Class...whose Header File i use in .cpp file..........
    because i face like this error

    error: `QFile' undeclared (first use this function)

    thanks in advance

  2. #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' Header File Problem

    Qt Code:
    1. #include <QFile>
    To copy to clipboard, switch view to plain text mode 
    and in your *.pro
    Qt Code:
    1. CONFIG += qt
    2. QT += core
    To copy to clipboard, switch view to plain text mode 
    Normally not necessary but eventaly...

    Maybe you wanna show us some code in which the error occurs.

  3. #3
    Join Date
    Apr 2009
    Posts
    24
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: 'QFile' Header File Problem

    thank you very much

Similar Threads

  1. QTcpSocket problem in file transfer
    By omprakash in forum Qt Programming
    Replies: 6
    Last Post: 25th January 2010, 08:18
  2. namespace problem with Qt designer .ui file
    By ttvo in forum Qt Programming
    Replies: 0
    Last Post: 28th April 2009, 15:31
  3. AVOIDING mutiple inclusion of header file???
    By pratik in forum General Programming
    Replies: 4
    Last Post: 10th July 2007, 14:09
  4. Related to header file
    By merry in forum Qt Programming
    Replies: 2
    Last Post: 10th May 2007, 13:03
  5. QHttp "PUT METHOD" QT Problem File Upload. RFC 2616
    By patrik08 in forum Qt Programming
    Replies: 7
    Last Post: 25th October 2006, 22:02

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.