내 신호와 슬롯 모두 std::string
유형 매개 변수가 있습니다. 내 신호 클래스 B 및 클래스 A 슬롯에 있습니다. 매개 변수 형식을 int로 변경하면 신호가 작동하지만 std :: string.Any 제안이이 문제를 해결할 수있는 제안? 여기 std :: string 사용 실패 신호 및 슬롯
connect(this,SIGNAL(SignalB(std::string)),ClassA::PtrClassA,SLOT(MethodA(std::string)));
'std :: string'에서도 잘 작동합니다. 사용중인 신호와 슬롯에 대한 코드를 게시 할 수 있습니까? –
std :: string을 메타 유형으로 등록 했습니까? – RobbieE
@RobbieE 메타 타입으로 어떻게 등록합니까? – MistyD