Re: [Interest] QSplitter + QScrollArea + QWidgetStack issues

2014-03-28 Thread maitai
Hello, I was faced with a similar exercice and solved if that way: void Util::setDialogSize(QDialog *dialog) { QDesktopWidget * desktopWidget = QApplication::desktop(); QRect screenRect = desktopWidget-screenGeometry(); dialog-setMaximumHeight(screenRect.height()-50);

Re: [Interest] QSplitter + QScrollArea + QWidgetStack issues

2014-03-28 Thread Scott Aron Bloom
Subject: Re: [Interest] QSplitter + QScrollArea + QWidgetStack issues Hello, I was faced with a similar exercice and solved if that way: void Util::setDialogSize(QDialog *dialog) { QDesktopWidget * desktopWidget = QApplication::desktop(); QRect screenRect = desktopWidget-screenGeometry

[Interest] QSplitter + QScrollArea + QWidgetStack issues

2014-03-27 Thread Scott Aron Bloom
I have a dialogbox, with a vertical QSplitter as the top level layout.. on the left goes a QTreeWidget, on the right a QScrollArea Inside the QScrollArea, there is a QWidgetStack in which multiple widgets are stacked. Here is my problem, when it first comes up, I want the right hand side, to