Results 1 to 9 of 9

Thread: Highlighting the border of cell in Table

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    16
    Thanked 2 Times in 2 Posts

    Default Re: Highlighting the border of cell in Table

    one more problem jpn,

    i want to set one cell, say (0,0), as default if the form opens. i was able to set focus on the cell by function, setCurrentCell(0,0), but not able to draw that default focus (thicken the boundry) how can it be done ??




    Right now the window looks like above ... as i select the events in the left pane .... the table in the right pane opens up with the cell (0,0) selected ... it is indicated by the blue color.... as i had changed the palette ... now when i want the boundry of the selected cell must also get thick, as it is the behaviour i had made on click of mouse or selection by keyboard.

    please help....
    Last edited by ankurjain; 20th March 2006 at 08:09.
    Do what u r afraid to do, and the death of fear is sure.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts

    Default Re: Highlighting the border of cell in Table

    Try setting the focus to your table widget during the startup:
    Qt Code:
    1. table->setFocus(Qt::ActiveWindowFocusReason);
    To copy to clipboard, switch view to plain text mode 

  3. The following user says thank you to jpn for this useful post:

    ankurjain (21st March 2006)

  4. #3
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    16
    Thanked 2 Times in 2 Posts

    Default Re: Highlighting the border of cell in Table

    thanx jpn,
    it works now by with setCurrentCell ...
    Do what u r afraid to do, and the death of fear is sure.

Similar Threads

  1. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 09:18
  2. Making Table cell as a combobox?
    By kaushal_gaurav in forum Qt Programming
    Replies: 9
    Last Post: 1st August 2008, 13:04
  3. Replies: 4
    Last Post: 4th February 2008, 07:16
  4. Highlighting a cell in QTable
    By sumsin in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2007, 07:28
  5. Replies: 11
    Last Post: 8th September 2006, 00: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
  •  
Qt is a trademark of The Qt Company.