Results 1 to 5 of 5

Thread: Making all rows nonselectable of a tablewidget.

  1. #1
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Making all rows nonselectable of a tablewidget.

    Hi all

    i am adding rows in a table at run time, in which each cell contain different widgets. I want to make all rows widget disable or make rows nonselectable when i select a particular row.

    I am getting right way to do this.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Making all rows nonselectable of a tablewidget.


  3. #3
    Join Date
    May 2011
    Posts
    120
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    9

    Default Re: Making all rows nonselectable of a tablewidget.

    Thanks for response, but i have widgets in each column of a row in table.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: Making all rows nonselectable of a tablewidget.

    Ok, have you tried to set the QWidget::focusPolicy of the widget to Qt::NoFocus?

  5. #5
    Join Date
    Dec 2010
    Location
    Russia
    Posts
    83
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 12 Times in 11 Posts

    Default Re: Making all rows nonselectable of a tablewidget.

    Why not to use void QTableWidget :: cellChanged ( int row, int column ) , signal for items' access.

    Edit : Haven't noticed "tablewidget" in the topic's name^^

Similar Threads

  1. Replies: 2
    Last Post: 15th August 2011, 01:26
  2. adding rows to tablewidget
    By reshma in forum Qt Programming
    Replies: 4
    Last Post: 12th March 2009, 14:40
  3. horizontal header over two rows in tablewidget
    By Nippler in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 11:33
  4. Resize rows and cols in a Tablewidget
    By zorro68 in forum Qt Programming
    Replies: 2
    Last Post: 11th February 2007, 13:32
  5. Making rows visible in QTableView
    By derrickbj in forum Qt Programming
    Replies: 2
    Last Post: 11th October 2006, 17:38

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.