Cody_Jackson | 2020-12-29 21:00:43 UTC | #1
I've found the Qt documentation for QFileDialog and similar things, but all the references I've found discuss opening existing files or saving your current file. I haven't found anything that states how to actually create a new file, i.e. a new instance of your application.
I'm creating a character record sheet for a game. Since it's possible for one person to have multiple characters, especially if the game master wants to have many NPCs, having the ability to use File->New Character would be useful.
In summary, if the application is open with a character sheet, how would I call the code to create a new character sheet? I am using PyQt5 and the character sheet is created w/ QtDesigner.
PyQt/PySide 1:1 Coaching with Martin Fitzpatrick — Save yourself time and frustration. Get one on one help with your Python GUI projects. Working together with you I'll identify issues and suggest fixes, from bugs and usability to architecture and maintainability.