Results 1 to 4 of 4

Thread: Customized Table

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Customized Table

    hi there

    i have to develop a very custom table which looks like this one in the picture i've attached. and that's the problem. does anybody of you has a tip how i can do this. should i develop it form scratch, or derive form qtableview, qstandarddelgate whatever. what's the best way?

    btw: i only have to display a few lines of data, no possibility to edit the data, just to mark a line in the table.

    so thank you for any suggestions!!

    patric
    Attached Images Attached Images

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Customized Table

    Hmm... what is so custom in this table? You should use stylesheets or a custom style and maybe a custom delegate. No need to subclass QTableView, you can use it as it is.

  3. #3
    Join Date
    Mar 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Customized Table

    ok, custom was the wrong word...

    so i got it. but was a pain. mixing stylesheets with subclassing (overwriting paintEvent). now it look similar to the designers draft.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Customized Table

    The point is you shouldn't need to override paintEvent. A custom delegate would do.

Similar Threads

  1. Replies: 9
    Last Post: 21st June 2007, 10:27
  2. Easiest way to display icons in a table
    By ghorwin in forum Qt Programming
    Replies: 3
    Last Post: 19th March 2007, 13:09
  3. displaying any table on a qdatatable
    By Philip_Anselmo in forum Newbie
    Replies: 4
    Last Post: 9th May 2006, 22:12
  4. creating table plugin
    By mgurbuz in forum Qt Programming
    Replies: 3
    Last Post: 28th April 2006, 13:50
  5. Adding row in a Table after selected row
    By ankurjain in forum Qt Programming
    Replies: 3
    Last Post: 20th April 2006, 18:06

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.