Results 1 to 2 of 2

Thread: Displaying data in QTable

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

    Default Displaying data in QTable

    hi,
    i am using Qtable in my application and display data read from the file into its cell .

    Now my problem is that the string data is displayed at the left corner of the cell while numerical data is displayed at the right corner.

    but i want the to appear at the same place.
    How can i do this?????????

    regards

    Raghvendra

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Displaying data in QTable

    Try reimplementing QTableItem::alignment(). As the docs state, the default implementation aligns numbers to the right and any other text to the left.
    J-P Nurmi

Similar Threads

  1. displaying Text in QTAble dynamically
    By raghvendramisra in forum Qt Programming
    Replies: 8
    Last Post: 31st August 2007, 10:47
  2. Guidance for displaying "updating" data!
    By Humble in forum Qt Programming
    Replies: 1
    Last Post: 3rd July 2007, 13:35
  3. QTable - Data Base Problem
    By esq in forum Qt Tools
    Replies: 9
    Last Post: 27th May 2007, 23:08
  4. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.