Every Qt "keyword" you talk about can be disabled with a fallback to namespaced macros.
foreach -> Q_FOREACH slots: -> Q_SLOTS
etc.