Results 1 to 14 of 14

Thread: Advanced QTableView

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Advanced QTableView

    Quote Originally Posted by jpujolf View Post
    PIMPLs ?? What do you mean.
    Private implementations. All the Q***Private classes.

    I've looked inside and it's difficult, so it's my last option... ( but you can never say is impossible... )
    I can say it's impossible, PIMPLs are not part of the public API, so you'd have to embed half of Qt code into your widget and I don't think you want a widget with 3MB legacy in it

    I disagree. I don't need ALL the interface. I f you do something like this, you have all the interface, but are allways maintaining it as a single Widget :
    Well said - a widget, but not as a view. The view API is not part of the public API of the widget, so you can't make simple signal-slot connections or use the widget as a custom widget in Designer without messing around with its internals.

    I only need that the improved table acts as a single widget, allowing the final developer to easily create layouts with the designer & then having a richer table in his project.
    As written above, the widget will not have the API of a view, so the final developer will only have access to its QWidget API from the Designer (unless you forward all the view functionality to the widget's public API practically reimplementing the view architecture, as I mentioned in the previous post).

    Why I must hide a compoenent I'm fighting to show ?
    I understood you want to replace the original header view with your own header and footer. Hiding the original header would be a simple way to get rid of it. Maybe I misunderstood you.

    OK, I agree too, but I must receive some signals when column header change thier size, and I don't receive nothing.

    OK, but which signals ?? I've tried some combinations and I'm receiving no one...
    QHeaderView::sectionResized() is an obvious candidate...
    Last edited by wysota; 18th December 2006 at 21:47.

  2. The following user says thank you to wysota for this useful post:

    jpujolf (19th December 2006)

Similar Threads

  1. Set height of QTableView to fit exact number of rows.
    By Ben.Hines in forum Qt Programming
    Replies: 3
    Last Post: 17th January 2019, 01:49
  2. QTableView sorting
    By gabriels in forum Qt Programming
    Replies: 11
    Last Post: 6th October 2010, 17:13
  3. QTableView currentChanged <> selecting header
    By Everall in forum Qt Programming
    Replies: 4
    Last Post: 1st April 2009, 08:24
  4. QTableView paints too much
    By Jimmy2775 in forum Qt Programming
    Replies: 2
    Last Post: 26th July 2006, 18:42
  5. Multi-line messages in QTableView
    By Conel in forum Qt Programming
    Replies: 6
    Last Post: 13th April 2006, 13:49

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.