Results 1 to 2 of 2

Thread: QPlainTextEdit is slow when implementing custom resize of parent window

  1. #1
    Join Date
    Jul 2011
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QPlainTextEdit is slow when implementing custom resize of parent window

    Hi, all

    I'm working on a Web Editor I'm building from scratch using a frameless-window so I have had to implement resizing myself.

    The problem is that if I fill in as little as a 100 lines of html-code - with or without wordwraping - it gets realy slow to resize the parent window.
    The QPlainTextEdit is placed in a layout with the Expanding policy.

    The way I implemented the resize functionality is through a cornerWidget on the QPlainTextEdit itself, using mousePress-, mouseMove-, and mouseReleaseEvent's. This works fine when the QPlainTextEdit is empty.

    Thanks for any pointers on how to proceed =D

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,716
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QPlainTextEdit is slow when implementing custom resize of parent window

    You can start by posting the your resize code.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 5
    Last Post: 21st April 2010, 21:36
  2. Replies: 11
    Last Post: 4th June 2008, 07:22
  3. QTextEdit super slow resize
    By bunjee in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2008, 17:09
  4. Implementing paint in a child of a parent
    By drarem in forum Newbie
    Replies: 1
    Last Post: 21st June 2007, 16:28
  5. Implementing Resize funtionality
    By PiXeL16 in forum Qt Programming
    Replies: 2
    Last Post: 14th February 2007, 23:12

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.