我使用
sn = new QSocketNotifier( sockfd, QSocketNotifier::Read, parent );
connect( sn, SIGNAL(activated(int)),myObject, SLOT(dataReceived()) );
我是 想 gpio 信號 進來 高準位-> 低準位時 觸發
但是 我發現 activated(int) 不管是 高準位-> 低準位 低準位-> 高準位 時 都會觸發
請問 有辦法 設成 只有 高準位-> 低準位 才觸發嗎???