This is a pretty silly question, but it's one I can't find an answer in the documentation:

How do I change the size of a QLineEdit. I know it's a "line"-edit and thus can only be one line long (which is why I chose it), but what I want to do is change its length. Currently it fits around fifteen characters, but I only need it to fit... two or three.

I've tried QLineEdit::resize(), but that made no difference.