Introduction - If you have any usage issues, please Google them yourself
Here are some easy to achieve the following:
1. Continuous input
2. Continuous deleted
3. insert anywhere
4. Adaptive size variations.
5. The regular match, each value is not more than 255. When you set the value of IP, there is a regular to verify whether the IP format.
Implementation, use a large QLineEdit nest four small QLineEdit, the intermediate point is the use of paintEvent drawn. Operation using eventFilter for distribution achieved.