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. Circular sector - custom widget.
Qt 6.11 is out! See what's new in the release blog

Circular sector - custom widget.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 768 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.
  • M Offline
    M Offline
    Maser
    wrote on last edited by Maser
    #1

    Hi.
    I need to make an adjustable circular sector(something like this).
    I want to draw it over a map(a simple coodinate system) and it must be adjustable with a mouse. Adjustable in angle and in direction.
    Now a simle way that comes into my mind is just using one painter and then controll mouse position and click to manipulate the painting.
    A more fancy way would be to paint the sector somehow as an overlay. And with the two radial lines of the sector acting like slider, mousefomt changing over them and such.
    Any suggestion how i coud approach it best?

    kshegunovK 1 Reply Last reply
    0
    • M Maser

      Hi.
      I need to make an adjustable circular sector(something like this).
      I want to draw it over a map(a simple coodinate system) and it must be adjustable with a mouse. Adjustable in angle and in direction.
      Now a simle way that comes into my mind is just using one painter and then controll mouse position and click to manipulate the painting.
      A more fancy way would be to paint the sector somehow as an overlay. And with the two radial lines of the sector acting like slider, mousefomt changing over them and such.
      Any suggestion how i coud approach it best?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @Maser
      Look up the GraphicsView framework. Widgets doesn't sound like a good idea for the thing you're describing.

      Kind regards.

      Read and abide by the Qt Code of Conduct

      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