Results 1 to 2 of 2

Thread: QHeaderView and ProxyStyle

Threaded View

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

    Default Re: QHeaderView and ProxyStyle

    Instead of reimplementing the "high-level" QStyle::drawControl(CE_Header), wouldn't it be sufficient to reimplement "lower-level" functions:
    • QStyle::subElementRect(SE_HeaderLabel)
    • QStyle::drawControl(CE_HeaderLabel)
    • QStyle::subElementRect(SE_HeaderArrow)
    • QStyle::drawPrimitive(PE_IndicatorHeaderArrow)

    ?

    EDIT: Nevermind, of course the request still gets delegated to the "wrong" style object.
    Last edited by jpn; 13th September 2008 at 15:14.
    J-P Nurmi

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.