[prev in list] [next in list] [prev in thread] [next in thread]
List: kdelibs-bugs
Subject: [frameworks-kio] [Bug 334963] Spawning a KDE file picker dialog via Qt Quick Dialogs fails
From: Shawn Rutledge <s () ecloud ! org>
Date: 2014-10-09 13:19:40
Message-ID: bug-334963-90985-esRF9H4PHt () http ! bugs ! kde ! org/
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=334963
Shawn Rutledge <s@ecloud.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |s@ecloud.org
--- Comment #3 from Shawn Rutledge <s@ecloud.org> ---
Here is the problem:
bool KDEPlatformFileDialogHelper::show(Qt::WindowFlags windowFlags,
Qt::WindowModality windowModality, QWindow *parent)
{
initializeDialog();
m_dialog->setWindowFlags(windowFlags);
m_dialog->setModal(windowModality != Qt::NonModal);
if (windowModality == Qt::NonModal) {
m_dialog->show();
...
The QtQuick FileDialog is window modal by default. That is not a reason to
avoid showing it. Unlike widget-based applications, QtQuick applications
cannot call QDialog::exec(). So the modality is just meant to request the
window manager to make the window behave as a modal one.
So I tried taking out the "if". That makes it work OK with QtQuick. Then I
tried qtbase/examples/widgets/dialogs/standarddialogs. If I call any of the
static methods (e.g. getOpenFileName()), the dialog appears but is
non-interactive, so I can't actually choose a file.
We don't have this problem with plain QFileDialog or with any other native
dialogs on other platforms, so I'm confident that it can be fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Kdelibs-bugs mailing list
Kdelibs-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdelibs-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic