Results 1 to 3 of 3

Thread: Error creating subclasses

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Error creating subclasses

    Define a constructor with no arguments...
    And don't forget the class destructor, and make it virtual (for all base classes), like this:
    Qt Code:
    1. class siCore {
    2. public:
    3. siCore(){...}
    4. //...
    5. virtual ~siCore(){//... actual cleaning of dynamic allocated resources
    6. }
    7. };
    To copy to clipboard, switch view to plain text mode 

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

    agerlach (26th May 2010)

Similar Threads

  1. Why slots in QThread subclasses are unsafe?
    By AlphaWolf in forum Qt Programming
    Replies: 8
    Last Post: 30th May 2010, 15:39
  2. declaring subclasses in C++
    By Paat in forum Newbie
    Replies: 4
    Last Post: 23rd October 2009, 08:40
  3. Linking Error when Creating DLL with Visual Studio
    By stretchtiberius in forum Qt Programming
    Replies: 6
    Last Post: 10th February 2009, 19:31
  4. create a Class inherits from two QObject subclasses
    By sabeesh in forum Qt Programming
    Replies: 17
    Last Post: 31st December 2007, 12:04
  5. Compilation error creating a project on QT4.0.1??
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 8th March 2006, 08:16

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.