Qt 이미지 출력

Qt 에서 간단하게 label을 이용해 이미지를 출력하는 방법입니다. Qt가 익숙하지 않으신 분들은 약식 코드로 보면 좀 어려운 점이 있더군요. main.cpp를 이용한 전체 소스를 보이겠습니다. main.cpp 파일 #include <QApplication> #include <QLabel>…

0 Comments

Qt || Qwt 라이브러리 설치

1. 다운로드 svn co https://qwt.svn.sourceforge.net/svnroot/qwt/trunk/qwt 2. 설치 qmake make && make install 3. Library 적용 후 사용 Qwt가 기존 Qt Library에 포함된 내용이 아니라 Makefile을 수정하는 작업이 필요하다. qmake -project…

0 Comments

Qt 함수 || Qbject::connect()

1. proto type 2. 설명 sender : 시그널을 발생시킬 객체의 포인터를 지정한다. signal : 첫번째 매개 변수로 지정된 객체(sender)가 발생시키는 시그널을 지정한다. 반드시 첫 번째 객체의 시그널을 지정해야 한다. receiver…

0 Comments

Qt 예제 || 프로그램 종료 button

소스코드 #include <QApplication> #include <QPushButton> int main(int argc, char **argv) {         QApplication app(argc, argv);         QPushButton *quit = new QPushButton("Quit", 0);         quit->resize(75,35);         quit->show();         QObject::connect(quit, SIGNAL(clicked()), &app, SLOT(quit()));         return app.exec(); }   실행화면

0 Comments