Results 1 to 2 of 2

Thread: QStandardItemModel alignment

  1. #1
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default QStandardItemModel alignment

    Hello,

    I tried looking through the documentation but I could not find anything regarding the alignment within each cell. But is it possible to center the data in each cell?

    The QStandardItemModel is eventually passed in to a few QItemSelectionModel.

    Thanks

    Regards,
    Pembar

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QStandardItemModel alignment

    See Qt::AlignmentRole or QStandardItem::setTextAlignment().
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 24th August 2008, 14:42
  2. QStandardItemModel insertRow crashing
    By munna in forum Qt Programming
    Replies: 1
    Last Post: 27th June 2008, 11:55
  3. QTreeView Alignment
    By cydside in forum Qt Programming
    Replies: 5
    Last Post: 15th June 2008, 14:30
  4. Regarding alignment in QTable
    By joseph in forum Qt Programming
    Replies: 4
    Last Post: 5th December 2006, 10:35
  5. Drag&Drop with QStandardItemModel
    By madcat in forum Qt Programming
    Replies: 4
    Last Post: 7th May 2006, 15:43

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.