I think that the OP wants a text box into which an IP address can be typed. Before anything is entered the OP wants the text box to look like:
+---------------+
| . . . |
+---------------+
+---------------+
| . . . |
+---------------+
To copy to clipboard, switch view to plain text mode
and have the digits fill in around the dots as the user types:
+---------------+
|192. 0. 2. 34|
+---------------+
+---------------+
|192. 0. 2. 34|
+---------------+
To copy to clipboard, switch view to plain text mode
Setting the input mask to "000.000.000.000" (perhaps "009.009.009.009" or "900.900.900.900") should give the space fillers, i.e. space is the default if there is none specified. You would also need a validator to check the range of the digits entered.
The OP also seems to require that, when empty, the dots should be evenly spaced. The dots will move about as typing continues unless a monospaced font is used for the line edit. Set the width of the line edit based on the calculated width of the mask in that font and all should be good.
Bookmarks