Results 1 to 2 of 2

Thread: Small problem

  1. #1
    Join Date
    Jul 2010
    Posts
    71
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Small problem

    Code here Print X, Only once.
    Does not complete the print loop.

    Qt Code:
    1. int x=0;
    2. for(int i=0 ; i<5 ; i++)
    3. {
    4. x++;
    5. ui->textBrowser->setText(resultString.setNum(x));
    6. }
    To copy to clipboard, switch view to plain text mode 

  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: Small problem

    I guess you want that (not sure since your question is hard to understand.)
    Qt Code:
    1. ui->textBrowser->setText(ui->textBrowser->toPlainText() + resultString.setNum(x));
    To copy to clipboard, switch view to plain text mode 
    Last edited by Lykurg; 23rd July 2010 at 21:54. Reason: updated contents

Similar Threads

  1. Small useful QT application
    By Raydan in forum Newbie
    Replies: 2
    Last Post: 28th November 2009, 12:23
  2. Small Libraries
    By porfirio in forum Installation and Deployment
    Replies: 7
    Last Post: 13th August 2009, 10:16
  3. i have a problem in a very small application?
    By coder1985 in forum Qt Programming
    Replies: 3
    Last Post: 22nd November 2007, 17:09
  4. A small 2D game
    By Nyphel in forum Newbie
    Replies: 3
    Last Post: 1st May 2007, 17:16
  5. Whats This box too small
    By bruccutler in forum Qt Programming
    Replies: 5
    Last Post: 30th March 2007, 23:52

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.