Results 1 to 11 of 11

Thread: Select columns from a QTableWidget

Threaded View

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

    Default Re: Select columns from a QTableWidget

    Quote Originally Posted by toglez View Post
    This is of course inside the function openFile(). This line instructs the program to update the global dictionary {updVars} in its element "SelectedColumns" (which is a Python list) with any - if any - selected columns of the table tbl_OpenFile.
    As you wrote earlier, you first invoke openFile(), then you select columns and finally you call showList(). The problem is that you check what columns were selected in openFile(), that is before you select them. Move that line to showList() and it should work.

    Do you really need that global dictionary?

  2. The following user says thank you to jacek for this useful post:

    toglez (7th October 2007)

Similar Threads

  1. QTableWidget - images in columns
    By bruccutler in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 18:28
  2. QTableWidget columns to expand to window size
    By bruccutler in forum Newbie
    Replies: 1
    Last Post: 13th April 2007, 16:02
  3. Select None in QTableWidget
    By Rayven in forum Qt Programming
    Replies: 2
    Last Post: 9th June 2006, 14:10
  4. Maximize columns on QTableWidget
    By marcelrc in forum Newbie
    Replies: 1
    Last Post: 21st May 2006, 15:34
  5. Replies: 6
    Last Post: 5th March 2006, 21: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
  •  
Qt is a trademark of The Qt Company.