[Qt-interest] Fwd: Displaying 4 icons on image
Yuvaraj R
yuvaraj at ongobiz.com
Wed Jun 10 11:14:15 CEST 2009
Hi
First of all i assigned the image to label .when mouse over on image it
will show 4 icons
if use the static image(giving as image location in system) it is showing
icons on image..if i use the downloaded images the icons couldn't displaying
on image...
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/fc9dd634/attachment.html
More information about the Qt-interest-old
mailing list