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
|
||||
{
|
||||
using Inherited = QQuickWebEngineView;
|
||||
|
||||
public:
|
||||
WebView( const char* url, QQuickItem* parent = nullptr )
|
||||
: WebView( parent )
|
||||
@ -26,6 +28,7 @@ class WebView : public QQuickWebEngineView
|
||||
WebView( QQuickItem* parent = nullptr )
|
||||
: QQuickWebEngineView( parent )
|
||||
{
|
||||
componentComplete();
|
||||
}
|
||||
};
|
||||
|
||||
@ -35,12 +38,11 @@ int main( int argc, char* argv[] )
|
||||
QskObjectCounter counter( true );
|
||||
#endif
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
||||
QGuiApplication app( argc, argv );
|
||||
|
||||
QtWebEngine::initialize();
|
||||
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QGuiApplication app( argc, argv );
|
||||
|
||||
SkinnyFont::init( &app );
|
||||
SkinnyShortcut::enable( SkinnyShortcut::Quit | SkinnyShortcut::DebugShortcuts );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user