how to detect which display is touched in QT

  c++, display, qt

I have two displays. Both show same information, both has same button. when I press the button, I want to open a dialog. It doesn’t matter on which display I press, it always shows the dialog in first display. But I want to show dialog on the display which is pressed.
Does anyone has ideas?
Thank you.

Source: Windows Questions C++