Back to index

fet  5.18.0
Functions
tablewidgetupdatebug.h File Reference
#include <QTableWidget>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void tableWidgetUpdateBug (QTableWidget *table)

Function Documentation

void tableWidgetUpdateBug ( QTableWidget *  table)

Definition at line 25 of file tablewidgetupdatebug.cpp.

{
       //this is for a bug appeared in Qt 4.5.3. The bug seems to be solved in Qt subsequent versions.

       QString buggy1=QString("4.5.3");
       QString crtVersion=qVersion();
       if(crtVersion==buggy1){
              if(table->viewport())
                     table->viewport()->update();
       }
}