add a maxLength option to QEntryElement