Results 1 to 5 of 5

Thread: QTable - Cell Thickness

  1. #1
    Join Date
    Feb 2006
    Location
    Raleigh, NC
    Posts
    16
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default QTable - Cell Thickness

    I need to somehow make a vertical divider in my table. Is there a way to alter the cell thickenss on one side, or is there some other means of making a divider?

  2. #2
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTable - Cell Thickness

    Maiby will be better use 2 tables with splitter between them?
    a life without programming is like an empty bottle

  3. #3
    Join Date
    Jan 2006
    Location
    England
    Posts
    20
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTable - Cell Thickness

    Otherwise you can subclass the table widget and reimplement the paintEvent function there. Just draw lines over the table where you need the divider.

  4. #4
    Join Date
    Feb 2006
    Location
    Raleigh, NC
    Posts
    16
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: QTable - Cell Thickness

    Quote Originally Posted by zlatko
    Maiby will be better use 2 tables with splitter between them?
    I definitely need it to be one table.

  5. #5
    Join Date
    Feb 2006
    Location
    Raleigh, NC
    Posts
    16
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: QTable - Cell Thickness

    Quote Originally Posted by Corran
    Otherwise you can subclass the table widget and reimplement the paintEvent function there. Just draw lines over the table where you need the divider.
    Possible... But I wouldn't be sure where exactly to draw the line. Maybe there is a way to get the cells coordinates and then draw the line that way. I'll have to look into it. It would also cut into the cell space that way.

Similar Threads

  1. Problems with QString
    By cyberboy in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2008, 08:18
  2. How to set Validator for individual cell in QTable
    By raghvendramisra in forum Qt Programming
    Replies: 3
    Last Post: 13th September 2008, 15:51
  3. QTable, Removing cell focus
    By Kubil in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2007, 10:13
  4. Highlighting a cell in QTable
    By sumsin in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2007, 06:28
  5. word wrapping in QTable Cell
    By joseph in forum General Discussion
    Replies: 0
    Last Post: 27th November 2006, 09:30

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.