Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. A working example of a selection rectangle with grab handles, in a QGraphicsScene
Qt 6.11 is out! See what's new in the release blog

A working example of a selection rectangle with grab handles, in a QGraphicsScene

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.5k 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.
  • P Offline
    P Offline
    Phlip
    wrote on last edited by
    #1

    I know how to write this myself, so pleeze don't reply with "a guess at the step-by-step instructions":http://lists.qt-project.org/pipermail/pyside/2012-June/000533.html . I can muddle through all that myself. I'm asking for a demonstrable example, to avoid the litany of googling for each detail, and the tedium of discovering what details work and which ones don't. (This is the Qt Quick, forum, rite?)

    Many art programs, such as Gimp, allow you to draw a temporary rectangle, then fine-tune it with grab handles. A grab handle on each side lets you pull the side; a grab handle in each corner lets you pull two sides, etc.

    Does anyone have an example of a working application, in any language, with the rest of this system? Beyond the "scene.addRect(x, y, w, h, _pens[color])" part?

    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