Results 1 to 3 of 3

Thread: QTable Widget

  1. #1
    Join Date
    Mar 2008
    Posts
    68
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question QTable Widget

    I want to create a table widget without a row header .
    The Row Header i meant here is the one that comes to the left of the table.
    i want only columns...

    now it is like this
    A B C D E F
    Q 1 2 2 2 2 1
    P 1 2 2 2 2 1
    I 1 2 2 2 2 1
    J 1 2 2 2 2 1
    K 1 2 2 2 2 1
    L 1 2 2 2 2 1

    When i create a table of the above format i don't want that Q,P,I,J,K,L to come along with the row side. It comes as Grey header kind. How to avoid this.

    I want some thing like this..........
    A B C D E F
    1 2 2 2 2 1
    1 2 2 2 2 1
    1 2 2 2 2 1
    1 2 2 2 2 1
    1 2 2 2 2 1
    1 2 2 2 2 1

    is it possible with table widget? please enlighten me on this...

  2. #2
    Join Date
    Jan 2008
    Location
    Brasil
    Posts
    131
    Thanks
    18
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Lightbulb Re: QTable Widget

    From where are you taking this data? From a database? I see it is easier you first organize their data and then put in a TableWidget

    Marcelo E. Geyer

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

    Default Re: QTable Widget

    Qt Code:
    1. tableWidget->verticalHeader()->hide();
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

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

    csvivek (28th May 2008)

Similar Threads

  1. QTable widget works slow :(
    By THRESHE in forum Qt Programming
    Replies: 3
    Last Post: 27th February 2008, 12:54
  2. Tricky problem with ARGB widget / UpdateLayeredWindow
    By nooky59 in forum Qt Programming
    Replies: 3
    Last Post: 21st February 2008, 10:35
  3. Replies: 3
    Last Post: 17th October 2007, 12:52
  4. [Qt 4.1.0] Split a widget on demand
    By Townk in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2006, 14:16

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.