Results 1 to 11 of 11

Thread: Under the delegate the data are visible

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Under the delegate the data are visible

    Quote Originally Posted by Mad Max
    but the text in other column was gone (see the second attached image). What I can make so as it not happen?
    Qt Code:
    1. void QLayerListDelegate::paint ( QPainter * painter,
    2. const QStyleOptionViewItem & option,
    3. const QModelIndex & index ) const
    4. {
    5. if(index.column()==3) return;
    6. QStandardItemDelegate::paint(painter, option, index);
    7. }
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Russia
    Posts
    50
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Under the delegate the data are visible

    Quote Originally Posted by wysota
    Qt Code:
    1. void QLayerListDelegate::paint ( QPainter * painter,
    2. const QStyleOptionViewItem & option,
    3. const QModelIndex & index ) const
    4. {
    5. if(index.column()==3) return;
    6. QStandardItemDelegate::paint(painter, option, index);
    7. }
    To copy to clipboard, switch view to plain text mode 
    It do help! Thanks Wysota!

Similar Threads

  1. Best way to display lots of data fast
    By New2QT in forum Newbie
    Replies: 4
    Last Post: 16th October 2008, 22:46
  2. How to populate delegate with model data.
    By kaushal_gaurav in forum Qt Programming
    Replies: 2
    Last Post: 4th August 2008, 09:31
  3. Replies: 1
    Last Post: 22nd October 2007, 02:04
  4. QListView and delegate to display data
    By T4ng10r in forum Qt Programming
    Replies: 5
    Last Post: 30th May 2007, 09:25
  5. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53

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.