tableWidget->setColumnCount(5);
tableWidget->setRowCount(6);
for(int i=0;i<6;i++)
{
for(int j=0;j<5;j++)
{
tableWidget->setItem(i, j, aItem );
}
}
tableWidget->setSpan(1,2,1,2);
tableWidget->setSpan(2,3,1,2);
int aSpan = tableWidget->columnSpan(1,2);
aSpan = tableWidget->columnSpan(2,3); :( aSpan is set to 1, which is incorrect.
QTableWidget *tableWidget = new QTableWidget();
tableWidget->setColumnCount(5);
tableWidget->setRowCount(6);
QTableWidgetItem *aItem = new QTableWidgetItem("Test");
for(int i=0;i<6;i++)
{
for(int j=0;j<5;j++)
{
tableWidget->setItem(i, j, aItem );
}
}
tableWidget->setSpan(1,2,1,2);
tableWidget->setSpan(2,3,1,2);
int aSpan = tableWidget->columnSpan(1,2);
aSpan = tableWidget->columnSpan(2,3); :( aSpan is set to 1, which is incorrect.
To copy to clipboard, switch view to plain text mode
Bookmarks