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. Resizing a control with the mouse
Qt 6.11 is out! See what's new in the release blog

Resizing a control with the mouse

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 567 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.
  • J Offline
    J Offline
    janosh
    wrote on last edited by
    #1

    Hi All,

    I'm new to QML, sorry if I ask something that's already answered, but I couldn't find it.
    I'd like to have a control (a Rectangle containing a TextEdit) which shows the usual triangular sign in its lower right corner for resizing. If the user hovers the mouse over this area the cursor should change to the diagonal double arrow. If she presses the left button and drags the mouse the control should resize. (Just like the nwe post edit area of this forum, where I'm typing right now.)
    Can you please give some hints on how to implement this behavior?

    Thanks in advance,
    Janos

    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