Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, April 2008
Initialize event for dialog


Message 1 in thread

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font size="+1">Hi,<br>
<br>
I have a dialog based application. When the second dialog is brought
up, I need to check some settings maintained on a file as well as some
flags set in the primary dialog. I am looking for something like an
initialize event that fires when the form is first activated. Obviously
it should not be a part of the class constructor, but I see no such
available events. <br>
<br>
I would think this is a relatively common process and I am either
overlooking it, or worse, not seeing it out of coding blindness. If
some of you could take the time to give a few hints, methods, and/or
suggestions, I would be most appreciative.<br>
<br>
Thanks,<br>
<br>
Robert Berman<br>
</font>
</body>
</html>

--
 [ signature omitted ] 

Message 2 in thread

Hi Robert,

 

Not sure why you cannot do this using the constructor of the second
dialog. You may not want to use the constructor if your second dialog is
non modal, in that case it should be easily achievable using
SIGNALS/SLOTS mechanism.

 

However assuming your second dialog is modal and most certainly a child
of the first Dialog, you could maybe have accessors( public methods) to
the first dialog's flags which you may pass through the constructor of
the second dialog right?

 

Thanks,

Subramanian

 

________________________________

From: Robert Berman [mailto:bermanrl@xxxxxxxxxxxxxx] 
Sent: Thursday, April 03, 2008 6:09 AM
To: Qt-interest
Subject: Initialize event for dialog

 

Hi,

I have a dialog based application. When the second dialog is brought up,
I need to check some settings maintained on a file as well as some flags
set in the primary dialog. I am looking for something like an initialize
event that fires when the form is first activated. Obviously it should
not be a part of the class constructor, but I see no such available
events. 

I would think this is a relatively common process and I am either
overlooking it, or worse, not seeing it out of coding blindness. If some
of you could take the time to give a few hints, methods, and/or
suggestions, I would be most appreciative.

Thanks,

Robert Berman

-- To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
with "unsubscribe" in the subject or the body. List archive and
information: http://lists.trolltech.com/qt-interest/

Message 3 in thread

I did that with the 
void QWidget::showEvent ( QShowEvent * event ) 
together with a class variable "firstTime" which 
prevents further activation of showevent (after the first call)

regards
karl-heinz
www.techdrivers.de


-------- Original-Nachricht --------
> Datum: Thu, 3 Apr 2008 12:23:16 +0530
> Von: "Subramanian Ganapathy" <sganapat@xxxxxxxxx>
> An: "Robert Berman" <bermanrl@xxxxxxxxxxxxxx>
> CC: "Qt-interest" <qt-interest@xxxxxxxxxxxxx>
> Betreff: RE: Initialize event for dialog

> Hi Robert,
> 
>  
> 
> Not sure why you cannot do this using the constructor of the second
> dialog. You may not want to use the constructor if your second dialog is
> non modal, in that case it should be easily achievable using
> SIGNALS/SLOTS mechanism.
> 
>  
> 
> However assuming your second dialog is modal and most certainly a child
> of the first Dialog, you could maybe have accessors( public methods) to
> the first dialog's flags which you may pass through the constructor of
> the second dialog right?
> 
>  
> 
> Thanks,
> 
> Subramanian
> 
>  
> 
> ________________________________
> 
> From: Robert Berman [mailto:bermanrl@xxxxxxxxxxxxxx] 
> Sent: Thursday, April 03, 2008 6:09 AM
> To: Qt-interest
> Subject: Initialize event for dialog
> 
>  
> 
> Hi,
> 
> I have a dialog based application. When the second dialog is brought up,
> I need to check some settings maintained on a file as well as some flags
> set in the primary dialog. I am looking for something like an initialize
> event that fires when the form is first activated. Obviously it should
> not be a part of the class constructor, but I see no such available
> events. 
> 
> I would think this is a relatively common process and I am either
> overlooking it, or worse, not seeing it out of coding blindness. If some
> of you could take the time to give a few hints, methods, and/or
> suggestions, I would be most appreciative.
> 
> Thanks,
> 
> Robert Berman
> 
> -- To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
> with "unsubscribe" in the subject or the body. List archive and
> information: http://lists.trolltech.com/qt-interest/

-- 
 [ signature omitted ] 

Message 4 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">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#3333ff">
<font size="+1">Thank you very much. That solved the problem.<br>
<br>
Robert Berman<br>
</font><br>
Karl-Heinz Reichel wrote:
<blockquote cite="mid:20080403091330.271440@xxxxxxx"; type="cite">
  <pre wrap="">I did that with the 
void QWidget::showEvent ( QShowEvent * event ) 
together with a class variable "firstTime" which 
prevents further activation of showevent (after the first call)

regards
karl-heinz
<a class="moz-txt-link-abbreviated" href="http://www.techdrivers.de";>www.techdrivers.de</a>


-------- Original-Nachricht --------
  </pre>
  <blockquote type="cite">
    <pre wrap="">Datum: Thu, 3 Apr 2008 12:23:16 +0530
Von: "Subramanian Ganapathy" <a class="moz-txt-link-rfc2396E" href="mailto:sganapat@xxxxxxxxx";>&lt;sganapat@xxxxxxxxx&gt;</a>
An: "Robert Berman" <a class="moz-txt-link-rfc2396E" href="mailto:bermanrl@xxxxxxxxxxxxxx";>&lt;bermanrl@xxxxxxxxxxxxxx&gt;</a>
CC: "Qt-interest" <a class="moz-txt-link-rfc2396E" href="mailto:qt-interest@xxxxxxxxxxxxx";>&lt;qt-interest@xxxxxxxxxxxxx&gt;</a>
Betreff: RE: Initialize event for dialog
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi Robert,

 

Not sure why you cannot do this using the constructor of the second
dialog. You may not want to use the constructor if your second dialog is
non modal, in that case it should be easily achievable using
SIGNALS/SLOTS mechanism.

 

However assuming your second dialog is modal and most certainly a child
of the first Dialog, you could maybe have accessors( public methods) to
the first dialog's flags which you may pass through the constructor of
the second dialog right?

 

Thanks,

Subramanian

 

________________________________

From: Robert Berman [<a class="moz-txt-link-freetext" href="mailto:bermanrl@xxxxxxxxxxxxxx";>mailto:bermanrl@xxxxxxxxxxxxxx</a>] 
Sent: Thursday, April 03, 2008 6:09 AM
To: Qt-interest
Subject: Initialize event for dialog

 

Hi,

I have a dialog based application. When the second dialog is brought up,
I need to check some settings maintained on a file as well as some flags
set in the primary dialog. I am looking for something like an initialize
event that fires when the form is first activated. Obviously it should
not be a part of the class constructor, but I see no such available
events. 

I would think this is a relatively common process and I am either
overlooking it, or worse, not seeing it out of coding blindness. If some
of you could take the time to give a few hints, methods, and/or
suggestions, I would be most appreciative.

Thanks,

Robert Berman

-- To unsubscribe - send a mail to <a class="moz-txt-link-abbreviated" href="mailto:qt-interest-request@xxxxxxxxxxxxx";>qt-interest-request@xxxxxxxxxxxxx</a>
with "unsubscribe" in the subject or the body. List archive and
information: <a class="moz-txt-link-freetext" href="http://lists.trolltech.com/qt-interest/";>http://lists.trolltech.com/qt-interest/</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
</body>
</html>

--
 [ signature omitted ]