You're welcome

It was actually rather fun doing it as I had to delve deep into Qt's innards to make it happen. In the end it turned out to be less than 100 lines of code, but I had to learn a lot to make it happen. This is one of those times I am thankful calibre and its dependencies are open source, being able to read the Qt source code was invaluable.