Can't set column fixed width(QTableWidget)
-
wrote on 23 Oct 2018, 05:59 last edited by
I want to prevent user for resizing column width, but i for some strange reason don't have any functions which do that. From google i found some solutions, but none of that function is available for me:
->setSectionResizeMode (QHeaderView::Fixed);
don't exist
->setResizeMode();
same.
I really can't understand what's going on...
-
I want to prevent user for resizing column width, but i for some strange reason don't have any functions which do that. From google i found some solutions, but none of that function is available for me:
->setSectionResizeMode (QHeaderView::Fixed);
don't exist
->setResizeMode();
same.
I really can't understand what's going on...
wrote on 23 Oct 2018, 06:04 last edited by Ratzz@Engelard said in Can't set column fixed width(QTableWidget):
->setResizeMode();
Is obsolete.
U need to use
setSectionResizeMode
http://doc.qt.io/qt-5/qheaderview-obsolete.html#setResizeMode -
wrote on 23 Oct 2018, 07:10 last edited by
Remember to
#include <QHeaderView>
, it does not come with the view headers (and you shouldn't rely on them anyway)
1/3