[Qt-interest] repaint not working

Doug Stewart doug.dastew at gmail.com
Tue May 31 15:35:00 CEST 2011


We have a project that 3 people are working on. The repaint works in the
Mac. the same code compiled on Ubuntu does not work.

{

    connect(this, SIGNAL(pointChanged()), this, SLOT(repaint()));

}


...


     qDebug() << "I'm  trying to paint 0000000000000";

    if ( newPoint != oldPoint ) {

        m_input_map->getSet(m_held_set)->setPoint(m_sets_point, newPoint);

		setUpdatesEnabled(true);

	 //   emit pointChanged();

	//	emit repaint();

		QWidget::repaint() ;

		qDebug() << "I'm  trying to paint";

    }

     qDebug() << "Set:" << m_held_set << " Point:" << m_sets_point;

    qDebug() << "At:" << event->pos();



As you can see I have been trying different thing to see if I can get
it to work.

This code is executed as the debug messages are see.

The changes that the code makes the the view are there, as they can be
seen by forcing a system repaint by moving a different window over
this one and then moving it away.

When the window is thus redisplayed the changes that were expected are there.


So --- why on Ubuntu it won't repaint?  As I said it works on a Mac.



Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110531/5a2b46cc/attachment.html 


More information about the Qt-interest-old mailing list