[Qt-interest] Where's QWidget::setBackgroundMode() ?

Robert Hairgrove evorgriahr at hispeed.ch
Fri Mar 11 16:04:03 CET 2011


On Fri, 2011-03-11 at 11:32 +0800, Kermit wrote:
> Dear all, in Qt 4.7 Assistant, the QStyle's document says:
> 
> void QStyle::polish ( QWidget * widget ) [virtual]
> Initializes the appearance of the given widget.
> This function is called for every widget at some point after it has been
> fully created but just before it is shown for the very first time.
> Note that the default implementation does nothing. Reasonable actions in
> this function might be to call the QWidget::setBackgroundMode() function
> for the widget.  [... ...]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                                  
> 
> 
> But I can't find QWidget::setBackgroundMode() in QWidget or its parents.
> Is that a bug for assistant here? Or I haven't found it?
> 
> Thanks

It's there only if you have enabled Qt3 support. I found this by doing a
search in QtAssistant for the term "setBackgroundMode".

QPainter has such a method, though.




More information about the Qt-interest-old mailing list