Results 1 to 5 of 5

Thread: tab stops ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    travelling
    Posts
    1,116
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 127 Times in 121 Posts

    Default Re: tab stops ?

    Quote Originally Posted by ixM View Post
    But this doesn't help since, it doesn't allow me to clampse the text to the right border of the text.
    I'm afraid this is not the purpose of tabs. You'll probably have to play with tables/frames and alignment attributes to achieve that or you'll have to work at a lower level (QAbstractTextDocumentLayout for instance) and tweak the behavior of the document framework so that tabs mean what you want them to but that won't be easy.

    Quote Originally Posted by ixM View Post
    Plus I wasn't able to figure out how to set the QTextDocument format in order that it would have the dimension of an A4 sheet.
    QTextDocument::setPageSize(const QSize&) maybe?
    Current Qt projects : QCodeEdit, RotiDeCode

  2. The following user says thank you to fullmetalcoder for this useful post:

    ixM (30th May 2009)

Similar Threads

  1. Replies: 8
    Last Post: 15th September 2021, 06:35
  2. Replies: 2
    Last Post: 23rd July 2012, 08:42
  3. QTimer stops after system time change
    By djurodrljaca in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2009, 20:36

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
  •  
Qt is a trademark of The Qt Company.