While just implementing locking mechanism, I got one more idea.
Since the locking is to be restricted for the same application I can (I think)achieve this simply by associating an integer variable for each opened file, or just one array(or other appropiate data structure) for all opened files. for this I can make use of QStringList. If the same file is opened twice check in QStringList to see if file already present if so display some message to user "File already opened" if not open the file.
Will it not be feasible to implement the above said logic.
Thanks
Bookmarks