Results 1 to 5 of 5

Thread: QPixmap problem.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2009
    Posts
    6
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default QPixmap problem.

    I encounted compile phase problem.
    The following code can be not compliled.
    Is this C++ specification? Or, Qt specification?
    Qt Code:
    1. /*use automatic variable for QPixmap instance*/
    2. QPixmap p();//OK
    3. p.loadFromData();//N.G. complile error.
    4.  
    5. /*use new operator for QPixmap instance.*/
    6. QPixmap* p = new QPixmap();//OK
    7. p->loadFromData();//OK.
    To copy to clipboard, switch view to plain text mode 
    Last edited by muny; 4th November 2009 at 17:27.

Similar Threads

  1. Zoom in Problem for QPixmap
    By jsmith in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2009, 10:27
  2. Problem in using QHttp with QTimer
    By Ferdous in forum Newbie
    Replies: 2
    Last Post: 6th September 2008, 12:48
  3. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  4. Steps in solving a programming problem?
    By triperzonak in forum General Programming
    Replies: 8
    Last Post: 5th August 2008, 08:47
  5. QPixmap and HBITMAP
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st June 2006, 16:24

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.