PDA

View Full Version : porting catalog to Qt5



saman_artorious
16th September 2013, 15:28
Unfortunately, catalog is not ported to qt5, only smarthouse and patientcare are.
when I change the headers of catalog I get the following error:



error: invalid use of incomplete type 'struct QWindowsStyle'
error: forward declaration of 'struct QWindowsStyle'

clicking error brings me here:

#ifndef QMENUBAR_H
#define QMENUBAR_H

#include <QtWidgets/qmenu.h>

QT_BEGIN_HEADER

QT_BEGIN_NAMESPACE

#ifndef QT_NO_MENUBAR

class QMenuBarPrivate;
class QStyleOptionMenuItem;
class QWindowsStyle;
class QPlatformMenuBar;

I searched for the headers as well, but couldn't find it in QtWidgets/...

anyone faced this before?

anda_skoa
16th September 2013, 21:34
Most style classes are private now, only QCommonStyle is available to help in creating your own styles,

What do you need the QWindowStyle class for?
If it is just about loading it then that can still be done through its name and QStyleFactory::create()

Cheers,
_