Version: (using KDE KDE 3.4.0) Installed from: Compiled From Sources I encounter a bug with Swallow layout for KDialogBase. I don't have this bug with other layouts (Page, Tabbed...). Here is a code snippet: NewBasketDialog::NewBasketDialog(QWidget *parent) : KDialogBase(KDialogBase::Swallow, i18n("New Basket"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, parent, /*name=*/0, /*modal=*/true, /*separator=*/true) { QWidget *page = new QWidget(this); setMainWidget(page); QVBoxLayout *topLayout = new QVBoxLayout(page, /*margin=*/0, spacingHint()); m_templates = new QIconView(page); topLayout->addWidget(m_templates); m_templates = new QIconView(page); topLayout->addWidget(m_templates); m_templates = new QIconView(page); topLayout->addWidget(m_templates); m_templates = new QIconView(page); topLayout->addWidget(m_templates); } The 4 new QIconView creations are to populate the dialog with big widgets. Now, call dialog.exec() and the dialog is NOT CENTERED. In fact it's somewhat centered on its parent but as if the dialog were empty... The x and y position of the dialog seems to be computed during the setMainWidget(page) and if page change its size afterward KDialogBase doesn't care. A workarround is to move the line "setMainWidget(page);" at the END of the constructor, and then the dialog is well centered depending on its real content. BTW, the 3 first lines of this constructor and took from the documentation, so every programer that copy/paste those examples will encounter the bug.
Sebastion can you please confirm if this is still an issue in KDE 5 series?
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!