본문 바로가기

Qt

(6)
Visual Studio 스타일 도킹 윈도우: Advanced Docking System for Qt 출처: Advanced Docking System for Qt | Qt Marketplace Advanced Docking System for Qt Qt Advanced Docking System lets you create customizable layouts using a full featured window docking system similar to what is found in many popular integrated development environments (IDEs) such as Visual Studio. Everything is implemented with standard Q marketplace.qt.io 라이선스: LGPL 2.1 테스트 환경: Windows 10 Home 2..
Qt에서 공유 라이브러리 만들기 https://wiki.qt.io/How_to_create_a_library_with_Qt_and_use_it_in_an_application 참조. https://doc.qt.io/qt-6.5/sharedlibrary.html 참조. 실행 환경: Windows 10 Home 22H2 64-bit 빌드 환경: Qt 6.5.0, Qt Creator 11.0.1, MinGW 11.2.0 64-bit 공유 라이브러리를 생성할 때에는 클라이언트 코드가 사용하려는 심볼들을 특별한 방식으로 표시해서 제대로 익스포트되도록 해야 한다. 이렇게 익스포트된 공유 라이브러리는 클라이언트가 임포트해서 사용할 수 있다. Qt는 클라이언트가 사용할 심볼을 익스포트, 임포트하기 위해 Q_DECL_EXPORT, Q_DECL_IMPO..
LED 인디케이터: QLedIndicator 출처: https://www.linux-apps.com/p/1132137/ QLedIndicator Simple LED indicator, very similar to KLed, but without KDE dependencies and with 2-color gradient. Widget subclasses QAbstractButton offering button functions. Included demo (screenshot) shows... www.linux-apps.com 라이선스: LGPL 3 테스트 환경: Windows 10 Home 22H2 64-bit, Qt 6.5.0, Qt Creator 11.0.1, MinGW 11.2.0 64-bit 리눅스 용으로 작성된 것 같은데 윈도우에서도 잘 ..
Qt/Qt Creator에서 외부 라이브러리 사용하기 https://doc.qt.io/qt-6.5/third-party-libraries.html 참조. https://wiki.qt.io/How_to_create_a_library_with_Qt_and_use_it_in_an_application 참조. 실행 환경: Windows 10 Home 22H2 64-bit 빌드 환경: Qt 6.5.0, Qt Creator 11.0.1, MinGW 11.2.0 64-bit QLedIndicator를 예로 들어 보자. QLedIndicator_libTest/ |---QLedIndicator_libTest.pro |---main.cpp |---mainwindow.cpp |---mainwindow.h |---mainwindow.ui |---lib/ |---qledindic..
MinGW 빌드 용 qmake 프로젝트 생성 https://doc.qt.io/qt-6.5/qmake-tutorial.html 참조. 실행 환경: Windows 10 Home 22H2 64-bit 빌드 환경: Qt 6.5.0, Qt Creator 11.0.1, MinGW 11.2.0 64-bit 응용 프로그램을 구성하는 세 개의 파일로 시작해 보자. 이 파일들은 [Qt 설치 폴더]/Examples/Qt-6.5.0/qmake/tutorial 폴더에서 가져왔다. 이 파일들에는 푸시 버튼 하나가 포함된 작은 윈도우를 하나 만드는 코드가 포함되어 있다. 이 파일들로부터 실행 파일을 생성하는 과정을 알아보자. VS Code(혹은 아무 텍스트 편집기)로 hello.pro 파일을 만들고 위 세 개 파일과 같은 경로에 저장하자. 프로젝트 파일에 제일 먼저 추가해야..
qmake 개요 https://doc.qt.io/qt-6.5/qmake-overview.html 참조. 실행 환경: Windows 10 Home 22H2 64-bit 빌드 환경: Qt 6.5.0, Qt Creator 11.0.1, MinGW 11.2.0 64-bit qmake는 하나 혹은 여러 프로젝트 파일의 내용을 토대로 단일 Makefile을 생성한다. Makefile은 프로젝트의 빌드 과정을 기술하는 명령들로 구성된다. 프로젝트 기술하기 프로젝트는 프로젝트 파일(*.pro)에 기술되는 내용이다. qmake는 그 내용을 이용해 해당 프로젝트를 빌드하는데 필요한 모든 명령을 포함하는 Makefile을 생성한다. 따라서, 프로젝트를 기술하려면 프로젝트 파일을 생성하고 그 내용을 qmake가 해석할 수 있는 문법에 맞춰 ..