Results 1 to 9 of 9

Thread: Instantiate QTableWidget dynamically during runtime

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Instantiate QTableWidget dynamically during runtime

    Qt Code:
    1. matrixTable->setHorizontalHeaderItem(row, headerItem);
    2. matrixTable->setVerticalHeaderItem(row, headerItem);
    To copy to clipboard, switch view to plain text mode 
    And this is also buggy! if matrix.getRows() > matrix.getColums()

  2. #2
    Join Date
    Feb 2010
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    18

    Default Re: Instantiate QTableWidget dynamically during runtime

    I believe the issue is somewhere else because if I delete all the instructions within updateTable, the application still crashes. But If the Coordinator doesn't call updateTable, the application runs ok...

    Thank you so much for your help, I really appreciate...

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Instantiate QTableWidget dynamically during runtime

    Then how the Coordinator is calling the member function of MatrixDialog. Have you check the pointer?

  4. The following user says thank you to Lykurg for this useful post:

    ouekah (21st March 2010)

  5. #4
    Join Date
    Feb 2010
    Posts
    61
    Qt products
    Qt4
    Platforms
    MacOS X
    Thanks
    18

    Default Re: Instantiate QTableWidget dynamically during runtime

    I solved the issue finally ! It was not a Qt issue, but a pointer issue ...(shame on me) ^^

Similar Threads

  1. Instantiate objects only having their class name
    By victor.fernandez in forum Qt Programming
    Replies: 1
    Last Post: 30th June 2009, 16:22
  2. wanted to re-instantiate two classes from a class
    By salmanmanekia in forum General Programming
    Replies: 2
    Last Post: 22nd August 2008, 08:59
  3. Please instantiate the QApplication object first
    By zorro68 in forum Qt Programming
    Replies: 7
    Last Post: 25th October 2007, 12:20
  4. QAxContainer: can't instantiate control
    By fabien in forum Qt Programming
    Replies: 0
    Last Post: 24th July 2007, 11:22
  5. Dynamically sized QTableWidget
    By therealjag in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2006, 21:06

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.