📜 ⬆️ ⬇️

qml: power and simplicity

My brother is a big fan of computer games and everything connected with them. He scans the whole Internet in search of information about the old, rare, first editions of games, the names of which I do not even know (and even calls himself the "Historian of the Games"). He recently came up with a request to write a small viewer for one of the websites on the Internet that is busy with this topic. The task was to view information about all games by genre since 1950, and for this, the site has fairly convenient functionality, but the usual lists only general information (from the header) and no screenshots, so you had to open each page manually and spend a lot time to view and capture the necessary information.

Glancing at the task, I said “let's do it!”. In the next hour (with a little) several python scripts were written in order to parse the site and fill in the necessary information with a small SQLite database. In this case, this is a justified decision, because every time I run through the pages of the site from the viewer for a long time, and the information for most of the games does not change. New games are rarely added, and even then only those that came out recently.

After the scripts were tested and we were ready to launch them and went to drink tea (with buns). After waiting a couple of hours and passing the time for the game at Age of Wonders, we had a complete base in our hands with all the necessary information. As an engineer, at this stage I was already completely satisfied, because if you have all the necessary data, what else do you need? However, the brother turned to the viewer, so we did not stop there and continued to work.

By this time, I had been working on Qt UI for quite a long time and had been studying Qml, so I didn’t think for a long time about which framework or technology to choose to put the task at hand. I was pleasantly surprised how with just a few strokes of the pen, in just a couple of minutes (less than an hour or so) we had a beautiful viewer (the design appealed to the wife, and that says a lot) with the functionality we needed (filtering by year, by topic , by name, etc., uploading information to a separate file, etc.).
')
After this story, I thought it was a good thing that in an era when Microsoft and Apple are trying to squeeze out every dollar of their users, there are companies and tools like Qt that, on the one hand, provide “powerful tools at a reasonable price” for professionals, and on the other hand, the means are provided to everyone for personal use, with, in general, a few restrictions on the part of the license. For this, the guys have a big respect and respect and a low bow. Thank.

The project code is laid out here , the Windows binary can be downloaded here .

PS: In general, the viewer can be freely used, including with other objects and for other purposes. My brother and I will be happy if the project will be useful to someone other than the two of us. Do not forget only on occasion to put a link to the authors. Thank.

Source: https://habr.com/ru/post/428888/


All Articles