PDA

View Full Version : QWidget::metric:Invalid metric command



aaron
1st April 2009, 10:44
Hi all,
I meet an "QWidget::metric:Invalid metric command" error when I run my program.
why? Thanks!

spirit
1st April 2009, 10:54
can you show us your code?

aaron
3rd April 2009, 01:59
Hi all,
I have solved this problem. The reson maybe is that I declare some virtual functions in base class and sub-class, but I do not declare virtual destructor, maybe some memory do not release. So I declare virtual destructor in both base class and sub-class.