Re: [Interest] extending qtableview with button bar with inheritance

2014-04-30 Thread Tony Rietwyk
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

Re: [Interest] extending qtableview with button bar with inheritance

2014-04-30 Thread Sze Howe Koh
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 =

[Interest] extending qtableview with button bar with inheritance

2014-04-16 Thread Mojmír Svoboda
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 ...