Results 1 to 2 of 2

Thread: plugin crashes designer but not app

  1. #1
    Join Date
    Feb 2006
    Posts
    26
    Qt products
    Qt3
    Platforms
    MacOS X Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default plugin crashes designer but not app

    Hi there,

    I have a plugin that crashes designer when I place it on a form, but works flawlessly within an app.

    How do you locate the code within a plugin that causes this behavior? Can you add print statements that you can see someplace? Is there another way?

    Thank you,

    Jay

  2. #2
    Join Date
    Feb 2006
    Posts
    26
    Qt products
    Qt3
    Platforms
    MacOS X Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: plugin crashes designer but not app

    Quote Originally Posted by jayw710 View Post
    I have a plugin that crashes designer when I place it on a form, but works flawlessly within an app.

    How do you locate the code within a plugin that causes this behavior? Can you add print statements that you can see someplace? Is there another way?
    Well, I traced it to the Q_PROPERTY functions. It appears that Designer tries out every one of these functions upon creation of the widget. There was a small error in one of those functions.

    So, advice for Designer plugins: If a plugin works in an app but crashes Designer, try calling all of the Q_Property functions and see if they hicough.

    Jay

    p.s. I'd still like to know how to track code errors within Designer, if people have suggestions.

Similar Threads

  1. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 18:33
  2. Replies: 1
    Last Post: 22nd January 2007, 13:13
  3. Replies: 13
    Last Post: 15th December 2006, 12:52
  4. Designer crashes when selecting some widgets
    By gwendal in forum Qt Tools
    Replies: 4
    Last Post: 21st July 2006, 14:18
  5. Replies: 5
    Last Post: 23rd May 2006, 12:40

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
  •  
Qt is a trademark of The Qt Company.