Results 1 to 7 of 7

Thread: Trouble using custom datatype (QMetaType) in QtTest

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Trouble using custom datatype (QMetaType) in QtTest

    Qt Code:
    1. QCOMPARE(customVector, result);
    To copy to clipboard, switch view to plain text mode 
    this code compares a CustomVector* to a bool (using QTest::qCompare; as qCompare is declared as a template function, this does indeed compile). It does not link, however, as qCompare<> is not specialized for those types.
    (And probably you did not want to compare the pointer to a bool, did you? Doesn't make too much sense.)

  2. The following user says thank you to caduel for this useful post:

    perden (1st September 2009)

Tags for this Thread

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.