Qt-interest Archive, July 2007
Bug in insertColumn() in QTableWidget
Message 1 in thread
I have a problem with QTableWidget (Qt 4.3).
I hide some columns.
Than, if I call insertRow(n), where n < columnCount(), there's an
assertion and the table is all wrong!
This doesn't appen if I don't hide the columns...
It's a bug?
--
[ signature omitted ]
Message 2 in thread
On Monday 09 July 2007 10:59:47 Fabio Dago wrote:
> I have a problem with QTableWidget (Qt 4.3).
>
> I hide some columns.
> Than, if I call insertRow(n), where n < columnCount(), there's an
> assertion and the table is all wrong!
>
> This doesn't appen if I don't hide the columns...
>
> It's a bug?
When you call insertRow(n), is n < rowCount()?
Do you have a small example to reproduce it?
-Benjamin Meyer
--
[ signature omitted ]
Message 3 in thread
>On Monday 09 July 2007 10:59:47 Fabio Dago wrote:
>> I have a problem with QTableWidget (Qt 4.3).
>>
>> I hide some columns.
>> Than, if I call insertRow(n), where n < columnCount(), >there's an
>> assertion and the table is all wrong!
>>
>> This doesn't appen if I don't hide the columns...
>>
>> It's a bug?
>
>When you call insertRow(n), is n < rowCount()?
>
>Do you have a small example to reproduce it?
>
>-Benjamin Meyer
>
QTableWidget* table = new QTableWidget(this);
table->setRowCount(3);
table->setColumnCount(5);
table->hideColumn(0);
table->insertColumn(0); //ASSERT and table "wrong"
QTableWidget* table = new QTableWidget(this);
table->setRowCount(3);
table->setColumnCount(5);
table->hideColumn(0);
table->insertColumn(1); //ASSERT and table right
QTableWidget* table = new QTableWidget(this);
table->setRowCount(3);
table->setColumnCount(5);
table->insertColumn(0); //NO ASSERT
QTableWidget* table = new QTableWidget(this);
table->setRowCount(3);
table->setColumnCount(5);
table->hideColumn(0);
table->insertColumn(5); //NO ASSERT
------------------------------------------------------
Leggi GRATIS le tue mail con il telefonino i-mode? di Wind
http://i-mode.wind.it/
--
[ signature omitted ]
Message 4 in thread
On Wednesday 11 July 2007 08:40:09 fabiodago@xxxxxxxxx wrote:
> #include <QtGui>
> int main(int argc, char *argv[])
> {
> QApplication app(argc, argv);
> QTableWidget* table = new QTableWidget(this);
> table->setRowCount(3);
> table->setColumnCount(5);
> table->hideColumn(0);
> table->insertColumn(0); //ASSERT and table "wrong"
> }
Thanks, I have created a task out of that so it will get fixed.
-Benjamin Meyer
--
[ signature omitted ]