Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Widget vs Graphics View for drawing application
QtWS25 Last Chance

Qt Widget vs Graphics View for drawing application

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 672 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    qtboy
    wrote on last edited by
    #1

    I have read several discussions about Qt Widget vs Graphics View but still cannot decide which one is better.
    More specifically, I am building a drawing software(similar to Pencil2D/Krita)- it will support pressure sensitivity, zoom, pan, playback etc.
    I looked at Pencil2D, Krita code. They are using QWidget. I am wondering why. I heard that if user need to interact with the objects frequently
    then Graphics View is better option. But also heard that GraphicsView framework does not use the GPU, and runs single-threaded only (exception: You could create the QImages in a separate thread).

    I am worried about performance- it needs to be fast as the user can try drawing fast in tablet and it should respond quickly. Also, the user should be able to zoom and draw in a fine scale.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Well GraphicsView is very object oriented
      and support move and zoom out of the box and is perfect base for
      a vector type of diagramming tool.

      But for pure raster operations, like pixel drawing, its do not offer much and
      might not be the best base for photoshop type application.

      If you load the 40.000 sample, u will see that GraphicsView do has performance for
      the operations it does well.

      So for a raster pen drawing program, you might be more happy taking something like
      http://sourceforge.net/projects/qwt/
      and transform into drawing app with zoom.

      But its just my opinion. All is possible with Qt so someone might have a good idea to make GraphicsView work well.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved