Damn, didn't spot that. Thankfully - QLineEdit has a maximum length property, so it could just set that to 3 * the max length instead. Any other issues? Andrew