Results 1 to 2 of 2

Thread: set content(&file)

  1. #1
    Join Date
    Jan 2010
    Posts
    28
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default set content(&file)

    Is it compulsary to to specify if(!document.setContent(&file)) while reading?

    if(!document.if(!document.setContent(&file))(&file ))

  2. #2
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: set content(&file)

    Are you asking about if () or about setContent()? setContent() is necessary as it sets your file contents to the dom document. And you don't have to use if but how you will know then that the file is not XML or is not well-formed XML?
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

Similar Threads

  1. How to modify the content of text file
    By grsandeep85 in forum Qt Programming
    Replies: 3
    Last Post: 31st July 2009, 10:23
  2. Replies: 1
    Last Post: 17th July 2009, 08:22
  3. Replies: 0
    Last Post: 3rd June 2009, 04:26
  4. Saving QLabel content in a file
    By Caius Aérobus in forum Newbie
    Replies: 1
    Last Post: 29th October 2008, 17:03
  5. QT4 - get content of a QAbstractItemModel
    By incapacitant in forum Newbie
    Replies: 4
    Last Post: 18th March 2006, 06:23

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.