View Single Post
Posts: 341 | Thanked: 57 times | Joined on Nov 2009
#3
Alright, well I tried adding a QScrollArea for now and adding on the widgets on the left side of the screen into that, and then adding that to the same QDialog .. But the situation has gotten worse now ..

Firstly, here's the code I was using (only the ending portion relating to adding widgets to layouts, etc ..):

Code:
mainSaveQualityModeRadioButtonsLayout = new QHBoxLayout();

    mainSaveQualityModeRadioButtonsLayout->addWidget(mainSaveUseDefaultSaveQualityRadioButton);
    mainSaveQualityModeRadioButtonsLayout->addWidget(mainSaveUseCustomSaveQualityRadioButton);

    mainSaveSliderLayout = new QHBoxLayout();
    mainSaveSliderLayout->addWidget(mainSaveQualitySlider);
    mainSaveSliderLayout->addWidget(mainSaveSliderValueLabel);

    mainSaveButtonsLayout = new QVBoxLayout();

    mainSaveButtonsLayout->addWidget(mainSaveFileNameText);
    mainSaveButtonsLayout->addWidget(mainSaveLocationButton);
    mainSaveButtonsLayout->addWidget(mainSaveFormatButton);
    mainSaveButtonsLayout->addWidget(mainSaveQualityModeLabel);
    mainSaveButtonsLayout->addLayout(mainSaveQualityModeRadioButtonsLayout);
    mainSaveButtonsLayout->addLayout(mainSaveSliderLayout);
    mainSaveButtonsLayout->addWidget(mainSaveMakeDefaultSaveSettingCheckBox);

    mainSaveScrollArea = new QScrollArea();
    mainSaveScrollArea->setLayout(mainSaveButtonsLayout);

    mainSaveMainButtonLayout = new QVBoxLayout();
    mainSaveMainButtonLayout->addWidget(mainSaveButton);

    mainSaveOverallLayout = new QHBoxLayout();
    mainSaveOverallLayout->addWidget(mainSaveScrollArea);
    mainSaveOverallLayout->addLayout(mainSaveMainButtonLayout);


    mainSaveDialog = new QDialog();
    mainSaveDialog->setLayout(mainSaveOverallLayout);

    mainSaveDialog->show();
And here is the result I achieved, with no scroll bar in view ..



Any suggestions .. ?