[Qt-interest] need help in qt programing

rashmi yadav rashufatty at gmail.com
Mon Nov 15 06:36:21 CET 2010


dear all,

for (int y = 0; y < size.height(); ++y) {
        iconGrid[y].resize(size.width());
        for (int x = 0; x < size.width(); ++x) {
            RoundRectItem *rect = new RoundRectItem(iconRect, iconColor,
this);
           * rect->setTransformOriginPoint(50,50); //to have zoomin effect*
            *rect->setToolTip(QString("hello %1").arg(x)); //display text
string*
            rect->setZValue(1);
            rect->setPos(posForLocation(x, y, size));
            rect->setPixmap(pixmaps.at(n++ % pixmaps.size()));
            iconGrid[y][x] = rect;
        }
    }
i have done following changes to examlpes/grahicsview/padnavigator program
to display text message wen cursor is placed on it.wen i compile program i
have no error but wen i execute this program i cant see any text message on
screen. could anyone plz help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101115/97871a45/attachment.html 


More information about the Qt-interest-old mailing list