Results 1 to 8 of 8

Thread: Changing painter settings for QPixmap

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2008
    Location
    Murfreesboro, TN
    Posts
    10
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Question Changing painter settings for QPixmap

    I keep getting an unhandled exception when I do the following:

    QPixmap p;

    p = new QPixMap(600, 2500);

    // crashes out on the set...will also crash out on anything tied to the painter.
    p->paintEngine()->painter()->setPen(Qt::blue);

    I figure I am doing a horribly novice mistake here so any help would be awesome.

    Thanks for your time,
    Jon Jones
    Last edited by spagatoni; 22nd October 2008 at 03:31.

Similar Threads

  1. Problem with Painter in Qt4.4.1
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2008, 13:47
  2. Scaling
    By AD in forum Qt Programming
    Replies: 16
    Last Post: 11th July 2008, 10:55

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.