Qt 5.15 ( probably earlier ) needs te initialization in componentComplete
This commit is contained in:
parent
13867df163
commit
02ad876e14
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
class WebView : public QQuickWebEngineView
|
class WebView : public QQuickWebEngineView
|
||||||
{
|
{
|
||||||
|
using Inherited = QQuickWebEngineView;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WebView( const char* url, QQuickItem* parent = nullptr )
|
WebView( const char* url, QQuickItem* parent = nullptr )
|
||||||
: WebView( parent )
|
: WebView( parent )
|
||||||
@ -26,6 +28,7 @@ class WebView : public QQuickWebEngineView
|
|||||||
WebView( QQuickItem* parent = nullptr )
|
WebView( QQuickItem* parent = nullptr )
|
||||||
: QQuickWebEngineView( parent )
|
: QQuickWebEngineView( parent )
|
||||||
{
|
{
|
||||||
|
componentComplete();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -35,12 +38,11 @@ int main( int argc, char* argv[] )
|
|||||||
QskObjectCounter counter( true );
|
QskObjectCounter counter( true );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
||||||
|
|
||||||
QGuiApplication app( argc, argv );
|
|
||||||
|
|
||||||
QtWebEngine::initialize();
|
QtWebEngine::initialize();
|
||||||
|
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
QGuiApplication app( argc, argv );
|
||||||
|
|
||||||
SkinnyFont::init( &app );
|
SkinnyFont::init( &app );
|
||||||
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
|
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user