Make XmlPattern stuff work with Qt5