[Qt-interest] protected function

Thiago Macieira thiago at kde.org
Sun Jun 20 15:34:57 CEST 2010


Em Domingo 20. Junho 2010, às 14.50.34, vyshakh krishnan escreveu:
> hi,
> 
> Can anyone tell the exact working of protected function in a qt class.
> 
> protected:
>     void mousePressEvent(QGraphicsSceneMouseEvent *mouseEvent);
>     void mouseMoveEvent(QGraphicsSceneMouseEvent *mouseEvent);
>     void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent);
> 
> These functions are seen to be made protected in one of the tutorial
> program (diagramscene) in qt. But these are not called anywhere or not
> connected to any signal. How do these work?

They are virtual from QGraphicsItem.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100620/f8e2e8cc/attachment.bin 


More information about the Qt-interest-old mailing list