Hi, I'm working on WTableView and I want to set its size to be 100% of its parent area, but what I got is table with width = 100% but stretched height. I've tried the following ways, but nothing succeeded: - layout Manager with stretch: container( vBoxLayout(tableView, pushButton) ) - setMaximumSize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage)); - resize(WLength(100, WLength::Percentage), WLength(100, WLength::Percentage)); - setHeight(WLength(100, WLength::Percentage)); - I also used template: <div> ${tbvTable}</div> <div>${btnButton} </div> <div style="max-height: 100%; height: 100%;"> ${tbvTable}</div> <div>${btnButton} </div>
As I noticed that the only way to prevent fetch all record up-to the web page is to set the tableview size manually (by using "resize" for example). I'm using: - WBootstrapTheme - Witty 3.3.0.1 - Qt Creator 2.8.1 Based on Qt 5.1.1 (GCC 4.6.1, 64 bit) - Linux Mint Thanks ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest