I think your problem is that when the mouse button goes down, there is no graphics item present yet, so the scene / view has no currently selected item. Perhaps you need to add some code to select the item immediately after creating it.