Hi,
I just want to know how to restrict user to enter space in the file name while accepting file name from the user in Save As option.
I am using QFileDialog::getSaveFileName() but with this on linux, user can enter spaces.
Thanks & Regards
Jyoti
Hi,
I just want to know how to restrict user to enter space in the file name while accepting file name from the user in Save As option.
I am using QFileDialog::getSaveFileName() but with this on linux, user can enter spaces.
Thanks & Regards
Jyoti
Hi Malhotra,
you can create own FileDialogBox with following Validator code:
QRegExp regExpforName("\\w+");
QLineEdit * m_pTextInput ->setValidator(new QRegExpValidator(regExpforName, m_pTextInput));
Rajesh Kumar Singh
Bangalore, India.
Qt Search
Must Watch:
See how we can connect digital world objects to our day to day life….
Bookmarks