Qt-interest Archive, September 2007
Load event in qdialog?
Message 1 in thread
Hello everyone,
I'm relatively new to QT, but I have years of C++ VC++ VC# under my belt. One quick question. Is there a Load event or a load slot for a qdialog object that I can use to execute another thread/code after the dialog itself has rendered itself onto the screen? I'm trying to make my application launch, and if the settings file isn't found, for a block of code to execute to prompt the user for setting data. Because this involves webcam feed, I need to see the complete rendered application first. Any help?
Thanks all.
-Minuk
Message 2 in thread
Hi,
> my belt. One quick question. Is there a Load event or a load slot
> for a qdialog object that I can use to execute another thread/code
> after the dialog itself has rendered itself onto the screen? I'm
You can use QTimer::singleShot() with timeout value 0. That will be called
whenever your application reaches the eventloop - in other words - nothing
else is to do ;-) This is also documented in the QTimer-docs IIRC.
Regards,
Malte
--
[ signature omitted ]
Message 3 in thread
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Or could you possibly extend the dialog's ::showEvent method?<br>
<br>
Malte Witt wrote:
<blockquote
cite="mid:OFF364E57A.7CDBC5C8-ONC1257361.00381052-C1257361.00384022@xxxxxxxxxxxxx"
type="cite">
<pre wrap="">Hi,
</pre>
<blockquote type="cite">
<pre wrap="">my belt. One quick question. Is there a Load event or a load slot
for a qdialog object that I can use to execute another thread/code
after the dialog itself has rendered itself onto the screen? I'm
</pre>
</blockquote>
<pre wrap=""><!---->
You can use QTimer::singleShot() with timeout value 0. That will be called
whenever your application reaches the eventloop - in other words - nothing
else is to do ;-) This is also documented in the QTimer-docs IIRC.
Regards,
Malte
--
[ signature omitted ]
Message 4 in thread
Susan,
Please dont use html only formatted mails when posting to a public
mailing list. This makes it unnecessary hard to read your postings for
some of us.
Best regards,
Andre
--
[ signature omitted ]
Message 5 in thread
Hadn't realized it was an issue, my apologies. Notice I've switched.
Thunderbird (the email tool I use) does html by default...
Andre Haupt wrote:
> Susan,
>
> Please dont use html only formatted mails when posting to a public
> mailing list. This makes it unnecessary hard to read your postings for
> some of us.
>
> Best regards,
>
> Andre
--
[ signature omitted ]
Message 6 in thread
On Wed, Sep 26, 2007 at 11:57:16AM -0400, Susan Macchia wrote:
> Hadn't realized it was an issue, my apologies. Notice I've switched.
> Thunderbird (the email tool I use) does html by default...
great ;-)
--
[ signature omitted ]