Results 1 to 2 of 2

Thread: QStyledItemDelegate documentation is rather cryptic

  1. #1
    Join Date
    Jul 2020

    Default QStyledItemDelegate documentation is rather cryptic

    I'm finding the QStyledItemDelegate documentation hard to follow. Part of this is because I use Python rather than C++. Part of the problem is that there isn't much explanation about the different abstract base class methods that can be overloaded, e.g., what they do, what their arguments mean, etc. Please consider a rewrite and expansion of this documentation!

  2. #2
    Join Date
    Mar 2009
    Brisbane, Australia
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows
    Wiki edits

    Default Re: QStyledItemDelegate documentation is rather cryptic

    Quote Originally Posted by pfeldman View Post
    Please consider a rewrite and expansion of this documentation!
    Qt Centre is not the author of the Qt library or its documentation. You need to be talking to The Qt Company ( You may be able to raise an issue asking for a rewrite.

    Assuming a rewrite is not going to happen any time soon... are there specific issues you are having?

    In general any method marked virtual in the docs is intended to be overridden if required in subclasses. Those also marked "= 0" (pure virtual) must be overridden in subclasses. This is C++ rather than Qt specific.
    All the functions in QAbstractItemDelegate are virtual, and most will have been implemented in QStyledItemDelegate. The docs indicate which under the "Reimplemented" headings.

    You should read Model/View programming, its section on delegates, and look at the examples listed at the bottom of that introduction.
    Last edited by ChrisW67; 30th October 2020 at 22:55. Reason: spelling corrections
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

Similar Threads

  1. Qt Assistant Where is the documentation for Qt 5.3?
    By pixaeiro in forum Qt Tools
    Replies: 2
    Last Post: 12th April 2016, 18:03
  2. Documentation
    By wookie1 in forum Qt Tools
    Replies: 2
    Last Post: 24th June 2014, 03:31
  3. Qt Creator Documentation need.
    By themean in forum Qt Tools
    Replies: 0
    Last Post: 7th February 2013, 11:41
  4. Qwt 6.0 documentation
    By m15ch4 in forum Qwt
    Replies: 0
    Last Post: 20th February 2011, 15:48
  5. Adding Qt's documentation to Xcode documentation browser
    By fabietto in forum Qt Programming
    Replies: 0
    Last Post: 10th June 2007, 15:38

Tags for this Thread


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.