Results 1 to 4 of 4

Thread: QTextTableCell vertical align

  1. #1
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QTextTableCell vertical align

    Hi.

    How can I set the vertical alignment to the QTextTableCell contents?

  2. #2
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextTableCell vertical align

    Have a look on setFormat method, and also the QTextCharFormat class..

    http://doc.trolltech.com/4.3/qtextta...html#setFormat
    http://doc.trolltech.com/4.3/qtextcharformat.html

    In QTextCharFormat, you have a method 'setVerticalAlignment'

  3. #3
    Join Date
    Jul 2006
    Posts
    126
    Thanks
    17
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextTableCell vertical align

    Yes, I have view it. But it doesn't appear to work.
    I think that QTextCharFormat is for apply format to characters only

  4. #4
    Join Date
    Jan 2006
    Location
    Paris, France
    Posts
    227
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTextTableCell vertical align

    Oh ok, and did you also check QTextTableFormat ?

    There are some padding / alignment methods...
    I have never really used QTextTable, so I don't have a real sample to do tests

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.