[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Getting a string from the user in a KIOSlave
From: David Faure <david () mandrakesoft ! com>
Date: 2001-11-16 9:17:38
[Download RAW message or body]
On Friday 16 November 2001 06:08, Shaun Jackman wrote:
> I need to get a one line string from the user in a KIOSlave I'm writing. I
> tried to use a QInputDialog::getText but got the error
> QPaintDevice: Must construct a QApplication before a QPaintDevice
> What's the proper way to do this?
Not doing it. Let the app do the user interaction, the slave isn't supposed
to do so. The slave can use SlaveBase::messageBox() to let the application
(in fact kio_uiserver) pop up a message box, but unfortunately this doesn't
include message boxes with a line edit. Of course if this is for a password
you can use SlaveBase::openPassDlg.
--
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE 3.0: Konquering the Desktops
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic