Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Add points to a Scene

    General and Desktop
    2
    3
    1042
    Loading More Posts
    • 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.
    • AlvaroS
      AlvaroS last edited by

      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-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @AlvaroS last edited by

        @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

        AlvaroS 1 Reply Last reply Reply Quote 1
        • AlvaroS
          AlvaroS @raven-worx last edited by

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

          1 Reply Last reply Reply Quote 1
          • First post
            Last post