[Interest] Porting Qt4 to Qt5 with respect to styles

Nurmi J-P jpnurmi at theqtcompany.com
Tue Nov 4 00:08:53 CET 2014


> On 03 Nov 2014, at 23:40, Allan Sandfeld Jensen <kde at carewolf.com> wrote:
> 
> On Monday 03 November 2014, Duane wrote:
>> We're looking at moving a few large projects from Qt 4 to 5.  One issue
>> that I'm having is the absence of QWindowsStyle.  We have a class that's
>> derived from QWindowsStyle. What's the simplest way to get around this.
>> 
> QWindowsStyle still exists, it just a private class, so it requires widgets-
> private to use. It would be better if you could derive from QCommonStyle 
> instead though.
> 

Hi,

Another option is to use QProxyStyle("windows") as a base class.

--
J-P Nurmi





More information about the Interest mailing list