Results 1 to 4 of 4

Thread: Text orientation in header from QStandardItemModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Text orientation in header from QStandardItemModel

    Well, since a model doesn't have a header the original (year-old) question makes little sense.

    Your approach with replacing the header view painting is good but you may also need to translate the drawing to keep it visible, and adjust the size of the sections (reimp. sectionSizeFromContents()) for the narrower width/taller height.

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

    Djab (2nd October 2012)

Similar Threads

  1. QListWidgetItem's icon and text orientation
    By circass in forum Qt Programming
    Replies: 5
    Last Post: 17th June 2010, 08:03
  2. QTabBar Text and Icon orientation
    By Gravis in forum Qt Programming
    Replies: 0
    Last Post: 16th December 2009, 08:55
  3. QLineEdit text orientation
    By emrares in forum Qt Programming
    Replies: 7
    Last Post: 15th September 2009, 06:25
  4. Replies: 3
    Last Post: 1st February 2008, 18:18
  5. Vertical Orientation of Text.
    By ashukla in forum Qt Programming
    Replies: 9
    Last Post: 28th January 2008, 12:40

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.