[Qt-interest] QGraphicsTextItem Linkactivated signal not getting emitted

AngelWarrior srikanth.bemineni at gmail.com
Tue Dec 1 22:41:54 CET 2009


  Hi,

      I am not able to get the linkActivated signal from a QGraphicsTextItem
even after connecting the signal to a slot.When I click on the text box
there is dashed outline around the text, but the signal never gets emitted

       clicktext = new QGraphicsTextItem(this);
       addToGroup(clicktext);
       QObject::connect((QObject*)clicktext , SIGNAL(linkActivated(const
QString&)),(QObject*)this,SLOT(slot_linkactivated(const QString&)) );
       clicktext->setPlainText(*itr);

clicktext->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::LinksAccessibleByKeyboard);
       cfm.width("start");
       clicktext->setFont(dfont);
       clicktext->setDefaultTextColor(Qt::blue);
       clicktext->setPos(20,wheight+5);
       wheight += clicktext->boundingRect().height() -5 ;
       clicktext = NULL;

-- 
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091201/d826f3fe/attachment.html 


More information about the Qt-interest-old mailing list