3nc31
24th October 2007, 00:45
Hi!!!!
I have a table:
QTableWidget *table;
table = new QTableWidget;
table->setSelectionMode(QAbstractItemView::SingleSelectio n);
table->setSelectionBehavior(QAbstractItemView::SelectRows );
table->setEditTriggers(QAbstractItemView::NoEditTriggers) ;
table->setColumnCount(2);
table->setHorizontalHeaderLabels(labels);
table->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
table->horizontalHeader()->resizeSection(1, 180);
But the table's columns always are static, for example if I insert a text bigger than cell's space it's showed cut!!!
What can I do for the table's columns can move and adjust to the text??
Thanks!!!
I have a table:
QTableWidget *table;
table = new QTableWidget;
table->setSelectionMode(QAbstractItemView::SingleSelectio n);
table->setSelectionBehavior(QAbstractItemView::SelectRows );
table->setEditTriggers(QAbstractItemView::NoEditTriggers) ;
table->setColumnCount(2);
table->setHorizontalHeaderLabels(labels);
table->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
table->horizontalHeader()->resizeSection(1, 180);
But the table's columns always are static, for example if I insert a text bigger than cell's space it's showed cut!!!
What can I do for the table's columns can move and adjust to the text??
Thanks!!!