Results 1 to 4 of 4

Thread: Is this a bug?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,371
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Is this a bug?

    Hmm... what happens if you call Q_DECLARE_METATYPE more than once on the same type?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Apr 2010
    Posts
    8
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Is this a bug?

    hi,

    if you call Q_DECLARE_METATYPE for the second time on the same type, qmetatypestatictype returns a valid id (line 11 in the referenced code from my previous post). in that case, the handler only performs a rather simple test (look at the section highlighted as /* OLD_CODE */ in the code fragment in my previous post, line 51-55 + 64). in particular, the handler is not updated in terms of the callback handlers defined by the bew class declared as a metatype.

    in my modification, this is what i do ( refer to section highlighted by /* NEW_CODE */, line 42-50): update the callback pointers whenever Q_DECLARE_METATYPE is called in adjacent calls.

    best regards

    hauke

  3. #3
    Join Date
    Apr 2013
    Posts
    64
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Is this a bug?

    Has it been fixed? I am still having crash in case of dll

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.