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

need canvas like container with resizable rectangles

Scheduled Pinned Locked Moved Solved QML and Qt Quick
qml
3 Posts 2 Posters 723 Views 2 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.
  • A Offline
    A Offline
    Alp Hancioglu
    wrote on 30 Jul 2018, 17:50 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 30 Jul 2018, 18:04 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 3 Aug 2018, 14:06 last edited by
        #3

        @mrjj Yes it helped, thanks.

        1 Reply Last reply
        0

        1/3

        30 Jul 2018, 17:50

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved