Results 1 to 4 of 4

Thread: The QAbstractItemModel' data method failed to overwrite background

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: The QAbstractItemModel' data method failed to overwrite background

    Either just extend the model to return the other color for the other columns or is a QIdentityProxyModel to supply the "fall back" background color for cells for which the original model didn't provide any.

    Cheers,
    _

  2. #2
    Join Date
    Dec 2018
    Posts
    5
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: The QAbstractItemModel' data method failed to overwrite background

    thanks a lot. seems I cannot use stylesheet then.

    Thanks a lot. I would try

Similar Threads

  1. QAbstractItemModel for QTreeView with separate data
    By clemens in forum Qt Programming
    Replies: 1
    Last Post: 15th June 2016, 16:46
  2. [solved]QVariant QAbstractItemModel::data()
    By Qiieha in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2015, 10:33
  3. Replies: 4
    Last Post: 5th March 2015, 18:38
  4. QAbstractItemModel reset() method
    By lotek in forum Qt Programming
    Replies: 1
    Last Post: 20th September 2011, 14:55
  5. Replies: 0
    Last Post: 1st September 2011, 13:31

Tags for this Thread

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.