Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. qpolygon
    Log in to post

    • UNSOLVED rotated qgraphicssceneitem bounding rect
      General and Desktop • qgraphicsscene qgraphicsitem rotation qrect qpolygon • • Loc888  

      2
      0
      Votes
      2
      Posts
      11
      Views

      On the right side there is the item without any rotation, after 45 degree rotation on the left side, the blue figure it's the generated polygon which is trying to imitate the scene object rotation, and the yellow figure, it's the final rect generated by the rotated_poly().boundingRect(), but the "coordiantion" if i can name it this was seems wrong, the yellow rect should be same size as the blue one, and the position should be on the center of the item... Idk what to do with it, i tryied many combinations and this one seems "the best", but still not a valid result.
    • UNSOLVED QMessageBox closes application
      General and Desktop • connect mousepressevent qpolygon • • hobbyProgrammer  

      35
      0
      Votes
      35
      Posts
      1362
      Views

      @hobbyProgrammer said in window closes after completing certain actions.: @JonB Hi, just a quick update. I think it does get there, but it prints this part before going executing the slot. It's really important for those who try to help you to give accurate description of what does/does not happen. Everyone was trying to figure how your connect() could not complete and get to the next line....
    • SOLVED Check if a QPoint lies within a QPolygon
      General and Desktop • qpoint qpolygon mousepresseven • • hobbyProgrammer  

      5
      0
      Votes
      5
      Posts
      401
      Views

      @JonB oh that was really stupid. I was meant to check another QVector of QPolygons...