Results 1 to 3 of 3

Thread: QWidget::metric:Invalid metric command

  1. #1
    Join Date
    Mar 2009
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QWidget::metric:Invalid metric command

    Hi all,
    I meet an "QWidget::metric:Invalid metric command" error when I run my program.
    why? Thanks!

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QWidget::metric:Invalid metric command

    can you show us your code?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  3. #3
    Join Date
    Mar 2009
    Posts
    20
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QWidget::metric:Invalid metric command

    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.

Similar Threads

  1. Replies: 0
    Last Post: 1st March 2009, 00:18
  2. Program not compiling on Fresh install of Leopard
    By dvmorris in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 11:22
  3. Intercept Ctrl-c from the command line
    By irudkin in forum Qt Programming
    Replies: 1
    Last Post: 21st August 2007, 22:05
  4. Qt 4.2.3 Configure Issue...
    By amcdaniel in forum Installation and Deployment
    Replies: 4
    Last Post: 13th May 2007, 13:02
  5. QProcess in a QThread
    By chombium in forum Qt Programming
    Replies: 2
    Last Post: 11th January 2006, 16:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.