Results 1 to 13 of 13

Thread: Limitations to QPolygonF?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2011
    Posts
    20
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Limitations to QPolygonF?

    Is there any limitations to how many points a QPolygonF can contain?
    I have in my scene several polygons and when I use my "drawing tool" to draw some lines it crashes. But It only crashes when I add a polygon which contains 130188 points to be exact. If I don't add it everything works just fine.
    I only uploaded the sourcefiles so it will not compile due to some dependencies I haven't included but I thought it would be better than printing whole classes in the thread?

    This is how I populate the scene in graphicView.cpp
    Qt Code:
    1. for(int i=0;i<shp.getPolygons().size();i++)
    2. {
    3. MapLine* t = new MapLine(shp.getPolygons()[i]);
    4. scene->addItem(t);
    5. }
    To copy to clipboard, switch view to plain text mode 

    And on this line it crashes in MyScene.cpp
    Qt Code:
    1. QList<QGraphicsItem*> test = currentDrawItem->collidingItems(Qt::IntersectsItemShape);
    To copy to clipboard, switch view to plain text mode 
    Attached Files Attached Files

Similar Threads

  1. QPolygonF precision?! is it possible?!
    By fatecasino in forum Newbie
    Replies: 11
    Last Post: 27th January 2011, 02:36
  2. QTreeWidget Delegate setModelData limitations
    By kubas in forum Qt Programming
    Replies: 0
    Last Post: 8th September 2009, 08:40
  3. Sorting QPolygonF
    By giusepped in forum Qt Programming
    Replies: 3
    Last Post: 7th January 2009, 08:34
  4. QHttp Limitations?
    By rage in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 25th September 2007, 11:58
  5. QGraphicsScene/QGraphicsView window limitations
    By mistertoony in forum Qt Programming
    Replies: 11
    Last Post: 17th February 2007, 08:10

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.