Results 1 to 14 of 14

Thread: QTableWidget+QTableWidgetItem trouble

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Jul 2007
    Location
    BY.Minsk
    Posts
    90
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 1 Time in 1 Post

    Default Re: QTableWidget+QTableWidgetItem trouble

    How to make so that last column it was leveled by a right edge of the table ?

    Qt Code:
    1. void HSM::setTableData()
    2. {
    3. sTskInfoGUI sTaskGUI;
    4. db_work db;
    5.  
    6. sTaskGUI = db.GetTaskToGUI();
    7. db.CloseDB();...
    8. ...
    9. ...
    10. itemRootPatch->setText(sTaskGUI.cRootPath.at(row));
    11. ui.tableWidget->setItem(row,9,itemRootPatch);
    12. }
    13.  
    14. ui.tableWidget->resizeRowsToContents();
    15. ui.tableWidget->resizeColumnsToContents();
    16.  
    17. }
    To copy to clipboard, switch view to plain text mode 

    Here so my form looks.
    Attached Images Attached Images

Similar Threads

  1. QComboBox in QTableWidget : display troubles.
    By Nyphel in forum Qt Programming
    Replies: 2
    Last Post: 14th October 2007, 00:29
  2. QTableWidget won't sort cellwidgets!!!
    By Arsenic in forum Qt Programming
    Replies: 7
    Last Post: 21st July 2007, 11:41
  3. A QListWidget in a QTableWidget cell ?
    By Nyphel in forum Newbie
    Replies: 4
    Last Post: 11th April 2007, 11:46
  4. QTableWidget (resizing rows, turning off selection, etc.)
    By kiss-o-matic in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2007, 02:57
  5. Problem inserting in QTableWidget
    By DPinLV in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2006, 01:10

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.