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 widgets using drag & drop
Forum Updated to NodeBB v4.3 + New Features

Resizing widgets using drag & drop

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.0k 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.
  • A Offline
    A Offline
    andre
    wrote on 5 Jul 2012, 07:21 last edited by
    #1

    Moved to a new topic, because it is a different question. The "original topic":https://qt-project.org/forums/viewthread/18486/ was on styling the line edit.

    [quote author="Plissken" date="1341420919"]If I wanted to allow the user to resize the width or height of the widget, could that be done using slots and signals? I'm thinking possibly:

    on click -> draw a resize rectangle around the widget.
    on mouse move -> resize the widget
    on mouse click release -> redraw the resize rectangle around the resized widget.

    This would allow users to customize the size of certain widgets and I can still use stylesheets instead of overriding paintEvent.
    [/quote]

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on 5 Jul 2012, 07:25 last edited by
      #2

      That isn't standard functionality. It will take quite a bit of programming to get this to work properly.

      1 Reply Last reply
      0

      1/2

      5 Jul 2012, 07:21

      • Login

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