[Qt-interest] QGraphicsItem can not show the cursor

christopherx christopherx at xandros.com
Mon Apr 27 17:28:01 CEST 2009


Hello all:

    I have  a problem with cursor is not showing in the QEditline.  
Please let me know if you know the issue.  Thanks.
    I have a widget which contains a QEditline an a few QLabel, a 
QListview and a buttonBox.   And the widget is sign to a QGraphicsItem 
as a proxywidget as :

          grpItem = new GraphicsRectItem(QRectF, 
myWidget->palette().window(), myWidget).

     And the grpItem is a child of a baseItem (which is the same type as 
grpItem, a GraphicsRectItem).   The baseItem is added to a 
QGraphicsScene, and the scene is a member of set to a GraphicsView.

     After the creation of the grpItem, I did a QEditLine->setFocuse(), 
and it works, the edit line does got the keyboard focus, but I can't see 
the Cursor unless I click on the widget/or editline.  Also, the tab 
order is not working on the widget.

     Please help.

Thanks,
-- 

Christopher Xu
 <http://www.xandros.com/>




More information about the Qt-interest-old mailing list