Results 1 to 8 of 8

Thread: TextAlignment / no RowCount in QStandardItemModel

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: TextAlignment / no RowCount in QStandardItemModel

    The first "column" is a header - you can hide it. Alignment is set using Qt::TextAlignmentRole on each item. As for "width set to minimum" - define "minimum" You can change the resize policy for the horizontal header if you want, maybe it will be sufficient in your case.

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

    borzh62 (31st October 2015)

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.