Results 1 to 3 of 3

Thread: Inserting Integer Values to table.

  1. #1
    Join Date
    Feb 2007
    Posts
    22
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Inserting Integer Values to table.

    Hi,

    Can anyone please tell me how to give integer values to a tables cell.

    What function are we to use there?

    setText is QString and giving integer gives a Error.

    So how to set it.

    Regards
    Kenny

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Inserting Integer Values to table.

    Use QString::number() to convert that integer to QString.

    PS. Your question has nothing to do with Qt Designer, so you shouldn't post it in Qt Designer section.

  3. #3
    Join Date
    Feb 2007
    Posts
    22
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Inserting Integer Values to table.

    Sorry for posting it in the wrong Place

Similar Threads

  1. Updating Table Values.
    By kenny_isles in forum Newbie
    Replies: 14
    Last Post: 13th February 2007, 11:04
  2. displaying any table on a qdatatable
    By Philip_Anselmo in forum Newbie
    Replies: 4
    Last Post: 9th May 2006, 22:12
  3. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50
  4. adding in values to table
    By therealjag in forum Qt Programming
    Replies: 2
    Last Post: 9th February 2006, 16:05

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.