[Qt-creator] Displaying 4 icons on image

Sunil Thaha sunil.thaha at gmail.com
Wed Jun 10 10:45:35 CEST 2009


How is this related to QtCreator?


On Wed, Jun 10, 2009 at 10:12 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote:

> 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
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090610/34d21c5e/attachment.html 


More information about the Qt-creator-old mailing list