Results 1 to 2 of 2

Thread: problem using a .h file's methods

  1. #1
    Join Date
    Apr 2007
    Posts
    117
    Thanks
    84
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default problem using a .h file's methods

    I can't seem to use the lines
    RGBImage binaryRgbImage;
    binaryRgbImage = (RGBImage) binaryComplement(rgbImage);

    by the way RGBImage is an extension of class Image as defined in the image.h attachment.

    I also have a compilation problem that is related with using the previous lines.
    On compilation I have an error in my binary.h it says
    error: in passing argument 1 of `Image<unsigned char>
    binaryComplement(const Image<unsigned char>&)'
    in line 4.

    image.h

    binary.cpp

    binary.h
    Last edited by sincnarf; 27th August 2007 at 15:33. Reason: wrong info
    Image Analysis Development Framework Using Qt (IADFUQ)

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: problem using a .h file's methods

    Please post the exact error messages, but it seems that you simply mix Image<int> and Image<unsigned char>.

  3. The following user says thank you to jacek for this useful post:

    sincnarf (4th October 2007)

Similar Threads

  1. can't reuse a pure c++ .h file's methods and classes
    By sincnarf in forum General Programming
    Replies: 11
    Last Post: 3rd August 2007, 03:39
  2. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  3. problem with include files
    By JR in forum General Discussion
    Replies: 2
    Last Post: 22nd December 2006, 20:44
  4. Problem converting .ui files from Qt3 to 4
    By Amanda in forum Qt Programming
    Replies: 6
    Last Post: 28th October 2006, 04:34
  5. [Win32/VC++ 8.0] Strange problems with qrc_*.cpp files
    By mloskot in forum Installation and Deployment
    Replies: 6
    Last Post: 6th March 2006, 10:28

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.