I am coding a Qt application that uses "connectors" to retrieve data from anywhere. So far, I have only developed a connector to retrieve data from a database (with known schema) but I could make one to read from e.g. a XML or JSON file.
I have compiled the application to WASM, in the hope I could turn it into a demo accessible online. As one would expect, the database connector cannot be used, so I planned to create one to read from an Excel file (with 4-5 sheets in it, each representing a table).
I have actually thought of 2 possible approaches:
Start the application normally and provide a popup in which to select the file (involving a `QFileSystemModel`).
Create a webpage with a file input, start the application when a file is selected and somehow get the content of the file on opening.
TBH, I do not know which approach will work (if any) without being too much of a pain to implement.
What would you recommend here? And do you happen to have a code snippet?