<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Sorry for the prematured mail :-)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hi, Helen!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) You have to declare the parent (your main window
for example), etc. (see documentation) when you create your dialog
object.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><!--StartFragment --><FONT face=Arial
size=2><snip></FONT> </DIV>
<DIV><FONT size=2>QDialog::QDialog ( </FONT><A
href="http://doc.trolltech.com/3.0/qwidget.html"><FONT
size=2>QWidget</FONT></A><FONT size=2> * parent = 0,
const char * name = 0, bool modal = FALSE, WFlags f = 0
) </FONT><FONT size=2>Constructs</FONT> a dialog called <EM>name</EM>, with
parent <EM>parent</EM>. </DIV>
<DIV><FONT face=Arial size=2></snip></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2) You have to call mydlg.exec()</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<P>I am working on a GUI application under KDE3/Qt environment for a few
weeks. However, I'm still a beginer. In my applicaiton, a simple
function doesn't work. :( I want to click a button, then popup a dialog
window. I've built the dialog window file using Qt designer, and integrated it
into KDE Project. In the slot by connecting the "click button" signal, I wrote
code:</P>
<P>creatddlg mydlg;</P>
<P>mydlg.show();</P>
<P>createdlg is the baseclass name of the dialog. But it didn't be actived
when I launch the application. Anyone can kindly give me a clue or advice?
Thanks heaps!</P><BR></BLOCKQUOTE></BODY></HTML>