Hi,

I have been trying to use the OK and Cancel buttons to perform their default behavior. I believe that my previous attempts to close the dialog box or click on Cancel did not modify the file and only upon clicking OK the file is updated.
However, recently I have observed that upon clicking on cancel an empty line gets added to the file and even on clicking close.

The ok and cancel buttons are in a buttonbox. They have signals accepted() and rejected() respectively and slots accept() and reject() in them; this is mentioned in the designer. But their implementation is missing in the file.

My attempts to connect them using the connect function is not working and I get a message saying the functions are protected.

Any suggestions?