I have one more question that I just encountered that is;
I want to setTextAlignment for the items in the table such as the following:
for( int row=0; ...)
{
for(int column=0;...)
{
myTableWidget.item ( row, column ).setTextAlignment(Qt::AlignCenter);
}
}
for( int row=0; ...)
{
for(int column=0;...)
{
myTableWidget.item ( row, column ).setTextAlignment(Qt::AlignCenter);
}
}
To copy to clipboard, switch view to plain text mode
it only aligns the first - table(0,0) - item but not the rest.
What could be the problem?
Thanks in advance
Bookmarks