Results 1 to 2 of 2

Thread: setSpan in delegate

  1. #1
    Join Date
    Nov 2016
    Posts
    5
    Qt products
    Qt5
    Platforms
    Windows

    Default setSpan in delegate

    Hello!
    It is necessary to combine individual cells depending on the content. Using QTablwiew::setSpan consider irrational, because after sorting it broken.
    I want to make it through a delegate, but don't know how to use setSpan method in delegate, please help!

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: setSpan in delegate

    A delegate is responsible for drawing and editing a single cell. The delegate is given the bounds of the screen space it is to occupy and has no way to merge with the cell next to it.

    A delegate can use the content of several model indexes, say two columns from the same row, or several model roles to determine what to render into the single cell space it has.

Similar Threads

  1. How to do QChartView delegate like QTableView item delegate
    By malleeswarareddy.s in forum Qt Programming
    Replies: 0
    Last Post: 16th September 2015, 11:37
  2. How to use setSpan in QTableView
    By 3str in forum Qt Programming
    Replies: 2
    Last Post: 3rd August 2011, 13:01
  3. Is delegate necessary here?
    By scythe in forum Qt Programming
    Replies: 1
    Last Post: 22nd June 2010, 19:59
  4. QTableWidget setSpan text display problem
    By sureshbabu in forum Qt Programming
    Replies: 3
    Last Post: 8th May 2008, 16:14
  5. QTableWidget and setSpan
    By swiety in forum Qt Programming
    Replies: 1
    Last Post: 17th October 2007, 10:47

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.