Quote Originally Posted by QT_Vishwanath View Post
Hi Qtfolks,

I am developing a QT GUI which accepts the IP Address, MAC address and Port number and validates them. The designer is as follows.

QT_Old.jpg


But I want the Line edit for IP address and MAC Address should be as follows.

QT_New.jpg

Note : Newbie for the QT, please excuse if question doesn't make sense.
Qt Code:
  1. QRegExp rx("\\d+");
  2. QLineEdit *myEdit = new QLineEdit();
  3. myEdit ->setValidator(validator);
  4. this->setCentralWidget(myEdit );
To copy to clipboard, switch view to plain text mode