It may well be something to do with the latest offering of QT, many changes have been made since 5.15.
I looks like you have solved your problem, what was it?
@SGaist Thanks for the offer of looking over a code sample. I have found that by setting W to be a Qt::Popup rather than a Qt::Window, this solves my problem.