Results 1 to 3 of 3

Thread: Make a widget resizable by user - does it exist in Qt?

  1. #1
    Join Date
    Jul 2015
    Posts
    20
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Make a widget resizable by user - does it exist in Qt?

    I need to make user possible to resize a Label or PlainTextEdit object. I mean the thing like in Qt Creator. If you select your widget some squares appear on it's corner and on halves of the edges. If you move a square you can resize your object. I need to make the exact same thing inside a Qt window. Is it possible to make it faster rather than just drawing all squares with code and catching the moment when user grabs a square and moves it?
    I'm wondering since Qt is written in Qt... Maybe there is an easy option.

  2. #2
    Join Date
    Apr 2013
    Location
    Prague
    Posts
    258
    Thanks
    3
    Thanked 65 Times in 59 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Make a widget resizable by user - does it exist in Qt?

    AFAIK, it isn't. You need to do everything yourself. Sorry. The QWidget class offers all needed tools for it (except drawing the squares).

  3. The following user says thank you to Radek for this useful post:

    Grzyboo (28th July 2015)

  4. #3
    Join Date
    Jul 2015
    Posts
    20
    Thanks
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Make a widget resizable by user - does it exist in Qt?

    Well, thanks. It doesn't seem like a really hard task so I think it's fine.
    I just wanted to know since it's used in QtCreator, it was reasonable to think that some part of it might have been put in Qt tools.

Similar Threads

  1. User Resizable Layout
    By enricong in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2011, 07:40
  2. make child widget resizable
    By mak_user in forum Newbie
    Replies: 1
    Last Post: 29th March 2011, 06:07
  3. how to prevent QGraphicsView() resizable by user
    By wagmare in forum Qt Programming
    Replies: 3
    Last Post: 24th February 2009, 15:47
  4. QGraphicsView user-resizable images - for children
    By magland in forum Qt Programming
    Replies: 2
    Last Post: 5th October 2007, 17:21
  5. user resizable and movable QLabel widget
    By hvengel in forum Qt Programming
    Replies: 8
    Last Post: 12th April 2007, 01:01

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.