Results 1 to 3 of 3

Thread: Qt Quarterly mistake

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Qt Quarterly mistake

    Hi,

    I was going through this example and I think there is a mistake. Can some one please confirm this?

    In the class RateController a QTimer object called stopWatch is declared. But in the function transfer() it is used to find the elapsed time. Shouldn't this object be "QTime stopWatch" ?

    Thanks for your time.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt Quarterly mistake

    Looks that you're right.

  3. #3
    Join Date
    May 2006
    Location
    Bangalore
    Posts
    23
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt Quarterly mistake

    In Qt Quarterly no. 8:

    In Signal Multiplexer

    There is a slight typo.

    Qt Code:
    1. class DocumentObject
    2. {
    3. public:
    4. virtual DocumentObject() {}
    5. virtual void emitAllSignals() = 0;
    6. };
    To copy to clipboard, switch view to plain text mode 

    I think they mean a virtual destructor. '~' is missing in virtual DocumentObject() {}
    The Keyboard Is Mightier Than The Sword!

Similar Threads

  1. Bug in Qt or Qt Designer or my mistake?
    By [maTa] in forum Qt Programming
    Replies: 5
    Last Post: 9th February 2006, 00:02

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.