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);
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
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