Results 1 to 4 of 4

Thread: delegate's createEditor() widget does not hide the table's cell

  1. #1
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default delegate's createEditor() widget does not hide the table's cell

    Hi,

    I create a custom widget in QStyledItemDelegate::createEditor() overriden function, to be used by a QTableView.
    When I double click on the cell to edit it, the editor widget that I return does not hide the previously displayed cell.

    Is there a setting to make my widget hide the content of cell?

    Rds,

  2. #2
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: delegate's createEditor() widget does not hide the table's cell

    Basically, the content of the cell displayed before I double click does not get hidden, and remains visible under the editor widget which makes the display impossible

  3. #3
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: delegate's createEditor() widget does not hide the table's cell

    Fill the background of your delegate widget.
    It's nice to be important but it's more important to be nice.

  4. #4
    Join Date
    Dec 2009
    Posts
    52
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: delegate's createEditor() widget does not hide the table's cell

    filled, and now works,

    Thank you for your help,

    rds,

Similar Threads

  1. Many cell widget in QTableWidget
    By Benarez in forum Qt Programming
    Replies: 3
    Last Post: 21st January 2010, 07:02
  2. Center a widget in a cell on a QTableWidget
    By roleroz in forum Qt Programming
    Replies: 16
    Last Post: 5th March 2009, 14:47
  3. QWidget* of createEditor
    By baray98 in forum Qt Programming
    Replies: 3
    Last Post: 5th January 2008, 17:48
  4. How to show custom widget in TreeView's cell :-/
    By WolfMM in forum Qt Programming
    Replies: 2
    Last Post: 7th July 2007, 11:16
  5. Replies: 11
    Last Post: 7th September 2006, 23:15

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.