Results 1 to 2 of 2

Thread: Paint() not invoked by QGraphicsScene

  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Paint() not invoked by QGraphicsScene

    Hi,

    I'm building a project for school which is partly similar to the DiagramScene-example.
    I'm rewriting the arrow class so that it can draw arrows which consist of multiple lines.
    My problem is that when I create this item and add it to the scene, the paint() method isn't called by the scene.
    I am not allowed to put my code here, but do any of you have an idea on what might cause this problem?

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

    Default Re: Paint() not invoked by QGraphicsScene

    The method signature might not match.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 15
    Last Post: 11th December 2012, 20:10
  2. Replies: 10
    Last Post: 2nd March 2011, 11:25
  3. How to find out whom invoked a slot?
    By vulee in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2010, 21:55
  4. Replies: 2
    Last Post: 16th September 2010, 11:33
  5. Replies: 1
    Last Post: 26th December 2007, 10:58

Tags for this Thread

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.