Results 1 to 2 of 2

Thread: Reimplementing a function without sub-classing?

  1. #1
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Reimplementing a function without sub-classing?

    Is it possible to re-implement a function without sub-classing? Something like link such function to a external function?

    Thanks?

  2. #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: Reimplementing a function without sub-classing?

    If you want exactly same function (with the same parameter number/type) the answer is: no, you can't.

    But you can overload with different number/type of parameters (but you can't overload with different return type)

Similar Threads

  1. Reimplementing a Widgets Look
    By Stobie in forum Qt Programming
    Replies: 8
    Last Post: 11th January 2010, 10:10
  2. Sub classing QLineEdit
    By kavinsiva in forum Newbie
    Replies: 2
    Last Post: 13th October 2009, 17:48
  3. Sub classing QListWidgetItem
    By Majdi in forum Newbie
    Replies: 3
    Last Post: 27th February 2009, 18:30
  4. Reimplementing QApplication::notify()
    By Doug Broadwell in forum Newbie
    Replies: 3
    Last Post: 13th June 2007, 07:53
  5. Replies: 18
    Last Post: 22nd February 2006, 20:51

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.