Results 1 to 2 of 2

Thread: QFile &QFile::operator= is private

  1. #1
    Join Date
    Aug 2010
    Posts
    58
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QFile &QFile::operator= is private

    Hi, im trying to do it like this:
    Qt Code:
    1. m_file = File(fileName);
    To copy to clipboard, switch view to plain text mode 
    basically "File" inherits QFile but it fails, any idea wut to do?

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

    Default Re: QFile &QFile::operator= is private

    Qt Code:
    1. File *m_file;
    2. //...
    3. m_file = new File(fileName);
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QFile map
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 21st February 2011, 08:17
  2. Information regarding QFile
    By Raghaw in forum Qt Programming
    Replies: 2
    Last Post: 12th October 2010, 16:32
  3. How to use the QFile.map
    By xtfllbl in forum Qt Programming
    Replies: 1
    Last Post: 27th September 2009, 08:25
  4. QFile using utf-8
    By Mr.QT in forum Qt Programming
    Replies: 3
    Last Post: 30th April 2009, 12:17
  5. Replies: 2
    Last Post: 20th May 2006, 12:45

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.