Results 1 to 12 of 12

Thread: Read values from text file and display it in lineditbox

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Read values from text file and display it in lineditbox

    if (!file.open(QIODevice::ReadOnly))

    There shouldn't be negation.. The if code is not executing !!

    Also you can use file.readAll() to read all the text

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

    kulsekarr (26th June 2012)

Similar Threads

  1. Replies: 5
    Last Post: 26th June 2012, 07:39
  2. How to display text from a file to a text browser
    By ironmantis7x in forum Newbie
    Replies: 11
    Last Post: 14th June 2012, 15:23
  3. Replies: 3
    Last Post: 17th March 2010, 10:31
  4. How to read rtf file and display it?
    By sunnysun520 in forum Qt Programming
    Replies: 2
    Last Post: 16th May 2009, 14:48
  5. How to read text only as it is from file
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 9th August 2007, 08:47

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.