Question

J'ai remarqué que les dialogues modales sur QT utilisent une QEventloop locale avec le processus de processEventFlags défini comme "dialogexeec"

eventLoop.exec(QEventLoop::DialogExec);

L'assistant QT n'a aucune information sur ce que cet Enum signifie.Il y en a un autre appelé EventLoopEC.Toute personne a une idée de ce qu'ils veulent dire et pourquoi ne sont-ils pas documentés?

merci

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top