Set minimum column width to QTableView.
Unsolved
General and Desktop
-
Hello
I have QTableView with model and delegate. I have several columns. So I can resize them by mouse, But now I need to set a minimum width for the first column. So this column's width shouldn't be less then some number(100) for example. How is this possible?
thanks. -
-
@mrjj
thanks for answer, but it's not what I want, As I guess it sets default width to the column, which can be resized but I need the minimum width So that column couldn't be resized to be smaller than this value. I need something like setMinimumColumnWidth(int column, int value) or something like that. -
Hi,
You can try with the QHeaderView::minimumSectionSize property