Results 1 to 8 of 8

Thread: display in text browser

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2010
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy display in text browser

    I am noob in QT as well as C++. Rite now I am trying to display value of iter->second but its not working. Here is the small piece of code
    Qt Code:
    1. multimap<string, string>::iterator iter;
    2.  
    3. iter = findFile.find(fileToFind);
    4.  
    5. if ( iter != findFile.end() )
    6. {
    7. do
    8. {
    9. string temp = iter->second;
    10. QString str;
    11. str.fromStdString(temp);
    12. ui->textBrowser->setText(str);;
    13. cout << iter->first << " [DIR] " << iter->second << endl;
    14. iter++;
    15. }while (iter != findFile.upper_bound ( fileToFind ) );
    16. }
    To copy to clipboard, switch view to plain text mode 
    Please help me out
    Last edited by mecrazycoder; 12th December 2010 at 20:13. Reason: for adding full code

Similar Threads

  1. Demo Browser doesn't display jpeg, gif
    By dmt0 in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 17th January 2011, 12:59
  2. Demo Browser cannot display jpeg or gif
    By stmk in forum Newbie
    Replies: 10
    Last Post: 23rd October 2010, 17:56
  3. I don't get expected output in text browser
    By NewLegend in forum Qt Programming
    Replies: 14
    Last Post: 25th July 2010, 10:21
  4. Problem while using Text browser
    By yuvaraj.yadav in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2009, 14:41
  5. Text Browser Link Question
    By taylor34 in forum Qt Programming
    Replies: 2
    Last Post: 20th June 2006, 20:54

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.