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. 2D editable grid

2D editable grid

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 511 Views 1 Watching
  • 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.
  • T Offline
    T Offline
    TontonLeon
    wrote on last edited by
    #1

    Hello,

    I'm a new Qt user, and I'm trying to code a small application for educational purposes.
    It's a graphic application, the user load an image in a scene, and on top of that image I want to set a layer which contains a 2D grid.
    The 2D grid is editable, let me explain: each point located at the intersection of two lines of the grid can be moved.
    And here comes my questions:

    • How is it even possible to simulate the layer concept just like applications like Gimp or Photoshop do ?
    • And finally, I heard about QGraphicsItem, is it a good idea for a 2D editable grid ?

    Thank you for reading (my apologies if there are some english mistakes).

    K 1 Reply Last reply
    0
    • T TontonLeon

      Hello,

      I'm a new Qt user, and I'm trying to code a small application for educational purposes.
      It's a graphic application, the user load an image in a scene, and on top of that image I want to set a layer which contains a 2D grid.
      The 2D grid is editable, let me explain: each point located at the intersection of two lines of the grid can be moved.
      And here comes my questions:

      • How is it even possible to simulate the layer concept just like applications like Gimp or Photoshop do ?
      • And finally, I heard about QGraphicsItem, is it a good idea for a 2D editable grid ?

      Thank you for reading (my apologies if there are some english mistakes).

      K Offline
      K Offline
      kenchan
      wrote on last edited by
      #2

      @TontonLeon
      Yes that is doable using the Graphics View Framework.
      this example might be of interest, other examples can be found here.

      1 Reply Last reply
      2
      • T Offline
        T Offline
        TontonLeon
        wrote on last edited by
        #3

        Thank you, that's nearly the thing I had in mind, I've missed that example when I was reading the documentation.
        I'll read that carefully !

        Have a good day !

        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