Results 1 to 11 of 11

Thread: QTableWidget fails to display column/row content correctly after MainWindow resize.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2020
    Posts
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTableWidget fails to display column/row content correctly after MainWindow resiz

    Solution:

    QTableWidget::resizeEvent(event);

    instead of QWidget::resizeEvent(event);

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

    d_stranz (27th October 2020)

  3. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QTableWidget fails to display column/row content correctly after MainWindow resiz

    Solution:

    QTableWidget::resizeEvent(event);

    instead of QWidget::resizeEvent(event);
    Ah. Sometimes you don't notice the obvious things until they punch you in the nose. Thanks for posting your solution.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Replies: 15
    Last Post: 29th January 2020, 14:52
  2. Replies: 1
    Last Post: 20th November 2015, 09:12
  3. QListWidget: Resize to it's content
    By Fred in forum Qt Programming
    Replies: 4
    Last Post: 8th July 2014, 11:01
  4. Widget does not resize correctly
    By Demandred in forum Newbie
    Replies: 4
    Last Post: 16th April 2010, 12:06
  5. Replies: 4
    Last Post: 23rd September 2008, 12:23

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.