Hello

I've dual head setup in Linux running in Clone Mode. And I'm trying to move my QWidget window from display0 to display1. Below is what I'm doing

Window currently is on display 0
Qt Code:
  1. [...]
  2. QWidget* parent = desktop.screen(1);
  3. setParent(parent);
To copy to clipboard, switch view to plain text mode 

According to documentation "destop.screen(1)" Returns a widget that represents the screen with index screen. And I assume if I make this returned widget parent for my QWidget window, it will move the window to parent's 0,0 location (moving to display 1). But during runtime i get

Fatal: ASSERT: "!d->isWidget" in file kernel/qobject.cpp, line 1665
Aborted
Does anybody know what i'm doing wrong ?