2010년 8월 15일 일요일

[Qt 프로그래밍] Image 출력 기초

#include<QApplication>
#include<QLabel>
#include<QPixmap>
int main( int argc, char **argv )
{
 QApplication app( argc, argv ) ;
 QPixmap *image = new QPixmap("a.bmp") ;
 QLabel *label = new QLabel("Kim Sukryu", 0) ;

 image->load( "a.bmp", 0 ) ;
 label->setPixmap( *image ) ;
 label->show() ;

 return app.exec() ;
}

댓글 없음:

댓글 쓰기