ÔõÑùCreate a new dialog with the Designer£¿
ÔÚKDevelop2.1µÄ°ïÖúÎļþÖÐÓÐÈçÏÂÐðÊö:12.1 Create a new dialog with the Designer
if you want to create a new dialog,simply add a new Designer file.Go to the menubar and choose File->New.From the box choose"Qt Designer file"and enter a name,for example 'ktestdlg.ui'.the .ui file is where the Designer stores the information about the dialog.Now the Designer will come up and ask you which kind of template you want to use for your class.Let's choose "QDialog"for our example.Now the Designer will present an empty form called "form1" and the Property Editor.
¿ÉÊÇ,ÎÒÓöµ½µÄÇé¿öÊÇ:ÔÚÒ»¸öProjectÖÐÈçÉϲÙ×÷,ÊäÈëÎļþÃûENTERºó,³öÏÖÒ»DIALOGÌáʾ:"ÄúÊÇÒª°ÑËü×÷ΪASCIIÎļþ¼ÓÔØÂð?", if(yes),´ò¿ªÒ»¿ÕÎļþ,else,ÓÖÒ»¸öDIALOG,Ìáʾ"´ò¿ªÓÃ..."ÒªÇóѡһ³ÌÐò.ÕâºÍ°ïÖúÖÐËùÊöÓгöÈë,Ñ¡QTÀ´´ò¿ª,Ò²ºÍÉÏÊöºóÐø²»Ì«Ò»Ñù.²»ÖªÔõô»ØÊÂ??Ò»¸öÔõôҲÈë²»ÁËÃŵı¿µ°¿ÒÇëÖ¸½Ì.
Ò³:
[1]