Results 1 to 6 of 6

Thread: Some questions in Qt's Source Code

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Some questions in Qt's Source Code

    1. An explicit constructor makes sure no such statement (implicit conversion) is accepted:
    Qt Code:
    1. QWidget widget = new QWidget;
    To copy to clipboard, switch view to plain text mode 
    Otherwise compiler would accept the above statement because QWidget has a constructor that takes QWidget* (parent).

    2. Take a look at QPointer docs. QPointer is a helper class that provides a guarded pointer.

    3. See our wiki: Private implementation.

    4. Many macros in Qt are just markers for meta-object compiler. That's why many of them are defined as empty.
    J-P Nurmi

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

    vql (16th November 2007)

Similar Threads

  1. Replies: 3
    Last Post: 8th September 2007, 10:06
  2. Qte source code
    By Gaurav vyas in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 1st July 2007, 14:11
  3. Making source code available
    By vermarajeev in forum General Discussion
    Replies: 1
    Last Post: 29th June 2007, 22:01
  4. Source code in qt-win-eval
    By Max Yaffe in forum Newbie
    Replies: 3
    Last Post: 12th April 2007, 14:17
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21:41

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.