Available similar articles in
When you will develop network applications, you may need to create form for input ip-address, but the use of a simple method
of QLineEdit does not provide the proper result as this mask allows to enter the values of 999, 657, etc., while the IP-address of the limited number of 255.
One way to solve this problem is to use
The project is created as an application Qt Widgets, where files are created by default:
lineEdit.pro - project profile;
mainwindow.h - header file of main window;
mainwindow.cpp - source code of main window;
main.cpp - the main source file from which the application starts;
mainwindow.ui - file of user interface.