Fixing FlashQard image loading problems

One of my favourite applications when it comes to learning, that is revising is FlashQard.

FlashQard is an educational software to improve your learning process. It is designed to help you learn not only a new language but anything that can be learnt! 
This aim is achieved by using the widely used method, called Leitner System, and the idea of "different card types for different purposes". 
Leitner System (proposed by Sebastian Leitner in the 1970s) is one the most efficient methods for learning. Which allows you to focus on the most difficult flashcards and not waste your time on what you have already learnt.


However, the developer unfortunatelly isn't very active and it has one major bug when it comes to inserting images. Lucky for us it is a open source project and it is developed on Qt. Since I've been developing on Qt platform professionaly for almost 2 years, I thought I'll give it a shot on fixing image retrieval from WEB and displaying the images in the flash cards.

 

After about 2.5 hours I think I came up with a solution!

 Found which dll files are missing to load and render a picture, apperantly Qt looks for image dll libraries in a folder imageformats. As soon as I added the imageformats folder to the exectutable folder the problem went away.

Also I recompiled the application with slightly newer Qt version 4.8.3.
 I chose not to update to Qt 5, because it slighlty changes the header file names. And I didn't want to go thourgh all the conversion.

The WEB image fetching URL was outdated. So I slighlty rewrote the image fetching algorithm with my own JSON parser. However, I'm using Google JSON API, and they state it's already "deprecated", I don't know how long the image web search will work. Anyway the main problem was the lack of ability to add the image. Now it should be fixed, as far as I know. I tested on 3 different machines, one of them didn't have Qt SDK installed and it worked.

 

Image Loading screenshot:

Anyway, happy learning!

Downloads

Download: flashqard_morflv.zip (10.81M)

Download: flashqard_source.zip (5.92M)




ADVERTISEMENT