I noticed that system plugins often adapt Quick Look preview window size to what is being previewed. I would like to implement similar behaviour in my .qlgenerator but I can't seem to find how this is done. I only found the initial static sizes defined in the info.plist file
Quick Look preview height and Quick Look preview width
Those two work and set the initial preview window size as expected but how do I set the sizes from within the program?