[PyQt] QFileDialog::getOpenFileName warning

Jian Ma jianmarf at gmail.com
Wed Nov 9 03:18:03 GMT 2011


Hi Tayfun,

Did you receive the reply from Rafael. I tried his suggestion. It works! I
forgot to cc the reply to pyqt at riverbankcomputing.com. In case you didn't
receive the reply, you can set the QFileDialog option to
DontUseNativeDialog. If you have any questions, please let me know.

Jian

On Tue, Nov 8, 2011 at 2:51 PM, Tayfun Kayhan <tayfun92_kayhan at yahoo.com>wrote:

> I thought that replying mails, that are targeted for whole mail list,
> (added CC) are automatically sent to mail list, instead of the only owner
> of the mail,it seems like not yahoo is as smart as I am :D Thank you.
>
> ------------------------------
> *From:* Jian Ma <jianmarf at gmail.com>
> *To:* Tayfun Kayhan <tayfun92_kayhan at yahoo.com>
> *Sent:* Tuesday, November 8, 2011 6:28 PM
>
> *Subject:* Re: [PyQt] QFileDialog::getOpenFileName warning
>
> Hi Tayfun,
>
> Thank you for your reply.
>
> I guess you need to send(or CC) to pyqt at riverbankcomputing.com instead of
> direct reply to me. You can try it and let me know if it works.
>
>
>
> On Tue, Nov 8, 2011 at 10:35 AM, Tayfun Kayhan <tayfun92_kayhan at yahoo.com>wrote:
>
> Hi, yes and I just noticed that it is the same with openSUSE 11.4 that I'm
> using now. It then must about Py/Qt, i guess.
>
> Btw, May I learn if my reply has only come to you rather than to the mail
> list ? Because I cannot get mails when I send to some mail lists.
>
> Thanks.
>
> ------------------------------
> *From:* Jian Ma <jianmarf at gmail.com>
> *To:* Tayfun Kayhan <tayfun92_kayhan at yahoo.com>
> *Sent:* Tuesday, November 8, 2011 5:19 PM
> *Subject:* Re: [PyQt] QFileDialog::getOpenFileName warning
>
> Hi Tayfun,
>
> Thank you for the reply.
>
> I use SUSE. Do you mean that this problem may relate to the platform? Did
> this problem reappear when you use other OS?
>
> Jian
>
> On Mon, Nov 7, 2011 at 7:02 PM, Tayfun Kayhan <tayfun92_kayhan at yahoo.com>wrote:
>
> In case this wiil help, I had a very similir problem when I was using
> Ubuntu 11.10.
>
> ------------------------------
> *From:* Jian Ma <jianmarf at gmail.com>
> *To:* pyqt at riverbankcomputing.com
> *Sent:* Tuesday, November 8, 2011 1:35 AM
> *Subject:* [PyQt] QFileDialog::getOpenFileName warning
>
> Hi,
>
> I wrote a program which uses QFileDialog to open file. The code is:
>
> *dir = "."
> fname = str(QFileDialog.getOpenFileName(self, "Gui - Choose File", dir))*
>
> When I run the program, there is warning message:
>
> *KGlobale::Locale::Warning your global KLocal is being recreated with a
> valid main component instead of a fake component, this usually means you
> tried to call i18n related functions before your main component was
> created. You should not do that since it most likely will not work.*
>
> I don't know why this warning happens. Any suggestions welcome.
>
> Thanks!
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111108/03ee8500/attachment-0001.html>


More information about the PyQt mailing list