I am using the Qwebengine with PyQt5.9 and the problem is when i click url that suppose to be opened in new window it doesn't work unless i click right click to open context menu then click follow link. So how i can force it to open link in same window without right clicking and click follow link?

A simple code will be so much appreciated