[Qt-interest] Qt dialog and Thread
Jorge Abrines
curruscataphractus at gmail.com
Tue Feb 17 15:35:47 CET 2009
Hi Vinitha,
vinitha ks wrote:
> Hi,
> We are using MAC 10.5 ,Xcode3.0 and Qt4.3.5 .There is a problem with
> getOpenFileName() and getSaveFileName().
> I couldn't give a single file format in mac.When i give
> getOpenFileName(this, tr("Open File"),
> "/home",
> tr("Images (*.png )"));
>
> It doesn't show any types,
> but getOpenFileName(this, tr("Open File"),
> "/home",
> tr("Images (*.png );;"));
>
>
Have you tried to put spaces between *.png?
> (added ";;" in filter)it shows file format and lives a blank row in types.
>
> So how can i display single file format without leaving any blank row?
>
> Next is about Qthread,QThread::wait(ULONG_MAX) is taking some time in
> our MAC.So when we try to quit the application in this time,it
> crashed.So how can i kill other events in this time or reduce wait time
> which returns true?
>
It seems you're misleaded about using QThread. You should stop your thread using
some thread convenience classes like mutexes or waitconditions to let thread
know you want to finish and wait until it finishes but definitively if you call
wait and you don't do anything thread will never end!. Please send any snip if
you want.
Hope it helps!
Regards,
Jorge
> Hope anyone can help me.
> Thanks
>
>
> ------------------------------------------------------------------------
> Add more friends to your messenger and enjoy! Invite them now.
> <http://in.rd.yahoo.com/tagline_messenger_6/*http://messenger.yahoo.com/invite/>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list