I'm creating a table with a qt widget. My widget displays the table only if it has been filled with information. in qt 4.8 it displays without error the table, however in qt5.1.0 sometimes it displays the table and sometimes it doesn't.

The inheritance relation in my widget is

Qt Code:
  1. class TableWidget : public QTableWidget
To copy to clipboard, switch view to plain text mode 

Note: There is no change in code nor in the qml code, nor in the qtWidget code, only the lbraries of qt change from 4.8 to 5.1

Can someone help to shed some light into the behavior of my widget in Qt5.1.?

Thank you in advance for your help.

Ulises Vega