我需要在linux中获取特定QThread的PID。 <button id="{{message.$key}}" *ngIf="message.readStatus == '0'" type="submit" class="btn btn-success" (click)="MarkasRead($event)">Mark as Read</button>
MarkasRead(event){
var target = event.target || event.srcElement || event.currentTarget;
var idAttr = target.attributes.id;
}
返回父进程的pid。 getpid
返回Qt内码。还有其他办法吗?