From patricks17092012 at gmail.com Wed Dec 2 10:21:00 2015 From: patricks17092012 at gmail.com (patrick s) Date: Wed, 2 Dec 2015 10:21:00 +0100 Subject: [Qtwebengine] Flash opens console window on Windows Message-ID: Hi everyone, whenever using flash for the first time in a WebEngineView on Windows, a console window gets opened for a split second, and this window is even visible if the application is displayed as fullscreen. I did some googling and according to this link, this is caused by a simple echo command in the flash plugin, when --no-sandbox is set: https://code.google.com/p/chromium/issues/detail?id=508002 Is it possible to run the separate ppapi process without the --no-sandbox flag? If not, is it somehow possible to prevent this window from getting opened? Thanks in advance, Patrick -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Sat Dec 5 10:30:12 2015 From: 377307289 at qq.com (=?ISO-8859-1?B?TmVtbw==?=) Date: Sat, 5 Dec 2015 17:30:12 +0800 Subject: [Qtwebengine] error: Unknown module(s) in QT: webenginewidgets Message-ID: I have build a static Qt 5.5.1 under unbuntu 14.04 LTS 64-bit, then I build Qt demo "fancybrowser" with new static Qt library, and I found this error. There is no webengine .a file outputed fater static building, and I cannot find webengine option when "./configure --help" in Qt Src directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Sun Dec 6 03:21:34 2015 From: 377307289 at qq.com (=?ISO-8859-1?B?TmVtbw==?=) Date: Sun, 6 Dec 2015 10:21:34 +0800 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. Message-ID: I use qtcreator open the Qt/5.5/Src/qtwebengine/qtwebengine.pro and change static Qt kit to build it, but qtcreator output error "Static builds of QtWebEngine aren't supported". How can I build a static QtWebEngine library? -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at mknln.com Sun Dec 6 20:07:44 2015 From: me at mknln.com (Mike Nolan) Date: Sun, 6 Dec 2015 11:07:44 -0800 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. In-Reply-To: References: Message-ID: I am also facing the same issue currently and looking for info on how to do this. I see the same issue when trying to build the 5.6 branch. (Not latest but retrieved about two weeks ago. But I see this message "Static builds of QtWebEngine aren't supported" still is present in the latest source.) On Sat, December 5, 2015 6:21 pm, Nemo wrote: > I use qtcreator open the Qt/5.5/Src/qtwebengine/qtwebengine.pro and > change static Qt kit to build it, but qtcreator output error "Static > builds of QtWebEngine aren't supported". > > > How can I build a static QtWebEngine > library?_______________________________________________ QtWebEngine > mailing list QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > From allan.jensen at theqtcompany.com Sun Dec 6 23:17:51 2015 From: allan.jensen at theqtcompany.com (Allan Sandfeld Jensen) Date: Sun, 6 Dec 2015 23:17:51 +0100 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. In-Reply-To: References: Message-ID: <201512062317.52348.allan.jensen@theqtcompany.com> On Sunday 06 December 2015, Mike Nolan wrote: > I am also facing the same issue currently and looking for info on how to > do this. > > I see the same issue when trying to build the 5.6 branch. (Not latest but > retrieved about two weeks ago. But I see this message "Static builds of > QtWebEngine aren't supported" still is present in the latest source.) > That is because static builds are not supported. Even we did support it, it would be of limited use, since QtWebEngine is a multi-process library that uses an external binary anyway, and it contains LGPL code that would require any code linking to it, to be relinkable. Regards `Allan -- The Qt Company Rudower Chausse 13, 12489 D-Berlin The Qt Company is a group company of Digia Plc, Valimotie 21, FI-00380 Helsinki Finland From me at mknln.com Mon Dec 7 01:03:31 2015 From: me at mknln.com (Mike Nolan) Date: Sun, 6 Dec 2015 16:03:31 -0800 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. In-Reply-To: <201512062317.52348.allan.jensen@theqtcompany.com> References: <201512062317.52348.allan.jensen@theqtcompany.com> Message-ID: <5b14d1d2d82e407cf67f5382fd3d95c1.squirrel@webmail.mknln.com> Hi Allan, I see, Over here I am trying to limit the size of the deployed application as well as to ease deployment (i.e. with the static build you won't have to send separate libraries - not that doing so is such a big deal). Since I noted that static builds of WebEngine aren't supported, I did try an idea of linking Qt base statically but WebEngine dynamically, but then hit some errors when compiling my application. Can you (or any developer) speak to whether this should be possible? I am aware that I may be doing something unusual/wrong/unsupported there so I will avoid wasting my time if this is not a valid approach. Currently I have switched to trying to bring down the size of a dynamic library build and will see how that goes. Mike On Sun, December 6, 2015 2:17 pm, Allan Sandfeld Jensen wrote: > On Sunday 06 December 2015, Mike Nolan wrote: > >> I am also facing the same issue currently and looking for info on how >> to do this. >> >> I see the same issue when trying to build the 5.6 branch. (Not latest >> but retrieved about two weeks ago. But I see this message "Static builds >> of QtWebEngine aren't supported" still is present in the latest source.) >> >> > That is because static builds are not supported. Even we did support it, > it would be of limited use, since QtWebEngine is a multi-process library > that uses an external binary anyway, and it contains LGPL code that would > require any code linking to it, to be relinkable. > > Regards > `Allan > > > -- > > > The Qt Company > Rudower Chausse 13, 12489 D-Berlin > > > The Qt Company is a group company of Digia Plc, > Valimotie 21, FI-00380 Helsinki Finland > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > From allan.jensen at theqtcompany.com Mon Dec 7 13:30:17 2015 From: allan.jensen at theqtcompany.com (Allan Sandfeld Jensen) Date: Mon, 7 Dec 2015 13:30:17 +0100 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. In-Reply-To: <5b14d1d2d82e407cf67f5382fd3d95c1.squirrel@webmail.mknln.com> References: <201512062317.52348.allan.jensen@theqtcompany.com> <5b14d1d2d82e407cf67f5382fd3d95c1.squirrel@webmail.mknln.com> Message-ID: <201512071330.17683.allan.jensen@theqtcompany.com> Mixed static and dynamic builds are not supported, but could technically be possible, but I have no idea how much work it would be. You could try changing QtWebEngineCore into a lib TEMPLATE instead of a qt module, and set CONFIG += staticlib, that could at least make that statically linked into the API libraries (at the cost of being duplicated). You could probably also get away with making the qtwebchannel dependency optional (if you do, please contribute the patch). Btw If you find any tricks that significantly reduces the library size, I would love to hear about them. It is not the first time the subject has come up. Regards `Allan On Monday 07 December 2015, Mike Nolan wrote: > Hi Allan, > I see, > > Over here I am trying to limit the size of the deployed application as > well as to ease deployment (i.e. with the static build you won't have to > send separate libraries - not that doing so is such a big deal). > > Since I noted that static builds of WebEngine aren't supported, I did try > an idea of linking Qt base statically but WebEngine dynamically, but then > hit some errors when compiling my application. Can you (or any developer) > speak to whether this should be possible? I am aware that I may be doing > something unusual/wrong/unsupported there so I will avoid wasting my time > if this is not a valid approach. > > Currently I have switched to trying to bring down the size of a dynamic > library build and will see how that goes. > > Mike > > On Sun, December 6, 2015 2:17 pm, Allan Sandfeld Jensen wrote: > > On Sunday 06 December 2015, Mike Nolan wrote: > >> I am also facing the same issue currently and looking for info on how > >> to do this. > >> > >> I see the same issue when trying to build the 5.6 branch. (Not latest > >> but retrieved about two weeks ago. But I see this message "Static builds > >> of QtWebEngine aren't supported" still is present in the latest source.) > > > > That is because static builds are not supported. Even we did support it, > > it would be of limited use, since QtWebEngine is a multi-process library > > that uses an external binary anyway, and it contains LGPL code that would > > require any code linking to it, to be relinkable. > > > > Regards > > `Allan > > > > > > -- > > > > > > The Qt Company > > Rudower Chausse 13, 12489 D-Berlin > > > > > > The Qt Company is a group company of Digia Plc, > > Valimotie 21, FI-00380 Helsinki Finland > > _______________________________________________ > > QtWebEngine mailing list > > QtWebEngine at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/qtwebengine -- The Qt Company Rudower Chausse 13, 12489 D-Berlin The Qt Company is a group company of Digia Plc, Valimotie 21, FI-00380 Helsinki Finland From me at mknln.com Tue Dec 8 00:55:59 2015 From: me at mknln.com (Mike Nolan) Date: Mon, 7 Dec 2015 15:55:59 -0800 Subject: [Qtwebengine] Static builds of QtWebEngine aren't supported. In-Reply-To: <201512071330.17683.allan.jensen@theqtcompany.com> References: <201512062317.52348.allan.jensen@theqtcompany.com> <5b14d1d2d82e407cf67f5382fd3d95c1.squirrel@webmail.mknln.com> <201512071330.17683.allan.jensen@theqtcompany.com> Message-ID: <896458d7ac3fcb4c2a77adc5abadb227.squirrel@webmail.mknln.com> Hi Allan, Thanks for the info and tips. I don't have anything yet but will share what I find if there is anything good. On Mon, December 7, 2015 4:30 am, Allan Sandfeld Jensen wrote: > Mixed static and dynamic builds are not supported, but could technically > be possible, but I have no idea how much work it would be. > > You could try changing QtWebEngineCore into a lib TEMPLATE instead of a > qt module, and set CONFIG += staticlib, that could at least make that > statically linked into the API libraries (at the cost of being > duplicated). > > You could probably also get away with making the qtwebchannel dependency > optional (if you do, please contribute the patch). > > Btw If you find any tricks that significantly reduces the library size, I > would love to hear about them. It is not the first time the subject has > come up. > > Regards > `Allan > > > On Monday 07 December 2015, Mike Nolan wrote: > >> Hi Allan, >> I see, >> >> >> Over here I am trying to limit the size of the deployed application as >> well as to ease deployment (i.e. with the static build you won't have to >> send separate libraries - not that doing so is such a big deal). >> >> Since I noted that static builds of WebEngine aren't supported, I did >> try an idea of linking Qt base statically but WebEngine dynamically, but >> then hit some errors when compiling my application. Can you (or any >> developer) speak to whether this should be possible? I am aware that I >> may be doing something unusual/wrong/unsupported there so I will avoid >> wasting my time if this is not a valid approach. >> >> Currently I have switched to trying to bring down the size of a dynamic >> library build and will see how that goes. >> >> Mike >> >> >> On Sun, December 6, 2015 2:17 pm, Allan Sandfeld Jensen wrote: >> >>> On Sunday 06 December 2015, Mike Nolan wrote: >>> >>>> I am also facing the same issue currently and looking for info on >>>> how to do this. >>>> >>>> I see the same issue when trying to build the 5.6 branch. (Not >>>> latest but retrieved about two weeks ago. But I see this message >>>> "Static builds >>>> of QtWebEngine aren't supported" still is present in the latest >>>> source.) >>> >>> That is because static builds are not supported. Even we did support >>> it, it would be of limited use, since QtWebEngine is a multi-process >>> library that uses an external binary anyway, and it contains LGPL code >>> that would require any code linking to it, to be relinkable. >>> >>> Regards >>> `Allan >>> >>> >>> >>> -- >>> >>> >>> >>> The Qt Company >>> Rudower Chausse 13, 12489 D-Berlin >>> >>> >>> >>> The Qt Company is a group company of Digia Plc, >>> Valimotie 21, FI-00380 Helsinki Finland >>> _______________________________________________ >>> QtWebEngine mailing list >>> QtWebEngine at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/qtwebengine >>> > > > -- > > > The Qt Company > Rudower Chausse 13, 12489 D-Berlin > > > The Qt Company is a group company of Digia Plc, > Valimotie 21, FI-00380 Helsinki Finland > > From knt261 at gmail.com Tue Dec 8 04:47:49 2015 From: knt261 at gmail.com (Kevin Truong) Date: Mon, 7 Dec 2015 19:47:49 -0800 Subject: [Qtwebengine] How do I run web engine on a sever without a display? Message-ID: I have a server running linux with no active display. When I try to run a program that calls qt web engine, I get this error: QXcbConnection: Could not connect to display The only way I can get it to run is by installing xvfb (X virtual frame buffer), and then running: xvfb-run -s "-screen 0 640x480x16" ./myProgram However, xvfb introduces additional complexity when it comes to debugging (such as if an xvfb server hangs, all subsequent request will silently hang as well), and I would like to know if there is a way I can get around to not use it. I know we can run WebKit completely headless because I can use the same linux server with no active display to run phantomjs just fine, and it doesn't produce any display errors. So I was wondering, is there a way I can run qt web engine completely headless as well? Best, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Tue Dec 8 06:58:37 2015 From: 377307289 at qq.com (=?gb18030?B?TmVtbw==?=) Date: Tue, 8 Dec 2015 13:58:37 +0800 Subject: [Qtwebengine] =?gb18030?b?u9i4tKO6IEhvdyBkbyBJIHJ1biB3ZWIgZW5n?= =?gb18030?q?ine_on_a_sever_without_a_display=3F?= In-Reply-To: References: Message-ID: Do not call show() member function of widgets, the application will become a console application. ------------------ 原始邮件 ------------------ 发件人: "Kevin Truong";; 发送时间: 2015年12月8日(星期二) 中午11:47 收件人: "qtwebengine"; 主题: [Qtwebengine] How do I run web engine on a sever without a display? I have a server running linux with no active display. When I try to run a program that calls qt web engine, I get this error: QXcbConnection: Could not connect to display The only way I can get it to run is by installing xvfb (X virtual frame buffer), and then running: xvfb-run -s "-screen 0 640x480x16" ./myProgram However, xvfb introduces additional complexity when it comes to debugging (such as if an xvfb server hangs, all subsequent request will silently hang as well), and I would like to know if there is a way I can get around to not use it. I know we can run WebKit completely headless because I can use the same linux server with no active display to run phantomjs just fine, and it doesn't produce any display errors. So I was wondering, is there a way I can run qt web engine completely headless as well? Best, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Tue Dec 8 07:03:59 2015 From: me at the-compiler.org (Florian Bruhin) Date: Tue, 8 Dec 2015 07:03:59 +0100 Subject: [Qtwebengine] =?utf-8?b?5Zue5aSN77yaIEhvdyBkbyBJIHJ1biB3ZWIgZW5n?= =?utf-8?q?ine_on_a_sever_without_a_display=3F?= In-Reply-To: References: Message-ID: <20151208060359.GG5582@tonks> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: > Do not call show() member function of widgets, the application will become a console application. Have you actually tried? It's not that easy. As soon as you want to create a QApplication, you need a DISPLAY. And creating a widget without a QApplication won't work. > I know we can run WebKit completely headless because I can use the > same linux server with no active display to run phantomjs just fine, > and it doesn't produce any display errors. AFAIK, PhantomJS patches QtWebKit for that. > So I was wondering, is there a way I can run qt web engine > completely headless as well? Chances are doing the same patching will be harder with QtWebEngine, as you also need to make Chromium work without an X server, which might be difficult. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From 377307289 at qq.com Tue Dec 8 07:30:54 2015 From: 377307289 at qq.com (=?gb18030?B?TmVtbw==?=) Date: Tue, 8 Dec 2015 14:30:54 +0800 Subject: [Qtwebengine] How do I run web engine on a sever without a display? Message-ID: My method come from this post: https://forum.qt.io/topic/50228/solved-qtwebengine-headless. I have test it use terminal under ubuntu with GUI, but it will output the same error as yours when I switch to text interface with CTRL+ALT+F1. I am sorry, and I am confused. ------------------ 原始邮件 ------------------ 发件人: "377307289";<377307289 at qq.com>; 发送时间: 2015年12月8日(星期二) 中午1:58 收件人: "qtwebengine"; 主题: [Qtwebengine] 回复: How do I run web engine on a sever without a display? Do not call show() member function of widgets, the application will become a console application. ------------------ 原始邮件 ------------------ 发件人: "Kevin Truong";; 发送时间: 2015年12月8日(星期二) 中午11:47 收件人: "qtwebengine"; 主题: [Qtwebengine] How do I run web engine on a sever without a display? I have a server running linux with no active display. When I try to run a program that calls qt web engine, I get this error: QXcbConnection: Could not connect to display The only way I can get it to run is by installing xvfb (X virtual frame buffer), and then running: xvfb-run -s "-screen 0 640x480x16" ./myProgram However, xvfb introduces additional complexity when it comes to debugging (such as if an xvfb server hangs, all subsequent request will silently hang as well), and I would like to know if there is a way I can get around to not use it. I know we can run WebKit completely headless because I can use the same linux server with no active display to run phantomjs just fine, and it doesn't produce any display errors. So I was wondering, is there a way I can run qt web engine completely headless as well? Best, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at the-compiler.org Tue Dec 8 07:35:54 2015 From: me at the-compiler.org (Florian Bruhin) Date: Tue, 8 Dec 2015 07:35:54 +0100 Subject: [Qtwebengine] How do I run web engine on a sever without a display? In-Reply-To: References: Message-ID: <20151208063554.GH5582@tonks> * Nemo <377307289 at qq.com> [2015-12-08 14:30:54 +0800]: > My method come from this post: https://forum.qt.io/topic/50228/solved-qtwebengine-headless. The answer there is just plain wrong ;) > I have test it use terminal under ubuntu with GUI, but it will output the same error as yours when I switch to text interface with CTRL+ALT+F1. I am sorry, and I am confused. Yeah, because the GUI terminal will also have an X server available (see echo $DISPLAY), but the text terminal won't. Florian -- http://www.the-compiler.org | me at the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: From Kai.Koehne at theqtcompany.com Tue Dec 8 09:13:14 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Tue, 8 Dec 2015 08:13:14 +0000 Subject: [Qtwebengine] =?gb2312?b?u9i4tKO6IEhvdyBkbyBJIHJ1biB3ZWIgZW5naW5l?= =?gb2312?b?IG9uIGEgc2V2ZXIgd2l0aG91dCBhIGRpc3BsYXk/?= In-Reply-To: <20151208060359.GG5582@tonks> References: <20151208060359.GG5582@tonks> Message-ID: > -----Original Message----- > From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf > Of Florian Bruhin > Sent: Tuesday, December 08, 2015 7:04 AM > To: Nemo <377307289 at qq.com> > Cc: qtwebengine > Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever without > a display? > > * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: > > Do not call show() member function of widgets, the application will become a > console application. > > Have you actually tried? > > It's not that easy. As soon as you want to create a QApplication, you need a > DISPLAY. And creating a widget without a QApplication won't work. There's the offscreen QPA plugin to allow this. Start your application with -platform offscreen And you should be able to use QApplication/QWidget's even without a window. Anyhow, there still might be dragons when it comes to QtWebEngine ... Please keep us up to date :) Regards Kai From michael.bruning at theqtcompany.com Tue Dec 8 10:06:49 2015 From: michael.bruning at theqtcompany.com (=?UTF-8?Q?Michael_Br=c3=bcning?=) Date: Tue, 8 Dec 2015 10:06:49 +0100 Subject: [Qtwebengine] =?utf-8?b?5Zue5aSN77yaIEhvdyBkbyBJIHJ1biB3ZWIgZW5n?= =?utf-8?q?ine_on_a_sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> Message-ID: <56669DA9.6030806@theqtcompany.com> Hi all, On 12/08/2015 09:13 AM, Koehne Kai wrote: >> -----Original Message----- >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf >> Of Florian Bruhin >> Sent: Tuesday, December 08, 2015 7:04 AM >> To: Nemo <377307289 at qq.com> >> Cc: qtwebengine >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever without >> a display? >> >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: >>> Do not call show() member function of widgets, the application will become a >> console application. >> >> Have you actually tried? >> >> It's not that easy. As soon as you want to create a QApplication, you need a >> DISPLAY. And creating a widget without a QApplication won't work. > There's the offscreen QPA plugin to allow this. Start your application with > > -platform offscreen > And you should be able to use QApplication/QWidget's even without a window. > > Anyhow, there still might be dragons when it comes to QtWebEngine ... Please > keep us up to date :) Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im afraid that for now, the quick fix will be running web engine in xvfb (FWIW, that is also how we used to run LayoutTests on a server with Qt WebKit). > > Regards > > Kai > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine -- Best regards, Michael From 377307289 at qq.com Tue Dec 8 10:15:03 2015 From: 377307289 at qq.com (=?gb18030?B?TmVtbw==?=) Date: Tue, 8 Dec 2015 17:15:03 +0800 Subject: [Qtwebengine] How do I run web engine on a sever without a display? In-Reply-To: <56669DA9.6030806@theqtcompany.com> References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: I also found the app crash with "-platform offscreen". ------------------ 原始邮件 ------------------ 发件人: "Michael Brüning";; 发送时间: 2015年12月8日(星期二) 下午5:06 收件人: "qtwebengine"; 主题: Re: [Qtwebengine]回复: How do I run web engine on a sever without a display? Hi all, On 12/08/2015 09:13 AM, Koehne Kai wrote: >> -----Original Message----- >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf >> Of Florian Bruhin >> Sent: Tuesday, December 08, 2015 7:04 AM >> To: Nemo <377307289 at qq.com> >> Cc: qtwebengine >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever without >> a display? >> >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: >>> Do not call show() member function of widgets, the application will become a >> console application. >> >> Have you actually tried? >> >> It's not that easy. As soon as you want to create a QApplication, you need a >> DISPLAY. And creating a widget without a QApplication won't work. > There's the offscreen QPA plugin to allow this. Start your application with > > -platform offscreen > And you should be able to use QApplication/QWidget's even without a window. > > Anyhow, there still might be dragons when it comes to QtWebEngine ... Please > keep us up to date :) Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im afraid that for now, the quick fix will be running web engine in xvfb (FWIW, that is also how we used to run LayoutTests on a server with Qt WebKit). > > Regards > > Kai > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine -- Best regards, Michael _______________________________________________ QtWebEngine mailing list QtWebEngine at qt-project.org http://lists.qt-project.org/mailman/listinfo/qtwebengine -------------- next part -------------- An HTML attachment was scrubbed... URL: From knt261 at gmail.com Tue Dec 8 22:55:19 2015 From: knt261 at gmail.com (Kevin Truong) Date: Tue, 8 Dec 2015 13:55:19 -0800 Subject: [Qtwebengine] How do I run web engine on a sever without a display? In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: Thanks for the insights everyone -- it seems like xvfb is the way to go to use qt web engine for X-less servers. Users have the same issue for chromium too as Florian pointed out, and they were advised to just use xvfb. Reading through phantomjs source code, it seems like they patched WebKit via the QPA plug in, which doesn't seem trivial at all! On Tue, Dec 8, 2015 at 1:15 AM, Nemo <377307289 at qq.com> wrote: > I also found the app crash with "-platform offscreen". > > > ------------------ 原始邮件 ------------------ > *发件人:* "Michael Brüning";; > *发送时间:* 2015年12月8日(星期二) 下午5:06 > *收件人:* "qtwebengine"; > *主题:* Re: [Qtwebengine]回复: How do I run web engine on a sever without a > display? > > Hi all, > > On 12/08/2015 09:13 AM, Koehne Kai wrote: > >> -----Original Message----- > >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf > >> Of Florian Bruhin > >> Sent: Tuesday, December 08, 2015 7:04 AM > >> To: Nemo <377307289 at qq.com> > >> Cc: qtwebengine > >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever > without > >> a display? > >> > >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: > >>> Do not call show() member function of widgets, the application will > become a > >> console application. > >> > >> Have you actually tried? > >> > >> It's not that easy. As soon as you want to create a QApplication, you > need a > >> DISPLAY. And creating a widget without a QApplication won't work. > > There's the offscreen QPA plugin to allow this. Start your application > with > > > > -platform offscreen > > And you should be able to use QApplication/QWidget's even without a > window. > > > > Anyhow, there still might be dragons when it comes to QtWebEngine ... > Please > > keep us up to date :) > > Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im > afraid that for now, the quick fix will be running web engine in xvfb > (FWIW, that is also how we used to run LayoutTests on a server with Qt > WebKit). > > > > Regards > > > > Kai > > _______________________________________________ > > QtWebEngine mailing list > > QtWebEngine at qt-project.org > > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > -- > Best regards, > Michael > > > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From knt261 at gmail.com Tue Dec 8 23:10:49 2015 From: knt261 at gmail.com (Kevin Truong) Date: Tue, 8 Dec 2015 14:10:49 -0800 Subject: [Qtwebengine] How do I run web engine on a sever without a display? In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: On second thought, what does -platform offscreen do exactly? Is it QT's implementation of an xvfb-like feature? I am wondering if it is worth my time to try and pursue debugging -platform offscreen to get it to work on qt web engine (since it crashes for me too). If -platform offscreen runs qt web engine without crashing, would it theoretically allow chromium to render too? Or do I eventually still need to run xvfb to let chromium render the web page? On Tue, Dec 8, 2015 at 1:55 PM, Kevin Truong wrote: > Thanks for the insights everyone -- it seems like xvfb is the way to go to > use qt web engine for X-less servers. Users have the same issue for > chromium too as Florian pointed out, and they were advised to just use xvfb. > > Reading through phantomjs source code, it seems like they patched WebKit > via the QPA plug in, which doesn't seem trivial at all! > > On Tue, Dec 8, 2015 at 1:15 AM, Nemo <377307289 at qq.com> wrote: > >> I also found the app crash with "-platform offscreen". >> >> >> ------------------ 原始邮件 ------------------ >> *发件人:* "Michael Brüning";; >> *发送时间:* 2015年12月8日(星期二) 下午5:06 >> *收件人:* "qtwebengine"; >> *主题:* Re: [Qtwebengine]回复: How do I run web engine on a sever without a >> display? >> >> Hi all, >> >> On 12/08/2015 09:13 AM, Koehne Kai wrote: >> >> -----Original Message----- >> >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On >> Behalf >> >> Of Florian Bruhin >> >> Sent: Tuesday, December 08, 2015 7:04 AM >> >> To: Nemo <377307289 at qq.com> >> >> Cc: qtwebengine >> >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever >> without >> >> a display? >> >> >> >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: >> >>> Do not call show() member function of widgets, the application will >> become a >> >> console application. >> >> >> >> Have you actually tried? >> >> >> >> It's not that easy. As soon as you want to create a QApplication, you >> need a >> >> DISPLAY. And creating a widget without a QApplication won't work. >> > There's the offscreen QPA plugin to allow this. Start your application >> with >> > >> > -platform offscreen >> > And you should be able to use QApplication/QWidget's even without a >> window. >> > >> > Anyhow, there still might be dragons when it comes to QtWebEngine ... >> Please >> > keep us up to date :) >> >> Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im >> afraid that for now, the quick fix will be running web engine in xvfb >> (FWIW, that is also how we used to run LayoutTests on a server with Qt >> WebKit). >> > >> > Regards >> > >> > Kai >> > _______________________________________________ >> > QtWebEngine mailing list >> > QtWebEngine at qt-project.org >> > http://lists.qt-project.org/mailman/listinfo/qtwebengine >> >> -- >> Best regards, >> Michael >> >> >> _______________________________________________ >> QtWebEngine mailing list >> QtWebEngine at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/qtwebengine >> >> _______________________________________________ >> QtWebEngine mailing list >> QtWebEngine at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/qtwebengine >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Wed Dec 9 06:03:02 2015 From: 377307289 at qq.com (=?gb18030?B?TmVtbw==?=) Date: Wed, 9 Dec 2015 13:03:02 +0800 Subject: [Qtwebengine] =?gb18030?b?u9i4tKO6ICBIb3cgZG8gSSBydW4gd2ViIGVu?= =?gb18030?q?gine_on_a_sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: How to use xvfb? I have install it and the app still crash with "-platform offscreen". ------------------ 原始邮件 ------------------ 发件人: "Kevin Truong";; 发送时间: 2015年12月9日(星期三) 上午6:10 收件人: "Nemo"<377307289 at qq.com>; 抄送: "qtwebengine"; 主题: Re: [Qtwebengine] How do I run web engine on a sever without a display? On second thought, what does -platform offscreen do exactly? Is it QT's implementation of an xvfb-like feature? I am wondering if it is worth my time to try and pursue debugging -platform offscreen to get it to work on qt web engine (since it crashes for me too). If -platform offscreen runs qt web engine without crashing, would it theoretically allow chromium to render too? Or do I eventually still need to run xvfb to let chromium render the web page? On Tue, Dec 8, 2015 at 1:55 PM, Kevin Truong wrote: Thanks for the insights everyone -- it seems like xvfb is the way to go to use qt web engine for X-less servers. Users have the same issue for chromium too as Florian pointed out, and they were advised to just use xvfb. Reading through phantomjs source code, it seems like they patched WebKit via the QPA plug in, which doesn't seem trivial at all! On Tue, Dec 8, 2015 at 1:15 AM, Nemo <377307289 at qq.com> wrote: I also found the app crash with "-platform offscreen". ------------------ 原始邮件 ------------------ 发件人: "Michael Brüning";; 发送时间: 2015年12月8日(星期二) 下午5:06 收件人: "qtwebengine"; 主题: Re: [Qtwebengine]回复: How do I run web engine on a sever without a display? Hi all, On 12/08/2015 09:13 AM, Koehne Kai wrote: >> -----Original Message----- >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf >> Of Florian Bruhin >> Sent: Tuesday, December 08, 2015 7:04 AM >> To: Nemo <377307289 at qq.com> >> Cc: qtwebengine >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever without >> a display? >> >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: >>> Do not call show() member function of widgets, the application will become a >> console application. >> >> Have you actually tried? >> >> It's not that easy. As soon as you want to create a QApplication, you need a >> DISPLAY. And creating a widget without a QApplication won't work. > There's the offscreen QPA plugin to allow this. Start your application with > > -platform offscreen > And you should be able to use QApplication/QWidget's even without a window. > > Anyhow, there still might be dragons when it comes to QtWebEngine ... Please > keep us up to date :) Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im afraid that for now, the quick fix will be running web engine in xvfb (FWIW, that is also how we used to run LayoutTests on a server with Qt WebKit). > > Regards > > Kai > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine -- Best regards, Michael _______________________________________________ QtWebEngine mailing list QtWebEngine at qt-project.org http://lists.qt-project.org/mailman/listinfo/qtwebengine _______________________________________________ QtWebEngine mailing list QtWebEngine at qt-project.org http://lists.qt-project.org/mailman/listinfo/qtwebengine -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Wed Dec 9 07:43:45 2015 From: 377307289 at qq.com (=?gb18030?B?TmVtbw==?=) Date: Wed, 9 Dec 2015 14:43:45 +0800 Subject: [Qtwebengine] =?gb18030?q?Re=A3=BA__How_do_I_run_web_engine_on_a_?= =?gb18030?q?sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: xvfb-run --server-args="-screen 0, 1024x868x24" ./myapp_webengine This works. ------------------ 原始邮件 ------------------ 发件人: "377307289";<377307289 at qq.com>; 发送时间: 2015年12月9日(星期三) 中午1:03 收件人: "qtwebengine"; 主题: [Qtwebengine] 回复: How do I run web engine on a sever without a display? How to use xvfb? I have install it and the app still crash with "-platform offscreen". ------------------ 原始邮件 ------------------ 发件人: "Kevin Truong";; 发送时间: 2015年12月9日(星期三) 上午6:10 收件人: "Nemo"<377307289 at qq.com>; 抄送: "qtwebengine"; 主题: Re: [Qtwebengine] How do I run web engine on a sever without a display? On second thought, what does -platform offscreen do exactly? Is it QT's implementation of an xvfb-like feature? I am wondering if it is worth my time to try and pursue debugging -platform offscreen to get it to work on qt web engine (since it crashes for me too). If -platform offscreen runs qt web engine without crashing, would it theoretically allow chromium to render too? Or do I eventually still need to run xvfb to let chromium render the web page? On Tue, Dec 8, 2015 at 1:55 PM, Kevin Truong wrote: Thanks for the insights everyone -- it seems like xvfb is the way to go to use qt web engine for X-less servers. Users have the same issue for chromium too as Florian pointed out, and they were advised to just use xvfb. Reading through phantomjs source code, it seems like they patched WebKit via the QPA plug in, which doesn't seem trivial at all! On Tue, Dec 8, 2015 at 1:15 AM, Nemo <377307289 at qq.com> wrote: I also found the app crash with "-platform offscreen". ------------------ 原始邮件 ------------------ 发件人: "Michael Brüning";; 发送时间: 2015年12月8日(星期二) 下午5:06 收件人: "qtwebengine"; 主题: Re: [Qtwebengine]回复: How do I run web engine on a sever without a display? Hi all, On 12/08/2015 09:13 AM, Koehne Kai wrote: >> -----Original Message----- >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On Behalf >> Of Florian Bruhin >> Sent: Tuesday, December 08, 2015 7:04 AM >> To: Nemo <377307289 at qq.com> >> Cc: qtwebengine >> Subject: Re: [Qtwebengine] 回复: How do I run web engine on a sever without >> a display? >> >> * Nemo <377307289 at qq.com> [2015-12-08 13:58:37 +0800]: >>> Do not call show() member function of widgets, the application will become a >> console application. >> >> Have you actually tried? >> >> It's not that easy. As soon as you want to create a QApplication, you need a >> DISPLAY. And creating a widget without a QApplication won't work. > There's the offscreen QPA plugin to allow this. Start your application with > > -platform offscreen > And you should be able to use QApplication/QWidget's even without a window. > > Anyhow, there still might be dragons when it comes to QtWebEngine ... Please > keep us up to date :) Unfortunately, this will crash with a SIGSEGV in a non-GUI terminal. Im afraid that for now, the quick fix will be running web engine in xvfb (FWIW, that is also how we used to run LayoutTests on a server with Qt WebKit). > > Regards > > Kai > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine -- Best regards, Michael _______________________________________________ QtWebEngine mailing list QtWebEngine at qt-project.org http://lists.qt-project.org/mailman/listinfo/qtwebengine _______________________________________________ QtWebEngine mailing list QtWebEngine at qt-project.org http://lists.qt-project.org/mailman/listinfo/qtwebengine -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Wed Dec 9 08:20:29 2015 From: 377307289 at qq.com (=?ISO-8859-1?B?TmVtbw==?=) Date: Wed, 9 Dec 2015 15:20:29 +0800 Subject: [Qtwebengine] How to detect ajax done event? Message-ID: "loadFinished" callback is called when page loaded, but some web page returns important thing after "loadFinished" by ajax, how can I detect this event? -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.bruning at theqtcompany.com Wed Dec 9 09:56:55 2015 From: michael.bruning at theqtcompany.com (=?UTF-8?Q?Michael_Br=c3=bcning?=) Date: Wed, 9 Dec 2015 09:56:55 +0100 Subject: [Qtwebengine] =?utf-8?q?Re=EF=BC=9A_How_do_I_run_web_engine_on_a_?= =?utf-8?q?sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> Message-ID: <5667ECD7.8000108@theqtcompany.com> Hi Nemo, On 12/09/2015 07:43 AM, Nemo wrote: > |xvfb-run --server-args="-screen 0, 1024x868x24" ./myapp_webengine| > This works. > yes, if you're using xvfb, you shouldn't use -platform offscreen. -- Best regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhengxu7806 at gmail.com Wed Dec 9 17:18:36 2015 From: zhengxu7806 at gmail.com (zheng xu(gmail)) Date: Wed, 9 Dec 2015 11:18:36 -0500 Subject: [Qtwebengine] Can qtwebengine use software renderer? Message-ID: <5668545C.3040604@gmail.com> Hi A quick question. Can we use software renderer on qtwebengine? Such as Quick2DRender (http://doc.qt.io/QtQuick2DRenderer/)? Since I am working on the board without OpenGL support. Cheers, Jeff From allan.jensen at theqtcompany.com Wed Dec 9 17:38:03 2015 From: allan.jensen at theqtcompany.com (Allan Sandfeld Jensen) Date: Wed, 9 Dec 2015 17:38:03 +0100 Subject: [Qtwebengine] Can qtwebengine use software renderer? In-Reply-To: <5668545C.3040604@gmail.com> References: <5668545C.3040604@gmail.com> Message-ID: <201512091738.03690.allan.jensen@theqtcompany.com> Hi Jeff On Wednesday 09 December 2015, zheng xu(gmail) wrote: > A quick question. > Can we use software renderer on qtwebengine? Such as Quick2DRender > (http://doc.qt.io/QtQuick2DRenderer/)? > Since I am working on the board without OpenGL support. > Yes, that should be supported. GPU acceleration and WebGL ends up disabled of course, and it requires you have a license for Quick2DRender in the first place. Regards `Allan -- The Qt Company Rudower Chausse 13, 12489 D-Berlin The Qt Company is a group company of Digia Plc, Valimotie 21, FI-00380 Helsinki Finland From zhengxu7806 at gmail.com Wed Dec 9 17:51:43 2015 From: zhengxu7806 at gmail.com (zheng xu(gmail)) Date: Wed, 9 Dec 2015 11:51:43 -0500 Subject: [Qtwebengine] Can qtwebengine use software renderer? In-Reply-To: <201512091738.03690.allan.jensen@theqtcompany.com> References: <5668545C.3040604@gmail.com> <201512091738.03690.allan.jensen@theqtcompany.com> Message-ID: <56685C1F.10300@gmail.com> Thanks Allan! Until I get license, can I just use opensource license to evaluate it (build qtwebengine with QtQuick2DRender to see how it works on my device) before going into production? or need to apply temporary license for evaluating? Cheers, Jeff On 2015/12/09 11:38, Allan Sandfeld Jensen wrote: > Hi Jeff > > On Wednesday 09 December 2015, zheng xu(gmail) wrote: >> A quick question. >> Can we use software renderer on qtwebengine? Such as Quick2DRender >> (http://doc.qt.io/QtQuick2DRenderer/)? >> Since I am working on the board without OpenGL support. >> > Yes, that should be supported. GPU acceleration and WebGL ends up disabled of > course, and it requires you have a license for Quick2DRender in the first > place. > > Regards > `Allan > From knt261 at gmail.com Thu Dec 10 01:22:01 2015 From: knt261 at gmail.com (Kevin Truong) Date: Wed, 9 Dec 2015 16:22:01 -0800 Subject: [Qtwebengine] =?utf-8?q?Re=EF=BC=9A_How_do_I_run_web_engine_on_a_?= =?utf-8?q?sever_without_a_display=3F?= In-Reply-To: <5667ECD7.8000108@theqtcompany.com> References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> <5667ECD7.8000108@theqtcompany.com> Message-ID: Yeah that's what I meant -- the -platform offscreen crashes whether or not you use xvfb. On Wed, Dec 9, 2015 at 12:56 AM, Michael Brüning < michael.bruning at theqtcompany.com> wrote: > Hi Nemo, > > On 12/09/2015 07:43 AM, Nemo wrote: > > xvfb-run --server-args="-screen 0, 1024x868x24" ./myapp_webengine > > This works. > > yes, if you're using xvfb, you shouldn't use -platform offscreen. > > -- > > Best regards, > Michael > > > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kai.Koehne at theqtcompany.com Thu Dec 10 08:41:42 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Thu, 10 Dec 2015 07:41:42 +0000 Subject: [Qtwebengine] Can qtwebengine use software renderer? In-Reply-To: <56685C1F.10300@gmail.com> References: <5668545C.3040604@gmail.com> <201512091738.03690.allan.jensen@theqtcompany.com> <56685C1F.10300@gmail.com> Message-ID: > -----Original Message----- > From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On > Behalf Of zheng xu(gmail) > Sent: Wednesday, December 09, 2015 5:52 PM > To: Jensen Allan ; qtwebengine at qt- > project.org > Subject: Re: [Qtwebengine] Can qtwebengine use software renderer? > > Thanks Allan! > > Until I get license, can I just use opensource license to evaluate it (build > qtwebengine with QtQuick2DRender to see how it works on my > device) before going into production? or need to apply temporary license > for evaluating? You'll need to request an evaluation to get the Qt Quick 2D Renderer. http://www.qt.io/request-eval-for-devices-step-2/ Regards Kai > Cheers, > Jeff > > On 2015/12/09 11:38, Allan Sandfeld Jensen wrote: > > Hi Jeff > > > > On Wednesday 09 December 2015, zheng xu(gmail) wrote: > >> A quick question. > >> Can we use software renderer on qtwebengine? Such as Quick2DRender > >> (http://doc.qt.io/QtQuick2DRenderer/)? > >> Since I am working on the board without OpenGL support. > >> > > Yes, that should be supported. GPU acceleration and WebGL ends up > > disabled of course, and it requires you have a license for > > Quick2DRender in the first place. > > > > Regards > > `Allan > > > > _______________________________________________ > QtWebEngine mailing list > QtWebEngine at qt-project.org > http://lists.qt-project.org/mailman/listinfo/qtwebengine From knt261 at gmail.com Fri Dec 11 01:17:16 2015 From: knt261 at gmail.com (Kevin Truong) Date: Thu, 10 Dec 2015 16:17:16 -0800 Subject: [Qtwebengine] =?utf-8?q?Re=EF=BC=9A_How_do_I_run_web_engine_on_a_?= =?utf-8?q?sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> <5667ECD7.8000108@theqtcompany.com> Message-ID: FYI, in case it helps anyone in the future, what I ended up using is a xdummy. I set up an xorg server with a dummy video driver: sudo apt-get install xauth xorg openbox Then followed the xdummy configuration here: http://askubuntu.com/questions/453109/ubuntu-14-04-add-fake-display-when-no-monitor-is-plugged-in Then, when I ssh into the headless server, I do: export DISPLAY=:0 sudo startx& That code starts the X server in the background. Then whenever I need to run a program that calls qt web engine, I just have to make sure "echo $DISPLAY" prints out ":0" (if not, I just export DISPLAY=:0 again), then I run the program. It should run smoothly. Using xdummy this way, the program feels slightly faster than xvfb -- might be due to xvfb requiring so many file writes to disk. I also notice the program hanging less often too. On Wed, Dec 9, 2015 at 4:22 PM, Kevin Truong wrote: > Yeah that's what I meant -- the -platform offscreen crashes whether or not > you use xvfb. > > On Wed, Dec 9, 2015 at 12:56 AM, Michael Brüning < > michael.bruning at theqtcompany.com> wrote: > >> Hi Nemo, >> >> On 12/09/2015 07:43 AM, Nemo wrote: >> >> xvfb-run --server-args="-screen 0, 1024x868x24" ./myapp_webengine >> >> This works. >> >> yes, if you're using xvfb, you shouldn't use -platform offscreen. >> >> -- >> >> Best regards, >> Michael >> >> >> _______________________________________________ >> QtWebEngine mailing list >> QtWebEngine at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/qtwebengine >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From knt261 at gmail.com Fri Dec 11 01:18:06 2015 From: knt261 at gmail.com (Kevin Truong) Date: Thu, 10 Dec 2015 16:18:06 -0800 Subject: [Qtwebengine] =?utf-8?q?Re=EF=BC=9A_How_do_I_run_web_engine_on_a_?= =?utf-8?q?sever_without_a_display=3F?= In-Reply-To: References: <20151208060359.GG5582@tonks> <56669DA9.6030806@theqtcompany.com> <5667ECD7.8000108@theqtcompany.com> Message-ID: (note that you now have to run the program in sudo, or it won't be able to connect to the X server) On Thu, Dec 10, 2015 at 4:17 PM, Kevin Truong wrote: > FYI, in case it helps anyone in the future, what I ended up using is a > xdummy. I set up an xorg server with a dummy video driver: > > sudo apt-get install xauth xorg openbox > > Then followed the xdummy configuration here: > > > http://askubuntu.com/questions/453109/ubuntu-14-04-add-fake-display-when-no-monitor-is-plugged-in > > Then, when I ssh into the headless server, I do: > export DISPLAY=:0 > sudo startx& > > That code starts the X server in the background. Then whenever I need to > run a program that calls qt web engine, I just have to make sure "echo > $DISPLAY" prints out ":0" (if not, I just export DISPLAY=:0 again), then I > run the program. It should run smoothly. > > Using xdummy this way, the program feels slightly faster than xvfb -- > might be due to xvfb requiring so many file writes to disk. I also notice > the program hanging less often too. > > > > > On Wed, Dec 9, 2015 at 4:22 PM, Kevin Truong wrote: > >> Yeah that's what I meant -- the -platform offscreen crashes whether or >> not you use xvfb. >> >> On Wed, Dec 9, 2015 at 12:56 AM, Michael Brüning < >> michael.bruning at theqtcompany.com> wrote: >> >>> Hi Nemo, >>> >>> On 12/09/2015 07:43 AM, Nemo wrote: >>> >>> xvfb-run --server-args="-screen 0, 1024x868x24" ./myapp_webengine >>> >>> This works. >>> >>> yes, if you're using xvfb, you shouldn't use -platform offscreen. >>> >>> -- >>> >>> Best regards, >>> Michael >>> >>> >>> _______________________________________________ >>> QtWebEngine mailing list >>> QtWebEngine at qt-project.org >>> http://lists.qt-project.org/mailman/listinfo/qtwebengine >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From knt261 at gmail.com Sat Dec 12 03:42:52 2015 From: knt261 at gmail.com (Kevin Truong) Date: Fri, 11 Dec 2015 18:42:52 -0800 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: Hi Kai and community, I patched QWebEngineUrlRequestInterceptor so that it emits a signal when the DOM resource is finished downloading (or if it failed, or if it aborted). I'd like to help contribute to the Qt Web Engine project, so I was wondering if I can submit my patch for a code review to the repository. Maybe other people might find this feature useful. What is the process for me to submit my patch? Best, Kevin On Wed, Nov 25, 2015 at 12:14 AM, Koehne Kai wrote: > > -----Original Message----- > > From: Kevin Truong [mailto:knt261 at gmail.com] > > Sent: Tuesday, November 24, 2015 7:15 PM > > To: Koehne Kai > > Cc: qtwebengine at qt-project.org > > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > > downloading? > > > > Sure Kai -- here's my use case: I have a page that loads ajax data into > the > > document. The ajax gets loaded into the DOM much later than when the > > DomContentLoaded and the Load event is triggered (the red and blue > vertical > > lines in the picture under "Network Panel Overview" > > https://developer.chrome.com/devtools/docs/network). If I understood > > correctly, it means the ajax is loaded much later than when > loadFinished() is > > signaled as well. The amount of time we have to wait before the ajax is > loaded > > into the document is variable -- it can take 50ms, or it can take up to > 10 seconds. > > I would like to know exactly when the ajax is loaded into the DOM (or if > that's > > not possible, exactly when the render finish downloading the ajax) before > > serializing/downloading the HTML of the page and doing tests on the > HTML. This > > is because the HTML changes after the ajax is loaded into the DOM, and > the > > tests need to be run on the updated HTML, not the initial HTML. > > I see. If you know the HTML/AJAX of the specific page, you might be able > to hook up > a JS handler that is called when the AJAX request is done, and then signal > this to the > C++ world , e.g. via QWebChannel. > > > I'd like this to be generalized as well (not just ajax, but any other > DOM resource), > > because I have test pages where the exact same thing happens, but with > iframes > > instead of ajax, or with certain very specific plug-ins (like the > facebook posts > > that load below an article page). These resources load independently of > > DomContentLoaded and the Load event. However, I can identify them either > via > > the URL or the content type -- I just need to figure out how I can tell > the render > > to serialize only right after these resources are loaded. > > I'm afraid that's not possible right now in the general case. In Qt 5.6 > we'll add > QWebEngineUrlRequestInterceptor: > > http://doc-snapshots.qt.io/qt5-5.6/qwebengineurlrequestinterceptor.html > > But that is called _before_ the request hits the networking stack. > > But even if you would have a way to get notified when the network request > is > done, it doesn't mean that the page is re-rendered/the DOM being updated. > > Regards > > Kai > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kai.Koehne at theqtcompany.com Tue Dec 15 09:14:32 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Tue, 15 Dec 2015 08:14:32 +0000 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: > -----Original Message----- > From: Kevin Truong [mailto:knt261 at gmail.com] > Sent: Saturday, December 12, 2015 3:43 AM > To: Koehne Kai > Cc: qtwebengine at qt-project.org > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > downloading? > > Hi Kai and community, Hi, > I patched QWebEngineUrlRequestInterceptor so that it emits a signal when > the DOM resource is finished downloading (or if it failed, or if it aborted). I'd > like to help contribute to the Qt Web Engine project, so I was wondering if I > can submit my patch for a code review to the repository. Maybe other > people might find this feature useful. > > What is the process for me to submit my patch? The process for Qt WebEngine is the same as for other Qt modules: https://wiki.qt.io/Qt_Contribution_Guidelines I know this process might look intimidating at first, but you can always get help here or in the IRC channels. Thiago also had a presentation at the last Qt World Summit : https://www.youtube.com/watch?v=bWuOQoY1J78 Regards Kai > Best, > Kevin > > > On Wed, Nov 25, 2015 at 12:14 AM, Koehne Kai > > wrote: > > > > -----Original Message----- > > From: Kevin Truong [mailto:knt261 at gmail.com > ] > > Sent: Tuesday, November 24, 2015 7:15 PM > > To: Koehne Kai > > > Cc: qtwebengine at qt-project.org project.org> > > Subject: Re: [Qtwebengine] How to tell when DOM resources > finishes > > downloading? > > > > Sure Kai -- here's my use case: I have a page that loads ajax data > into the > > document. The ajax gets loaded into the DOM much later than > when the > > DomContentLoaded and the Load event is triggered (the red and > blue vertical > > lines in the picture under "Network Panel Overview" > > https://developer.chrome.com/devtools/docs/network). If I > understood > > correctly, it means the ajax is loaded much later than when > loadFinished() is > > signaled as well. The amount of time we have to wait before the > ajax is loaded > > into the document is variable -- it can take 50ms, or it can take up > to 10 seconds. > > I would like to know exactly when the ajax is loaded into the DOM > (or if that's > > not possible, exactly when the render finish downloading the ajax) > before > > serializing/downloading the HTML of the page and doing tests on > the HTML. This > > is because the HTML changes after the ajax is loaded into the > DOM, and the > > tests need to be run on the updated HTML, not the initial HTML. > > I see. If you know the HTML/AJAX of the specific page, you might be > able to hook up > a JS handler that is called when the AJAX request is done, and then > signal this to the > C++ world , e.g. via QWebChannel. > > > I'd like this to be generalized as well (not just ajax, but any other > DOM resource), > > because I have test pages where the exact same thing happens, > but with iframes > > instead of ajax, or with certain very specific plug-ins (like the > facebook posts > > that load below an article page). These resources load > independently of > > DomContentLoaded and the Load event. However, I can identify > them either via > > the URL or the content type -- I just need to figure out how I can > tell the render > > to serialize only right after these resources are loaded. > > I'm afraid that's not possible right now in the general case. In Qt 5.6 > we'll add > QWebEngineUrlRequestInterceptor: > > http://doc-snapshots.qt.io/qt5- > 5.6/qwebengineurlrequestinterceptor.html > > But that is called _before_ the request hits the networking stack. > > But even if you would have a way to get notified when the network > request is > done, it doesn't mean that the page is re-rendered/the DOM being > updated. > > Regards > > Kai > > > From 377307289 at qq.com Tue Dec 15 10:46:43 2015 From: 377307289 at qq.com (=?ISO-8859-1?B?TmVtbw==?=) Date: Tue, 15 Dec 2015 17:46:43 +0800 Subject: [Qtwebengine] How to tell qtwebengine a result string from javascript timer? Message-ID: Hello everyone. I used runJavaScript(const QString& scriptSource, const QWebEngineCallback &resultCallback), the javascript start a timer and do something until operation is really done. But the "resultCallback" will be called immediately, how can I return the result in javascript timer? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kai.Koehne at theqtcompany.com Tue Dec 15 11:57:59 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Tue, 15 Dec 2015 10:57:59 +0000 Subject: [Qtwebengine] How to tell qtwebengine a result string from javascript timer? In-Reply-To: References: Message-ID: > -----Original Message----- > From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On > Behalf Of Nemo > Sent: Tuesday, December 15, 2015 10:47 AM > To: qtwebengine > Subject: [Qtwebengine] How to tell qtwebengine a result string from > javascript timer? > > Hello everyone. > > I used runJavaScript(const QString& scriptSource, const > QWebEngineCallback &resultCallback), the javascript > start a timer and do something until operation is really done. But the > "resultCallback" will be called immediately, how can I return the result in > javascript timer? Consider using QWebChannel to allow bi-directional communication between JS and C++. See e.g. https://doc-snapshots.qt.io/qt5-5.6/qtwebengine-webenginewidgets-markdowneditor-example.html for a complete example. Regards Kai From Kai.Koehne at theqtcompany.com Tue Dec 15 12:01:04 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Tue, 15 Dec 2015 11:01:04 +0000 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: > -----Original Message----- > From: Kevin Truong [mailto:knt261 at gmail.com] > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > downloading? > > Hi Kai and community, > > I patched QWebEngineUrlRequestInterceptor so that it emits a signal when > the DOM resource is finished downloading (or if it failed, or if it aborted). I'd > like to help contribute to the Qt Web Engine project, so I was wondering if I > can submit my patch for a code review to the repository. Maybe other > people might find this feature useful. Honestly speaking I'm not sure how this signal is the right solution in your use case. After all this will only reflect the state of the network request, while I understood you want to get notified if the DOM is updated with AJAX requests, right? Since rendering is done concurrently (in a separate process) there's no guarantee that the page is rendered when you react to this signal. Regards Kai From knt261 at gmail.com Tue Dec 15 22:06:45 2015 From: knt261 at gmail.com (Kevin Truong) Date: Tue, 15 Dec 2015 13:06:45 -0800 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: Thanks Kai -- I'll take a look at the submission process later this week. Yeah I agree with you it isn't the perfect solution. After the render downloads the ajax or iframe, I make it wait 100ms and hope it loads into the DOM. This gets most pages correct, but isn't perfect and many still serialize too early. Do you have a better idea/suggestion? I know you suggested this before: > If you know the HTML/AJAX of the specific page, you might be able to hook up a JS handler that is called when the AJAX request is done, and then signal this to the C++ world , e.g. via QWebChannel. If I understand it correctly, this means I have to know beforehand which node gets inserted into the HTML via the ajax/iframe right? E.g.
, and in the javascript, I repeatedly test if div[id=ajax] exists in the HTML? I prefer not to use this approach, since my test suite have over 1K URLs and I prefer not to write 1K rules by hand for each URL. I'm looking for a general way to tell (or approximately tell) when the ajax/iframe/specific plug in loads into the DOM, and the signal I patched is currently the only thing I could think of. On Tue, Dec 15, 2015 at 3:01 AM, Koehne Kai wrote: > > > > -----Original Message----- > > From: Kevin Truong [mailto:knt261 at gmail.com] > > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > > downloading? > > > > Hi Kai and community, > > > > I patched QWebEngineUrlRequestInterceptor so that it emits a signal when > > the DOM resource is finished downloading (or if it failed, or if it > aborted). I'd > > like to help contribute to the Qt Web Engine project, so I was wondering > if I > > can submit my patch for a code review to the repository. Maybe other > > people might find this feature useful. > > Honestly speaking I'm not sure how this signal is the right solution in > your use case. > After all this will only reflect the state of the network request, while I > understood > you want to get notified if the DOM is updated with AJAX requests, right? > Since rendering > is done concurrently (in a separate process) there's no guarantee that the > page is > rendered when you react to this signal. > > Regards > > > Kai > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 377307289 at qq.com Thu Dec 17 03:17:08 2015 From: 377307289 at qq.com (=?ISO-8859-1?B?TmVtbw==?=) Date: Thu, 17 Dec 2015 10:17:08 +0800 Subject: [Qtwebengine] How to tell qtwebengine a result string fromjavascript timer? In-Reply-To: References: Message-ID: Thank you Koehne Kai, it is helpful. ------------------ Original ------------------ From: "Koehne Kai";; Date: Tue, Dec 15, 2015 06:57 PM To: "Nemo"<377307289 at qq.com>; "qtwebengine"; Subject: RE: [Qtwebengine] How to tell qtwebengine a result string fromjavascript timer? > -----Original Message----- > From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On > Behalf Of Nemo > Sent: Tuesday, December 15, 2015 10:47 AM > To: qtwebengine > Subject: [Qtwebengine] How to tell qtwebengine a result string from > javascript timer? > > Hello everyone. > > I used runJavaScript(const QString& scriptSource, const > QWebEngineCallback &resultCallback), the javascript > start a timer and do something until operation is really done. But the > "resultCallback" will be called immediately, how can I return the result in > javascript timer? Consider using QWebChannel to allow bi-directional communication between JS and C++. See e.g. https://doc-snapshots.qt.io/qt5-5.6/qtwebengine-webenginewidgets-markdowneditor-example.html for a complete example. Regards Kai -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kai.Koehne at theqtcompany.com Thu Dec 17 14:24:57 2015 From: Kai.Koehne at theqtcompany.com (Koehne Kai) Date: Thu, 17 Dec 2015 13:24:57 +0000 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: > -----Original Message----- > From: Kevin Truong [mailto:knt261 at gmail.com] > Sent: Tuesday, December 15, 2015 10:07 PM > To: Koehne Kai > Cc: qtwebengine at qt-project.org > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > downloading? > > Thanks Kai -- I'll take a look at the submission process later this week. > > Yeah I agree with you it isn't the perfect solution. After the render > downloads the ajax or iframe, I make it wait 100ms and hope it loads into > the DOM. This gets most pages correct, but isn't perfect and many still > serialize too early. Do you have a better idea/suggestion? I know you > suggested this before: > > > If you know the HTML/AJAX of the specific page, you might be able to > hook up > a JS handler that is called when the AJAX request is done, and then signal > this to the > C++ world , e.g. via QWebChannel. > > > If I understand it correctly, this means I have to know beforehand which > node gets inserted into the HTML via the ajax/iframe right? E.g.
id="ajax">, and in the javascript, I repeatedly test if div[id=ajax] exists in the > HTML? You indeed have to have knowledge about the page to really decide when it is 'finished', because that's a semantic property. Some page might e.g. send AJAX requests forever (think about a twitter timeline that updates itself regularly). Anyhow, an alternative would be to just wait until the DOM isn't updated anymore for some time, but from within the page. You should be able to implement this with the help of DOM Mutation Observers , e.g. something like this observer.observe(document.documentElement, { childList: true, subtree: true }); and a timer. > I prefer not to use this approach, since my test suite have over 1K > URLs and I prefer not to write 1K rules by hand for each URL. I'm looking for > a general way to tell (or approximately tell) when the ajax/iframe/specific > plug in loads into the DOM, and the signal I patched is currently the only > thing I could think of. Fair enough. Regards Kai From knt261 at gmail.com Sat Dec 19 00:17:01 2015 From: knt261 at gmail.com (Kevin Truong) Date: Fri, 18 Dec 2015 15:17:01 -0800 Subject: [Qtwebengine] How to tell when DOM resources finishes downloading? In-Reply-To: References: Message-ID: Good idea about mutation observers, thanks! I'll take a look and see how well it does. On Thu, Dec 17, 2015 at 5:24 AM, Koehne Kai wrote: > > > > -----Original Message----- > > From: Kevin Truong [mailto:knt261 at gmail.com] > > Sent: Tuesday, December 15, 2015 10:07 PM > > To: Koehne Kai > > Cc: qtwebengine at qt-project.org > > Subject: Re: [Qtwebengine] How to tell when DOM resources finishes > > downloading? > > > > Thanks Kai -- I'll take a look at the submission process later this week. > > > > Yeah I agree with you it isn't the perfect solution. After the render > > downloads the ajax or iframe, I make it wait 100ms and hope it loads into > > the DOM. This gets most pages correct, but isn't perfect and many still > > serialize too early. Do you have a better idea/suggestion? I know you > > suggested this before: > > > > > If you know the HTML/AJAX of the specific page, you might be able to > > hook up > > a JS handler that is called when the AJAX request is done, and then > signal > > this to the > > C++ world , e.g. via QWebChannel. > > > > > > If I understand it correctly, this means I have to know beforehand which > > node gets inserted into the HTML via the ajax/iframe right? E.g.
> id="ajax">, and in the javascript, I repeatedly test if div[id=ajax] > exists in the > > HTML? > > You indeed have to have knowledge about the page to really decide when it > is 'finished', because that's a semantic property. Some page might e.g. > send > AJAX requests forever (think about a twitter timeline that updates itself > regularly). > > Anyhow, an alternative would be to just wait until the DOM isn't updated > anymore > for some time, but from within the page. You should be able to implement > this with > the help of DOM Mutation Observers , e.g. something like this > > observer.observe(document.documentElement, { > childList: true, > subtree: true > }); > > and a timer. > > > I prefer not to use this approach, since my test suite have over 1K > > URLs and I prefer not to write 1K rules by hand for each URL. I'm > looking for > > a general way to tell (or approximately tell) when the > ajax/iframe/specific > > plug in loads into the DOM, and the signal I patched is currently the > only > > thing I could think of. > > Fair enough. > > Regards > > Kai > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhengxu7806 at gmail.com Tue Dec 22 17:59:02 2015 From: zhengxu7806 at gmail.com (zheng xu(gmail)) Date: Tue, 22 Dec 2015 11:59:02 -0500 Subject: [Qtwebengine] Can qtwebengine use software renderer? In-Reply-To: References: <5668545C.3040604@gmail.com> <201512091738.03690.allan.jensen@theqtcompany.com> <56685C1F.10300@gmail.com> Message-ID: <56798156.4020503@gmail.com> Thanks Kai! Lemme have a try. On 2015/12/10 2:41, Koehne Kai wrote: > >> -----Original Message----- >> From: QtWebEngine [mailto:qtwebengine-bounces at qt-project.org] On >> Behalf Of zheng xu(gmail) >> Sent: Wednesday, December 09, 2015 5:52 PM >> To: Jensen Allan ; qtwebengine at qt- >> project.org >> Subject: Re: [Qtwebengine] Can qtwebengine use software renderer? >> >> Thanks Allan! >> >> Until I get license, can I just use opensource license to evaluate it (build >> qtwebengine with QtQuick2DRender to see how it works on my >> device) before going into production? or need to apply temporary license >> for evaluating? > You'll need to request an evaluation to get the Qt Quick 2D Renderer. > > http://www.qt.io/request-eval-for-devices-step-2/ > > Regards > > Kai > >> Cheers, >> Jeff >> >> On 2015/12/09 11:38, Allan Sandfeld Jensen wrote: >>> Hi Jeff >>> >>> On Wednesday 09 December 2015, zheng xu(gmail) wrote: >>>> A quick question. >>>> Can we use software renderer on qtwebengine? Such as Quick2DRender >>>> (http://doc.qt.io/QtQuick2DRenderer/)? >>>> Since I am working on the board without OpenGL support. >>>> >>> Yes, that should be supported. GPU acceleration and WebGL ends up >>> disabled of course, and it requires you have a license for >>> Quick2DRender in the first place. >>> >>> Regards >>> `Allan >>> >> _______________________________________________ >> QtWebEngine mailing list >> QtWebEngine at qt-project.org >> http://lists.qt-project.org/mailman/listinfo/qtwebengine From anand.nekkunti at atherenergy.com Tue Dec 29 08:31:53 2015 From: anand.nekkunti at atherenergy.com (Anand Nekkunti) Date: Tue, 29 Dec 2015 13:01:53 +0530 Subject: [Qtwebengine] geo location Message-ID: Hi All we are developing application in html5 which is in running chromium web browser in Linux .. we planning use qtwebengine to develop browser ... we have installed qtwebengine (webengine_5.4.1) and implemented web browser by referring examples. Everything is working fine except html5 geo location. 1.why qtwebengine is not getting gps co-ordinates from gpsd (we have gps modem and gpsd running). 2. is there any way to configure qtwebengine to tell use gpsd for geo location. Thanks&Regards Anand.N -- ​ map | website | facebook | twitter | linkedin ​ -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.jensen at theqtcompany.com Tue Dec 29 10:13:16 2015 From: allan.jensen at theqtcompany.com (Allan Sandfeld Jensen) Date: Tue, 29 Dec 2015 10:13:16 +0100 Subject: [Qtwebengine] geo location In-Reply-To: References: Message-ID: <201512291013.16809.allan.jensen@theqtcompany.com> On Tuesday 29 December 2015, Anand Nekkunti wrote: > Hi All > > we are developing application in html5 which is in running chromium web > browser in Linux .. we planning use qtwebengine to develop browser ... we > have installed qtwebengine (webengine_5.4.1) and implemented web browser by > referring examples. Everything is working fine except html5 geo location. > > 1.why qtwebengine is not getting gps co-ordinates from gpsd (we have gps > modem and gpsd running). > > 2. is there any way to configure qtwebengine to tell use gpsd for geo > location. > QtWebEngine should get the coordinates from QtPositioning which uses geoclue or gypsy, so you might need to install geoclue and its gpsd backend. I assume you have already connected the permission request, since you also need to grant permission before geolocations are read. Regards `Allan -- The Qt Company Rudower Chausse 13, 12489 D-Berlin The Qt Company is a group company of Digia Plc, Valimotie 21, FI-00380 Helsinki Finland From info at dresschmidt.de Sun Dec 13 21:57:01 2015 From: info at dresschmidt.de (Dres. Schmidt) Date: Sun, 13 Dec 2015 20:57:01 -0000 Subject: [Qtwebengine] QwebengineView multiple modal widgets Message-ID: Hello, I use QWebengineView and QChannel to display modal dialog with setWindowsModality(windowModality) and Local event loop - QEventloop. Everything works, but displaying a new instance from a Slot with first instance still executing just displays empty widget without html displayed. How do i create second Qwebengineview from first ? Regards, Mike