[HOTFIX] Fix #834 QRegExpValidator needs reference to the element regex will be applied into.