Results 1 to 2 of 2

Thread: how to set header ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default how to set header ?

    hi, i have a QAbstractItemView and I have to set headers properties, resizing the columns to fit the content, or to have a fixed dimension, or to hide the vertical header. With other Views classes i haven't problem, but how can I do what I want with this QAbstractItemView class? i have no idea.....

    thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: how to set header ?

    QAbstractItemView is the abstract base class of all views. It has no headers. Both QTreeView and QTableView inherit from QAbstractItemView and they do have headers.
    J-P Nurmi

Similar Threads

  1. QTableWidget NW corner header item?
    By McKee in forum Qt Programming
    Replies: 9
    Last Post: 30th May 2012, 23:44
  2. Replies: 3
    Last Post: 1st February 2008, 18:18
  3. How to determine the header row height in QTreeView
    By ghorwin in forum Qt Programming
    Replies: 3
    Last Post: 20th September 2007, 19:39
  4. Replies: 0
    Last Post: 10th November 2006, 13:46
  5. Two-row header for QTreeWidget
    By wetzel in forum Qt Programming
    Replies: 1
    Last Post: 27th May 2006, 12:26

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.