Results 1 to 3 of 3

Thread: QListWidget string increment

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2010
    Posts
    100
    Qt products
    Qt3 Qt4
    Thanks
    38
    Thanked 1 Time in 1 Post

    Default Re: QListWidget string increment

    hello sir thank you i solved the problem.. it was a very silly mistake kfast was the item number but i incremented ksast i think thats why there was this error. I used the code from some previous post which i found on this forum to auto create incrementing names with numbers. This is what i did now.

    for( int i=0 ; i<300; i++ )
    {
    defineparameters.append(QString("Thermo Couple_%1").arg(i));
    }
    Qt Code:
    1. ParamsLW->insertItem(kfast,listWidgetdataat(j)); // kfast =0;
    2. ksast++; // supposed to be kfast++;
    To copy to clipboard, switch view to plain text mode 

    thank you sir problem is solved.
    Last edited by nagabathula; 20th December 2010 at 10:27.

Similar Threads

  1. Increment and Decrement Program
    By priya in forum Qt Programming
    Replies: 3
    Last Post: 3rd February 2010, 14:27
  2. QSqlQuery: Getting an Auto Increment value
    By Al_ in forum Qt Programming
    Replies: 3
    Last Post: 23rd December 2009, 23:15
  3. std:string how to change into system:string?
    By yunpeng880 in forum Qt Programming
    Replies: 1
    Last Post: 14th April 2009, 09:51
  4. Replies: 4
    Last Post: 9th May 2008, 18:02
  5. Custom spinner - fast increment/decrement
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2007, 18:53

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.