TQ_guoxixiao 发表于 2012-5-25 16:32 
你的cpp文件贴出来
/****************************************************************************
** Form implementation generated from reading ui file 'test.ui'
**
** Created: Fri May 25 17:00:32 2012
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "test.h"
#include <qlabel.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
/*
* Constructs a test which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*/
test::test( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
QPixmap image0( ( const char** ) image0_data );
if ( !name )
setName( "test" );
resize( 584, 480 );
setCaption( tr( "easytest" ) );
setIcon( image0 );
PixmapLabel1 = new QLabel( this, "PixmapLabel1" );
PixmapLabel1->setGeometry( QRect( 410, 40, 40, 230 ) );
PixmapLabel1->setPixmap( image0 );
PixmapLabel1->setScaledContents( TRUE );
come_on = new QPushButton( this, "come_on" );
come_on->setGeometry( QRect( 130, 90, 190, 60 ) );
come_on->setText( tr( "Come On" ) );
// signals and slots connections
connect( come_on, SIGNAL( stateChanged(int) ), this, SLOT( come_on() ) );
}
/*
* Destroys the object and frees any allocated resources
*/
test::~test()
{
// no need to delete child widgets, Qt does it all for us
}
void test::come_on()
{
qWarning( "test::come_on(): Not implemented yet!" );
}
|