|

楼主 |
发表于 2003-5-17 19:29:49
|
显示全部楼层
#include "form1.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
Form1::Form1( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "Form1" );
resize( 600, 480 );
setCaption( trUtf8( "Form1" ) );
PushButton1 = new QPushButton( this, " ushButton1" );
PushButton1->setGeometry( QRect( 70, 80, 91, 60 ) );
PushButton1->setText( trUtf8( " ushButton1" ) );
connect( PushButton1, SIGNAL( clicked() ), PushButton1, SLOT( setFocus() ) );
}
Form1::~Form1()
{
}
这是代码!斑竹看看有问题么? |
|