<div class="xam_msg_class">
<div style="font: normal undefined undefined; color:undefined;"><div class="xam_msg_class">

<div class="xam_msg_class">
Hi all,<div> </div><div>What I'm trying to do is to have at the right click on a QGraphicsItem, a <span class="Apple-style-span" style="font-size: 10.8333px; ">QLineEdit .</span></div><div> I'm trying to use the following code</div><div><div>def contextMenuEvent(self, event) :</div><div><span class="Apple-style-span" style="font-size: 13.3333px; ">        #qle=QtGui.QLineEdit()</span></div><div>        </div><div><span class="Apple-style-span" style="font-size: 13.3333px; ">        menu =QtGui.QMenu();</span></div><div>        action=menu.addAction("test");</div><div>        menu.exec_(event.screenPos())</div><div>        #menu.addWidget(qle)</div><div>        del(menu)</div></div><div> </div><div>But I do not know how to add the <span class="Apple-style-span" style="font-size: 13.3333px; ">QLineEdit into the </span><span class="Apple-style-span" style="font-size: 13.3333px; ">QMenu .</span></div><div>there is any way to add a custom widget to the QMenu ?</div><div> Or there is any other way to do such a think ?</div><div> </div><div>Regards,</div><div>Matteo</div><div><br></div><div> </div><div> </div><div> </div><div> </div><div> </div><div><div> </div><div>  </div></div><div><br></div><div> </div><div> </div>
</div>



</div>
</div>
</div>