Results 1 to 10 of 10

Thread: Header problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    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: Header problem

    QStandardItemModel behaves differently than other models. If it doesn't have any rows, it ignores its column count and thus you get an empty viewport. You need to provide info about the columns manually just like you did (another way would be to use QStandardItemModel::setHorizontalHeaderItem()).
    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.


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

    waynew (29th March 2011)

Similar Threads

  1. problem in accessing qt header files
    By namus in forum Newbie
    Replies: 1
    Last Post: 4th June 2010, 11:35
  2. QStandardItem's header item and header label
    By feverzsj in forum Newbie
    Replies: 1
    Last Post: 14th January 2010, 19:57
  3. 'QFile' Header File Problem
    By hasnatzaidi in forum Qt Programming
    Replies: 2
    Last Post: 11th June 2009, 21:40
  4. How to customize horizontal header (diagonal header view)
    By vairamuthu.g in forum Qt Programming
    Replies: 4
    Last Post: 4th September 2008, 15:59
  5. Table header section click problem
    By Khal Drogo in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2008, 22:31

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.