Results 1 to 7 of 7

Thread: QPainter Constructor Syntax Question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QPainter Constructor Syntax Question

    Quote Originally Posted by deejross View Post
    Since I already gave an example of creating the object on the heap,
    ...which were wrong. You are missing a *.
    But anyway. What do you don't like with
    Qt Code:
    1. QPainter p(this);
    To copy to clipboard, switch view to plain text mode 
    Would
    Qt Code:
    To copy to clipboard, switch view to plain text mode 
    satisfy you? If so great, because
    Qt Code:
    1. QPainter p(this);
    To copy to clipboard, switch view to plain text mode 
    is just a shorthand for
    Qt Code:
    1. p.begin(this);
    To copy to clipboard, switch view to plain text mode 

    Or please elaborate, what puzzles you exactly.

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

    deejross (25th January 2011)

Similar Threads

  1. Qpainter in Constructor
    By augusbas in forum Newbie
    Replies: 4
    Last Post: 28th October 2010, 00:45
  2. qglwidget and constructor question on mac
    By john_god in forum Qt Programming
    Replies: 0
    Last Post: 17th June 2010, 00:51
  3. QtScript: default constructor question
    By QPlace in forum Qt Programming
    Replies: 1
    Last Post: 22nd October 2009, 19:36
  4. Replies: 0
    Last Post: 31st May 2009, 16:51
  5. QPaintEvent syntax question
    By last2kn0 in forum Newbie
    Replies: 5
    Last Post: 25th January 2008, 20:36

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.