A few Questions about QTableView
-
I implemented a QTableView with a Model and there are some stupid Things i want to fix. At the Moment i dont know how to do it. But i will show you.
First. I have 6 Columns configured in my Model, but with some Reason there is a small Column at the Start when i put Data in.
You see what i mean? Before the Date Column.
Some other Thing im disappointed of is when i select a Row. The Header looks then disgusting.
How can i change that?
And the last Thing i want to ask. At the Moment the Cells are kind of fixed. As Example, when in put to much Tags in my Column Tags then the Cell doesnt grow. It just cut off the Content. Is there a Possiblity to prevent that or make the Content of that Row visible?
I hope you know what i mean.
-
@Fuel-0 said in A few Questions about QTableView:
How can i change that?
It's the vertical header, you can hide them, either programatically or in the designer.
At the Moment the Cells are kind of fixed
See QTableView::resizeColumnsToContents() and e.g. QHeaderView::sectionResizeMode()
-
Ok thanks i fixed that. The only Thing thats left is the Thing about the QHeaderView. Why it looks so stupid after i select a Row? Can i kind of style the QHeaderView when a Row is selected? I just want no Effect on the QHeaderView. My wish is that it just looks like its unselected.
-
Ok thanks i fixed that. The only Thing thats left is the Thing about the QHeaderView. Why it looks so stupid after i select a Row? Can i kind of style the QHeaderView when a Row is selected? I just want no Effect on the QHeaderView. My wish is that it just looks like its unselected.