What is the cause of following error: QSqlDatabasePrivate::database: unable to open database: unable to open database file Error opening database?
Code is 100% correct, this message appeared when I have reinstalled Windows, Python and PyQt.
EDIT: I have "read-only" flag in folder with .db file properties. It stays gray (half-checked) when I unset it and open folder properties again. I have unset "use simple sharing" flag in folder properties, I have administrator rights, there is no viruses on my computer as I can see. This nasty problem doesn't have a solution on Super User too. How to set proper permissions for sqlite for this folder and file?