[Qt-interest] QGraphicsItem can not show the cursor

christopherx christopherx at xandros.com
Mon Apr 27 20:31:23 CEST 2009


Hello Fred:

   Could you be more specific on the method calls ? 

Thanks,
Chris

  

Fred Duarte wrote:
> I'm having a similar problem.
> My QLineEdit object inside a QGraphicsProxyWidget is not showing
> the cursor. Even when I click on the widget and it gain focus, the 
> cursor is
> still hidden.
> A made just a small change on my widget, where i set the background to
> transparent. But that's it. I still add it to the scene through a 
> QGraphicsProxyWidget.
>
> On Mon, Apr 27, 2009 at 11:28 AM, christopherx 
> <christopherx at xandros.com <mailto:christopherx at xandros.com>> wrote:
>
>     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/>
>
>     _______________________________________________
>     Qt-interest mailing list
>     Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
>     http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
>
> -- 
> Frederico Simas Duarte
> MLS - Mobile Linux Software
> INDT - Nokia Institute

-- 

Christopher Xu
Software Developer
*Xandros*
christopherx at xandros.com <mailto:christopherx at xandros.com>
Tel: 1.613.842.3498 x 403 
http://www.xandros.com/




More information about the Qt-interest-old mailing list