Results 1 to 7 of 7

Thread: QTableWidget view problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Join Date
    Dec 2008
    Location
    Istanbul, TURKEY
    Posts
    537
    Thanks
    14
    Thanked 13 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Default Re: QTableWidget view problem

    I have one more question that I just encountered that is;

    I want to setTextAlignment for the items in the table such as the following:

    Qt Code:
    1. for( int row=0; ...)
    2. {
    3. for(int column=0;...)
    4. {
    5.  
    6. myTableWidget.item ( row, column ).setTextAlignment(Qt::AlignCenter);
    7.  
    8. }
    9.  
    10. }
    To copy to clipboard, switch view to plain text mode 

    it only aligns the first - table(0,0) - item but not the rest.
    What could be the problem?

    Thanks in advance
    Last edited by jpn; 15th March 2009 at 10:59. Reason: missing [code] tags

Similar Threads

  1. Problem inserting in QTableWidget
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 00:10
  2. problem with tree view
    By boss_bhat in forum Newbie
    Replies: 4
    Last Post: 4th June 2006, 21:03
  3. Replies: 6
    Last Post: 20th April 2006, 10:23
  4. View update problem
    By prakash in forum Qt Programming
    Replies: 6
    Last Post: 17th March 2006, 10:13
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.