I am using Qt 5.2.1 and I made a program that takes some values and saves them on a text file. What I want is that everybody can see this file and read the content but nobody can edit it. To edit it, you would have to run the program and enter a password. How do I do this?

thanx in Advance :D

Write a file in encrypted form, write a program which prompt about password at run, read encrypted file, decrypt it and fill your edit control.

@panqnik The thing is I don't know how to do that... could you help me in the right direction?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.