Results 1 to 13 of 13

Thread: [qt-4.2] question on QAbstractItemView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2006
    Posts
    31
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: [qt-4.2] question on QAbstractItemView

    The easiest way is to add additional items.
    Where should I add the additional items? Into the model? How do I do that?
    The proper way is probably to subclass the view and reimplement the painting and positioning routines.
    and what routines exactly I need to reimplement in the created class, based on QListView?

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

    Default Re: [qt-4.2] question on QAbstractItemView

    Quote Originally Posted by someralex View Post
    Where should I add the additional items? Into the model? How do I do that?
    Hmm... the same way you added the original items?

    and what routines exactly I need to reimplement in the created class, based on QListView?
    At least the paint event and visualRect.

Similar Threads

  1. QThread exit()/quit() question
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2006, 14:38
  2. setContentsMargins in QAbstractItemView
    By Promethee in forum Qt Programming
    Replies: 2
    Last Post: 4th February 2006, 14:40

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.