Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, March 2002
2.3 to 3.0 port : QStyle::drawSplitter


Message 1 in thread

Hi.

A small question concerning the changes in QStyle between Qt 2.3 and 3.0 :
in 2.3, QStyle::drawSplitter required the splitter orientation. In 3.0 I
assume I need to use QStyle::drawPrimitive together with
QStyle::PE_Splitter, but judging from the doc, there does not seem to be a
way to specify the orientation ?

Does this reside in the style flags ? I see Style_Horizontal but no
Style_Vertical counterpart...

-- 
 [ signature omitted ] 

Message 2 in thread

On Fri, Mar 08, 2002 at 12:22:52PM +0000, Matthieu Dazy wrote:
> Hi.
> 
> A small question concerning the changes in QStyle between Qt 2.3 and 3.0 :
> in 2.3, QStyle::drawSplitter required the splitter orientation. In 3.0 I
> assume I need to use QStyle::drawPrimitive together with
> QStyle::PE_Splitter, but judging from the doc, there does not seem to be a
> way to specify the orientation ?
> 
> Does this reside in the style flags ? I see Style_Horizontal but no
> Style_Vertical counterpart...

Yes, that's what the style flags are used for. Use Style_Horizontal
as is or just 0 (or Style_Default?) for vertical splitters.


Simon