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. Add points to a Scene
Forum Updated to NodeBB v4.3 + New Features

Add points to a Scene

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.3k 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.
  • AlvaroSA Offline
    AlvaroSA Offline
    AlvaroS
    wrote on last edited by
    #1

    Hello everyone.

    I would like to add points in red color and with this format "X (Crossings)".
    but I realize that there is no addPoint in scene...
    I know hot to add Lines, polygons... but how can I add Points?? Or just draw it in a scene

    Thanks a lot

    raven-worxR 1 Reply Last reply
    0
    • AlvaroSA AlvaroS

      Hello everyone.

      I would like to add points in red color and with this format "X (Crossings)".
      but I realize that there is no addPoint in scene...
      I know hot to add Lines, polygons... but how can I add Points?? Or just draw it in a scene

      Thanks a lot

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @AlvaroS
      A point is a point.
      If you want to display it differently you need to create a custom QGraphicsItem or use a QGraphicsPixmapItem instead for example.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      AlvaroSA 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @AlvaroS
        A point is a point.
        If you want to display it differently you need to create a custom QGraphicsItem or use a QGraphicsPixmapItem instead for example.

        AlvaroSA Offline
        AlvaroSA Offline
        AlvaroS
        wrote on last edited by
        #3

        @raven-worx Here the solution: http://stackoverflow.com/questions/9493578/how-to-add-points-in-qgraphicsview
        Thanks

        1 Reply Last reply
        1

        • Login

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