Results 1 to 2 of 2

Thread: QTextEdit Alignment

  1. #1
    Join Date
    Mar 2006
    Posts
    29
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTextEdit Alignment

    Hi All

    I am using VS 2005 with Qt 4.1. I have placed one QTextEdit control on the form.it is 400 width and 500 height. What I want is , 5 or 10 margin size i should have around all sides

    See below for sample

    Hi Text Should Be coming like Welcome Welcome Welcome Welcome Welcome
    Hi Welcome Welcome Welcome Welcome Welcome Welcome Welcome Welcme

    ^
    ! -> See the space from left and right

    What i have to do this

    looking forward your favourable reply

    warm regards
    vijay

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTextEdit Alignment

    Create layout,add your text box to it and set margin for layout
    a life without programming is like an empty bottle

Similar Threads

  1. Replies: 1
    Last Post: 21st November 2009, 20:38
  2. Drawing on QTextEdit
    By jgrauman in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2009, 09:40
  3. Replies: 2
    Last Post: 30th December 2008, 21:35
  4. QTextEdit slow to insert text
    By thomaspu in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 12:05
  5. QTextEdit Alignment won't stick
    By jrideout in forum Qt Programming
    Replies: 3
    Last Post: 10th January 2007, 15:54

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.