Python Forum
Best way to accomplish this task using PyQt5?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best way to accomplish this task using PyQt5?
#1
I am working on a project that involves these characteristics but I am not sure what is the best way to implement this using PyQt5 and Python 3.6.

Here are the requirements and features:
- Support 1000-10000 primitive type (circle, rect, line...) items in the window
- Some of the items won't move at all (e.g. obstacles), while some others always in motion
- At least 30 FPS
- The canvas can be panned and zoomed
- Need to add other widgets in the window so the canvas can't be the whole thing

I initially implemented this in wxPython. I did this by setting a timer with a specific cycle, and each time the timer triggers, the app repaint everything. I planned to do the same using PyQt5, with QPainter() and stuff. However, I noticed that there's a Graphics View and though it might be a better option.

What do you think? Any comment will be appreciated. Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 2,825 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020