Results 1 to 4 of 4

Thread: Fill QTableWidget and refresh it with button

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Dec 2014
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Fill QTableWidget and refresh it with button

    I have push button that connect with this slot
    Qt Code:
    1. ui.tableWidget->clear();
    2. ui.tableWidget->setRowCount(0);
    3. ui.tableWidget->setColumnCount(0);
    4. filltable();
    To copy to clipboard, switch view to plain text mode 
    Where filltable is function to populate QTableWidget. First populate in window is perfect. But when I push button, clear data and try repopulate table this is what i get : First populate - ok CzIWxUt.png after press pushButton aBEoLd7.png it's shift images. i don't understand why
    Last edited by Doppelganger; 18th December 2014 at 13:28.

Similar Threads

  1. Replies: 6
    Last Post: 14th March 2018, 20:25
  2. Replies: 1
    Last Post: 26th April 2012, 10:36
  3. Replies: 1
    Last Post: 21st April 2011, 09:36
  4. Replies: 2
    Last Post: 14th January 2011, 15:09
  5. QTableWidget and stop refresh
    By Darthspawn in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2010, 15:37

Tags for this Thread

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.