Hi Mojmir,
My understanding is that qtableView uses a (private) layout to manage the
qheaderview, scroll bars, etc. Unfortunately, the docs don't spell this
out.
One workaround is to
- set the top content margin of the viewport to the height of your button
bar. (setContentMargins)
- create th
On 16 April 2014 22:40, Mojmír Svoboda wrote:
> Hello,
>
> how to extend a qtableview with a custom button bar? so that the button
> bar is above the qtableview.
>
> i tried something like this, but it does not feel right:
> struct MyTableView : QTableView
> and in the constructor do
> 1) layout =
Hello,
how to extend a qtableview with a custom button bar? so that the button
bar is above the qtableview.
i tried something like this, but it does not feel right:
struct MyTableView : QTableView
and in the constructor do
1) layout = new QVBoxLayout
2) setLayout(layout)
3) mybuttonbar = new ...