Results 1 to 14 of 14

Thread: Quick way for QWidget in QHeaderView's columns?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    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: Quick way for QWidget in QHeaderView's columns?

    Quote Originally Posted by Davor View Post
    @Wysota: I don't see any other option than to re-implement the paint-sections (if one insists to subclass QHeaderView.)
    But not this way. You are simply covering the header with other widgets and at the same time you do it in a very wrong way.

    Do it properly - provide your own header widget but don't derive it from QHeaderView.

    Edit: A dirty example attached...
    Attached Files Attached Files
    Last edited by wysota; 11th January 2010 at 09:48.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


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

    Davor (14th January 2010)

Similar Threads

  1. Replies: 8
    Last Post: 14th August 2008, 15:48
  2. How to adjust the a QHeaderView's width
    By culgi in forum Qt Programming
    Replies: 2
    Last Post: 31st January 2008, 08:35
  3. Quick help on QProcess
    By devilj in forum Newbie
    Replies: 4
    Last Post: 17th July 2007, 22:16
  4. Quick Test Pro and Qt
    By tstankey in forum Newbie
    Replies: 1
    Last Post: 19th April 2007, 20:27
  5. Moving columns/hiding columns in QTreeView
    By yogeshm02 in forum Qt Programming
    Replies: 4
    Last Post: 14th March 2007, 16:22

Tags for this Thread

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.