Results 1 to 13 of 13

Thread: subclassing/inheritance QObject problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Knoxville, TN
    Posts
    14
    Qt products
    Qt3
    Platforms
    Unix/X11
    Thanks
    2

    Default subclassing/inheritance QObject problem (now vtable)

    Hi all,
    I am having trouble integrating (by subclassing) an external C++ library into Qt. This library contains some unix sockets classes, which of course contains the connect(.....) function.
    Of course this clashes with QObject when I try to subclass it. I get the following error:

    no matching function for call to 'Server::connect(int&, sockaddr*, unsigned int)' .....
    candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*)
    Is there any way I can fix this without rewriting the external library to use Qt's network functions? (I really don't want to do this because this external library is being maintained independently and I want to make as few changes to it as possible).

    Thanks!
    Last edited by cbeall1; 13th February 2006 at 04:10.

Similar Threads

  1. Possibly an inheritance problem with QObject?
    By chadkeck in forum Qt Programming
    Replies: 8
    Last Post: 5th November 2008, 01:26
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Problem with my object hierarchy
    By rage in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 09:18
  4. Can't create an object : initialisation problem ?
    By Nyphel in forum Qt Programming
    Replies: 5
    Last Post: 12th March 2007, 09:07
  5. Problem with Destructor of QObject
    By mikro in forum Qt Programming
    Replies: 5
    Last Post: 9th July 2006, 19:05

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.