Scrollbar alignment for QTableView
-
[quote author="Volker" date="1326290126"]
[quote author="t3chNo" date="1326289687"]Take a look at QItemDelegate.[/quote]Sorry, but this is complete nonsense. The item delegate class deal with single items, but not with the view as a whole.[/quote]
Sorry, my bad. I misunderstand the question.
[quote author="TonyR" date="1326284470"]How I can put vertical scrollbar on left side of QTableView[/quote]Maybe putting QTableView in a QScrollArea solves your problem.
-
[quote author="t3chNo" date="1326290419"]
Maybe putting QTableView in a QScrollArea solves your problem.[/quote]All item view classes are subclasses of QAbstractScrollArea. Putting a scroll area into a scroll area doesn't look like a decent solution for me.
-
[quote author="Volker" date="1326290594"]
[quote author="t3chNo" date="1326290419"]
Maybe putting QTableView in a QScrollArea solves your problem.[/quote]All item view classes are subclasses of QAbstractScrollArea. Putting a scroll area into a scroll area doesn't look like a decent solution for me.[/quote]
You can change QScrollArea's layout direction to RightToLeft. This way, scroll bar is shown on left side of the widget. Then put QTableView in QScrollArea and change the QTableView's layout direction to LeftToRight.