//.pro
DEFINES += USE_FLAG=1 #띄어쓰기 금지
CONFIG += USE_FLAG
USE_FLAG{
TARGET = MY_APP_NAME
}
//.cpp or .h
#ifdef USE_FLAG
printf("매크로 사용");
#endif
'Qt' 카테고리의 다른 글
Qt의 Signal Slot 삭제하기(Disconnect) (0) | 2020.01.16 |
---|---|
Qt에서 USB 연결 인식하기 (Feat. Win32API Message) (0) | 2019.12.09 |
cannot queue arguments of type qregistermetatype 에러 해결방법 (0) | 2018.12.10 |
QPropertyAnimation 예제 Circle형태의 PrograssBar (0) | 2018.11.02 |
QTableWidgetItem 대신 ComboBox를 테이블 안에 넣는 예제(QTableWidget In QComboBox Example) (0) | 2018.10.16 |