Does getUIPopUp() create the widget or does it simply return it? Was the widget visible on the screen prior to running mapToGlobal()? What does the following print?
Qt Code:
qDebug() << getUIPopUp()->geometry() << getUIPopUp()->window()->geometry();To copy to clipboard, switch view to plain text mode
Are the values what you expect? What is the purpose of the do-while loop?





Reply With Quote


Bookmarks