문제

QT의 모달 대화 상자가 ProcessEventFlags가 "dialogexec"로 설정된 로컬 QEventLoop을 사용한다는 것을 알아 챘습니다.

eventLoop.exec(QEventLoop::DialogExec);
.

Qt Assistant는이 열거 형의 의미에 대한 정보가 없습니다.EventLoopExec라는 또 다른 것이 있습니다.누구든지 그들은 실제로 의미하는 것을 알고 있으며 왜 문서화되지 않은 이유는 무엇입니까?

감사합니다

도움이 되었습니까?

해결책

I did some poking around and this is what I found:

  • This enum is intentionally omitted from the documentation, along with several other QEventLoop::ProcessEventsFlag enum values (X11ExcludeTimers, ExcludeUserInput, WaitForMore, EventLoopExec) as there is an \omitvalue in front of each one in the comments that generate the docs.

  • There is only one place in all of Qt that actually uses it, in qeventdispatcher_mac.mm in which it appears to be some kind of mac-specific optimization according to the in-line comments

The intentional omission of these values from the docs leads me to conclude that they're for internal Qt use only, and that you shouldn't need to use them or worry about them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top