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. QGraphicsItem resizing approach
Forum Updated to NodeBB v4.3 + New Features

QGraphicsItem resizing approach

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

    I have got various QGraphicsItem's which are drawn on the QGraphicsScene. Currently, for resizing the items, I have provided a widget which opens when context menu is invoked on any item, the user then enters the value of width and height as required for the size to be altered. This works.

    I am looking for resizing as can be done in some Microsoft apps when the user selects a graphics items, the bounding rect is highlighted, the user
    then expands and contracts one of the corners for the width and height to get altered. Is there any existing solution for this which I'm not aware of or some example implemented which can be adapted.

    raven-worxR 1 Reply Last reply
    0
    • faiszalkhanF faiszalkhan

      I have got various QGraphicsItem's which are drawn on the QGraphicsScene. Currently, for resizing the items, I have provided a widget which opens when context menu is invoked on any item, the user then enters the value of width and height as required for the size to be altered. This works.

      I am looking for resizing as can be done in some Microsoft apps when the user selects a graphics items, the bounding rect is highlighted, the user
      then expands and contracts one of the corners for the width and height to get altered. Is there any existing solution for this which I'm not aware of or some example implemented which can be adapted.

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

      @faiszalkhan
      this might be of interest for you

      --- 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

      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