Results 1 to 2 of 2

Thread: Operator Overloading

  1. #1
    Join Date
    Jan 2011
    Location
    Australia
    Posts
    44
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows Symbian S60

    Default Operator Overloading

    does anybody know what is this operator overloading called?

    Qt Code:
    1. virtual operator progress() const;
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Operator Overloading

    this is typecast operator overloading, and this will cast / convert this to progress type

    Edit: it being virtual function, the derived classes can redefine it to have dynamic behavior when converted to progress type
    Last edited by Santosh Reddy; 19th July 2011 at 05:25.

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

    mvuori (19th July 2011)

Similar Threads

  1. SOLVED: Operator overloading QDataStream
    By eekhoorn12 in forum Qt Programming
    Replies: 1
    Last Post: 9th May 2010, 23:55
  2. QList Overloading operator==()
    By josepvr in forum Qt Programming
    Replies: 8
    Last Post: 28th January 2009, 15:28
  3. overloading global "new" operator
    By mickey in forum General Programming
    Replies: 0
    Last Post: 10th April 2008, 17:01
  4. operator [] overloading
    By darksaga in forum General Programming
    Replies: 5
    Last Post: 8th April 2008, 15:27
  5. Simple: Operator overloading with heap objects
    By durbrak in forum General Programming
    Replies: 12
    Last Post: 25th April 2007, 13:20

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.