There is no such API in Qt's C++ part that allows you to do this. Maybe javascript can do it.