[Qt-interest] Fwd: Displaying 4 icons on image
Yuvaraj R
yuvaraj at ongobiz.com
Wed Jun 10 13:24:36 CEST 2009
Hi
still same issue is i am getting ..please help me to display the icons when
mouse over on image ...previously i had used like giving image location .
that time working
Now i amdownloading the image and stored in Hash table then i am assigning
to Label.. Now it didn't display the image..if mouse on that position it
is showing icons
I don't what's wrong with me
m_ui->label->setPixmap(image);
m_ui->label->setMouseTracking(true);
m_ui->label->installEventFilter(this);
bool Tweet::eventFilter(QObject *o, QEvent *e)
{
qDebug()<<"hi i am at event filter function";
if (o == m_ui->label && e->type() == QEvent::MouseMove )
{
inbutton();
}
if (o == m_ui->label && e->type() == QEvent::Leave)
{
if(m_ui->blockbutton||m_ui->callbutton||m_ui->followbutton||m_ui->retweetbutton&&e->type()==QEvent::MouseTrackingChange)
{
outbutton();
}
else
{
qDebug() << "Nothing is happening";
}
}
}
void Tweet::inbutton()
{
m_ui->blockbutton->show();
m_ui->callbutton->show();
m_ui->followbutton->show();
m_ui->retweetbutton->show();
}
void Tweet::outbutton()
{
m_ui->blockbutton->hide();
m_ui->callbutton->hide();
m_ui->followbutton->hide();
m_ui->retweetbutton->hide();
}
How do solve this issue.. please help me
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090610/5bce0f18/attachment.html
More information about the Qt-interest-old
mailing list