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. need canvas like container with resizable rectangles
QtWS25 Last Chance

need canvas like container with resizable rectangles

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qml
3 Posts 2 Posters 714 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.
  • A Offline
    A Offline
    Alp Hancioglu
    wrote on last edited by
    #1

    I am new to qt and I need a canvas like element for my qml app. I need to have a object(possibly derived from rectangle) that can be pulled from its sides by dragging and resized. I want it to be object because I want to assign other properties. Qml canvas has paint signal for drawing so not ideal for my purpose. There can be up to a 1000 rectangles and this is a desktop app. Thanks

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      maybe this help with the resize part ?
      https://stackoverflow.com/questions/29087710/how-to-make-a-resizable-rectangle-in-qml

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Alp Hancioglu
        wrote on last edited by
        #3

        @mrjj Yes it helped, thanks.

        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