[Interest] Qt3DCore::QTransform::fromAxisAndAngle

2017-04-05 Thread Igor Mironchik

Hello,

What does Qt3DCore::QTransform::fromAxisAndAngle units of angle expect? 
Degs or rads?


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Writing big pictures to file

2017-04-05 Thread Petric Frank
Hello,

i have an application which writes pictures to *.png files.

Some of them are getting rather big - width becomes in the range on 15 
pixels.
If the width grows above about 32k the file is somehow corrupt. Symptom here 
is that all drawings with x coordinates > 32K are cutted in the generated 
file. There are no errors displayed in this case.

A little code excerpt:
-- cut --
QImage image;  // filled graphics

// some drawing commands

image.save ("file.png");
-- cut --

Somewhere i have read that there is a limitation in size.

Is there a way to overcome this ?

Qt here is at version 5.6.2.
OS is Linux 64Bit (and Windows 32 Bit/mingw).

kind regards
  Petric

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QEntity & QTransform

2017-04-05 Thread Andy
If I understand your question, there's no need to remove/add the component
- just change the QTransform. Everything will update using magic.

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney 


On Wed, Apr 5, 2017 at 2:50 PM, Igor Mironchik 
wrote:

> Hello guys,
>
> Is it normal practice?
>
> removeComponent( d->m_transform );
>
> d->m_transform->setScale( 0.5f );
>
> addComponent( d->m_transform );
>
> If I want to apply changed transformation...
>
> Or for such tasks there is a better solution?
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Konstantin Shegunov
On Wed, Apr 5, 2017 at 5:35 PM, Igor Mironchik 
wrote:

> But why it can be needed in 3D?
>

If the matrix is unitary (i.e. a rotation matrix), that's the inverse
transform, but a general affine transformation is not unitary.
In the common case it's just the application of the transposed M to a
vector. Matrix multiplications aren't commutative, but it holds that:
(M*v)^T = (v^T)*(M^T) (^T is used as notation for transposition)
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QEntity & QTransform

2017-04-05 Thread Igor Mironchik

Hello guys,

Is it normal practice?

removeComponent( d->m_transform );

d->m_transform->setScale( 0.5f );

addComponent( d->m_transform );

If I want to apply changed transformation...

Or for such tasks there is a better solution?

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt3D, custom mesh and materials

2017-04-05 Thread Sean Harmer
Are the image files actually found? I.e. can you load them into a QImage 
using those paths? Do you have the qtimageformats module installed for 
the webp format?


If all of the above checks out, can you post a small compilable example 
that reproduces the issue please?


Cheers,

Sean

On 05/04/2017 17:34, Helmut Mülner wrote:

Another question for the Qt3D experts:

I created a custom mesh by defining the following attributes: position,
normal, index, texCoord.
If I use a PhongMaterial, the mesh displays nicely:

auto material = new Qt3DExtras::QPhongMaterial();
material->setAmbient(QColor(85, 85, 128));
material->setDiffuse(QColor(128, 128, 192));
material->setSpecular(QColor(170, 170, 255));
entity->addComponent(mesh);
entity->addComponent(material);

If I use a QDiffuseMapMaterial, the mesh is black and I get a lot of the
same messages in the debug output:

[Qt3DRender::GLTexture] No QTextureImageData generated from functor

Code:
auto material = new Qt3DExtras::QDiffuseMapMaterial();
material->setShininess(70.0f);
material->setAmbient(QColor(85, 85, 128));
material->setSpecular(QColor(170, 170, 255));

Qt3DRender::QTextureImage *diffuseImage = new
Qt3DRender::QTextureImage();
diffuseImage->setSource(QUrl(QStringLiteral(":/diffuse.webp")));
material->diffuse()->addTextureImage(diffuseImage);
entity->addComponent(mesh);
entity->addComponent(material);


And if I use this:
auto material = new Qt3DExtras::QNormalDiffuseMapMaterial();
material->setShininess(70.0f);
material->setAmbient(QColor(85, 85, 128));
material->setSpecular(QColor(170, 170, 255));

Qt3DRender::QTextureImage *diffuseImage = new
Qt3DRender::QTextureImage();
diffuseImage->setSource(QUrl(QStringLiteral(":/diffuse.webp")));
material->diffuse()->addTextureImage(diffuseImage);
Qt3DRender::QTextureImage *normalImage = new
Qt3DRender::QTextureImage();
normalImage->setSource(QUrl((QStringLiteral(":/normal.webp";
material->normal()->addTextureImage(normalImage);
entity->addComponent(mesh);
entity->addComponent(material);

... my mesh displays in simple dark blue and I get the same debug messages.

(I burrowed the texture images from the materials-cpp sample.)

What did I miss?

Best regards




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



--
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] WebEngineView memory cache

2017-04-05 Thread Jani Tykka
Thanks Kai,

Created https://bugreports.qt.io/browse/QTBUG-59951

Jani

On Wed, Apr 5, 2017 at 1:06 PM, Kai Koehne  wrote:
>> -Original Message-
>
>> [...]
>
>> WebEngineViews has possibility to set:
>
>> profile.httpCacheType: WebEngineProfile.MemoryHttpCache
>
>>
>
>> Even though memory cache is set I can see that WebCache directory is
>
>> created and data written there. Is this a bug or do you think it works as
>
>> expected?
>
>
>
> Hi Jani,
>
>
>
> This is at least something we should investigate. Feel free to file a bug at 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__bugreports.qt.io=DwIGaQ=uiYkEnhlQB0H-gDwErXr4Q=wvIt_JuLp9axQq3NQWhY0UHgd4iE-wQTwUWS6jf3nRM=nWABsxGfesREmsD0CiPNr6P_03Qetpz5z0TbWyzCzoo=_BN9xhx5G4vtJz0klbtAq4xxo0OpVcF3BA77XhP7m58=
>   (Project:Qt, Component: WebEngine) , including the Qt version you're using.
>
>
>
> Regards
>
>
>
> Kai
>



-- 
Jani Tykkä
Development Manager | BroadSoft, Inc. | +358 44 596 0587 | jty...@broadsoft.com

-- 


This email is intended solely for the person or entity to which it is 
addressed and may contain confidential and/or privileged information. If 
you are not the intended recipient and have received this email in error, 
please notify BroadSoft, Inc. immediately by replying to this message, and 
destroy all copies of this message, along with any attachment, prior to 
reading, distributing or copying it.

Ce message confidentiel  et les éventuelles pièces jointes sont à l’usage 
exclusif de son ou de sa destinataire. Il est interdit, pour toute autre 
personne, de le distribuer, d’en dévoiler le contenu ou de le reproduire. 
Si vous avez reçu cette communication par erreur, veuillez en informer 
immédiatement l’expéditeur par courrier électronique et détruire l’original 
de ce message ainsi que toute copie.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt3D, custom mesh and materials

2017-04-05 Thread Helmut Mülner
Another question for the Qt3D experts:

I created a custom mesh by defining the following attributes: position,
normal, index, texCoord.
If I use a PhongMaterial, the mesh displays nicely:

auto material = new Qt3DExtras::QPhongMaterial();
material->setAmbient(QColor(85, 85, 128));
material->setDiffuse(QColor(128, 128, 192));
material->setSpecular(QColor(170, 170, 255));
entity->addComponent(mesh);
entity->addComponent(material);

If I use a QDiffuseMapMaterial, the mesh is black and I get a lot of the
same messages in the debug output:

[Qt3DRender::GLTexture] No QTextureImageData generated from functor

Code:
auto material = new Qt3DExtras::QDiffuseMapMaterial();
material->setShininess(70.0f);
material->setAmbient(QColor(85, 85, 128));
material->setSpecular(QColor(170, 170, 255));

Qt3DRender::QTextureImage *diffuseImage = new
Qt3DRender::QTextureImage();
diffuseImage->setSource(QUrl(QStringLiteral(":/diffuse.webp")));
material->diffuse()->addTextureImage(diffuseImage);
entity->addComponent(mesh);
entity->addComponent(material);


And if I use this:
auto material = new Qt3DExtras::QNormalDiffuseMapMaterial();
material->setShininess(70.0f);
material->setAmbient(QColor(85, 85, 128));
material->setSpecular(QColor(170, 170, 255));

Qt3DRender::QTextureImage *diffuseImage = new
Qt3DRender::QTextureImage();
diffuseImage->setSource(QUrl(QStringLiteral(":/diffuse.webp")));
material->diffuse()->addTextureImage(diffuseImage);
Qt3DRender::QTextureImage *normalImage = new
Qt3DRender::QTextureImage();
normalImage->setSource(QUrl((QStringLiteral(":/normal.webp";
material->normal()->addTextureImage(normalImage);
entity->addComponent(mesh);
entity->addComponent(material);

... my mesh displays in simple dark blue and I get the same debug messages.

(I burrowed the texture images from the materials-cpp sample.)

What did I miss?

Best regards




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik



05.04.2017 17:02, Sean Harmer пишет:

On Wednesday 05 April 2017 16:30:52 Igor Mironchik wrote:

Hi,

05.04.2017 16:12, Sean Harmer пишет:

On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:

Hello,

Can I apply Qt3DCore::QTransform to the QVector3D?

How can I calculate new QVector3D if Qt3DCore::QTransform will be
applied to it, in other words?

The transformation is stored in the matrix property. Pre-multiply your
vector by the matrix to get the resulting transformed vector:

v' = M v

Sorry for my question. But what the difference between M v and v M?

We treat v as a column vector, so we pre-multiply by the matrix M.


Thank you. Understood.

787 
 
	*inline* QVector4D 
 
*operator**(/const/ QVector4D 
& 
vector, /const/ QMatrix4x4 
& 
matrix)
788 
 	{
789 
 
	/float/ x, y, z, w;
790 	x 
 
= vector 
.x 
() 
* matrix 
.m 
[0][0] 
+
791 	vector 
.y 
() 
* matrix 
.m 
[0][1] 
+
792 	vector 
.z 
() 
* matrix 
.m 
[0][2] 
+
793 	vector 
.w 
() 
* matrix 
.m 
[0][3]; 

794 	y 
 
= vector 
.x 
() 
* matrix 
.m 
[1][0] 
+
795 	vector 
.y 
() 
* matrix 
.m 
[1][1] 
+
796 	vector 
.z 
() 
* matrix 
.m 
[1][2] 
+
797 	vector 
.w 
() 
* matrix 
.m 
[1][3]; 

798 	z 
 
= vector 
.x 
() 
* matrix 
.m 
[2][0] 
+
799 	vector 
.y 

Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik

Hi,

But the same question as applied to 3D world, what the difference 
between 'M v' and 'v M'.


I know that 'M v' applies transformation matrix to the vector. I 
understand it. And yes, I restored a little a gap in linear algebra.


But I can't understand what 'v M' will give me in 3D world.

Thank you.


05.04.2017 16:44, Oleg Evseev пишет:

Hi, Igor.

With all due respect, looking on your questions, it seems that you 
have huge knowledge gap in linear algebra.


It would be wise to firstly read how transformations can be 
represented by matrices:


https://en.wikipedia.org/wiki/Transformation_matrix 


https://en.wikipedia.org/wiki/Rotation_matrix

On Russian you can start for example with 
https://habrahabr.ru/post/131931/ - it's about basic things.


And so on, there are dozens articles about transformations and 
matrices, just google it.

Good luck!

---
With regards, Oleg



___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Awesome, I have it working, thanks very much for putting up with all my 
questions :D

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:13
To: Mark Tucker ; Kai Koehne ; 
Nibedit Dey ; Sze Howe Koh 
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 17:08, "Mark Tucker" :
> Ah, there's a 5.5.1 tag in there, presumably that's what I would need?
>
> Now I need to read up on how to use this from git :)

You just clone this repo, checkout 5.5.1 and build with qmake

>
> Thanks
>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:06
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 17:03, "Mark Tucker" :
>>  I'm not using the SDK installer - I compiled my own version of Qt from the 
>> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
>> that is the QtWebView module.
>>
>>  Is it a separate download?
>
> I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 15:02
>>  To: Mark Tucker ; Kai Koehne ; 
>> Nibedit Dey ; Sze Howe Koh 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:58, "Mark Tucker" :
>>>   Where do I install it from? Is it a configure option?
>>
>>  If you are using Qt SDK installer, you probably need to build it from 
>> source, as there is no binary component for 5.5.1 or earlier
>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>>   Sent: 05 April 2017 14:53
>>>   To: Mark Tucker ; Kai Koehne 
>>> ; Nibedit Dey ; Sze Howe Koh 
>>> 
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
>>>   05.04.2017, 16:45, "Mark Tucker" :
    Hi Kai,

    My problem is that despite having successfully compiled and installed 
 both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
 platform, the QML statement
>>>
>>>   You need to install QtWebView module
>>>
    import QtWebView 1.0

    Reports as being uninstalled/not available when I attempt to run my QML 
 app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
 same effect). This import works on my target Android platform.

    There does not appear to be a specific "qtwebview" folder/module within 
 my Src folder for my Qt version.

    I ran configure with no options, i.e. literally just "./configure" with 
 nothing added.

    I can live with having to have different import statements for the 
 different platforms if I have to, was just wanting to check that I wasn't 
 missing something stupid/obvious.

    Thanks

    Mark

    -Original Message-
    From: Interest 
 [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
 Behalf Of Kai Koehne
    Sent: 05 April 2017 12:21
    To: Nibedit Dey ; Sze Howe Koh 
 
    Cc: interest@qt-project.org
    Subject: Re: [Interest] QML WebView modules

> -Original Message-
> From: Interest
> [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> [..]
> With Qt 5.5 the Qt WebKit module is
> deprecated:(https://wiki.qt.io/New-
> Features-in-Qt-5.5#Deprecated_Functionality)
>
> QWebView uses WebKit as the backend.
>
> QWebEngineView uses Chromium as the backend.
>
> WebView with the same name has been defined in both WebKit and
> WebEngine. Hence import statement varies.[I believe this is the source
> of confusion ]
>
> import QtWebKit 3.0
> import QtWebView 1.0

    Not exactly. The terminology is arguably confusing here, but the 
 "QtWebView" import comes from the "Qt WebView" module 
 (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
 abstracts different rendering engines (Qt WebEngine, native) away behind a 
 simple API.

    So

    ---
    import QtWebView 1.0

    WebView {
  // ...
    }
    --
 

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev


05.04.2017, 17:08, "Mark Tucker" :
> Ah, there's a 5.5.1 tag in there, presumably that's what I would need?
>
> Now I need to read up on how to use this from git :)

You just clone this repo, checkout 5.5.1 and build with qmake

>
> Thanks
>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:06
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 17:03, "Mark Tucker" :
>>  I'm not using the SDK installer - I compiled my own version of Qt from the 
>> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
>> that is the QtWebView module.
>>
>>  Is it a separate download?
>
> I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 15:02
>>  To: Mark Tucker ; Kai Koehne ; 
>> Nibedit Dey ; Sze Howe Koh 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:58, "Mark Tucker" :
>>>   Where do I install it from? Is it a configure option?
>>
>>  If you are using Qt SDK installer, you probably need to build it from 
>> source, as there is no binary component for 5.5.1 or earlier
>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>>   Sent: 05 April 2017 14:53
>>>   To: Mark Tucker ; Kai Koehne 
>>> ; Nibedit Dey ; Sze Howe Koh 
>>> 
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
>>>   05.04.2017, 16:45, "Mark Tucker" :
    Hi Kai,

    My problem is that despite having successfully compiled and installed 
 both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
 platform, the QML statement
>>>
>>>   You need to install QtWebView module
>>>
    import QtWebView 1.0

    Reports as being uninstalled/not available when I attempt to run my QML 
 app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
 same effect). This import works on my target Android platform.

    There does not appear to be a specific "qtwebview" folder/module within 
 my Src folder for my Qt version.

    I ran configure with no options, i.e. literally just "./configure" with 
 nothing added.

    I can live with having to have different import statements for the 
 different platforms if I have to, was just wanting to check that I wasn't 
 missing something stupid/obvious.

    Thanks

    Mark

    -Original Message-
    From: Interest 
 [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
 Behalf Of Kai Koehne
    Sent: 05 April 2017 12:21
    To: Nibedit Dey ; Sze Howe Koh 
 
    Cc: interest@qt-project.org
    Subject: Re: [Interest] QML WebView modules

> -Original Message-
> From: Interest
> [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> [..]
> With Qt 5.5 the Qt WebKit module is
> deprecated:(https://wiki.qt.io/New-
> Features-in-Qt-5.5#Deprecated_Functionality)
>
> QWebView uses WebKit as the backend.
>
> QWebEngineView uses Chromium as the backend.
>
> WebView with the same name has been defined in both WebKit and
> WebEngine. Hence import statement varies.[I believe this is the source
> of confusion ]
>
> import QtWebKit 3.0
> import QtWebView 1.0

    Not exactly. The terminology is arguably confusing here, but the 
 "QtWebView" import comes from the "Qt WebView" module 
 (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
 abstracts different rendering engines (Qt WebEngine, native) away behind a 
 simple API.

    So

    ---
    import QtWebView 1.0

    WebView {
  // ...
    }
    --
    should work both on mobile and desktop. On Android, iOS and WinRT the 
 native browsers are embedded, on all the rest Qt WebEngine is used (if 
 available).

    Regards

    Kai
    ___
    Interest mailing list
    Interest@qt-project.org
    http://lists.qt-project.org/mailman/listinfo/interest
    

Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Ah, there's a 5.5.1 tag in there, presumably that's what I would need?

Now I need to read up on how to use this from git :)

Thanks

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:06
To: Mark Tucker ; Kai Koehne ; 
Nibedit Dey ; Sze Howe Koh 
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 17:03, "Mark Tucker" :
> I'm not using the SDK installer - I compiled my own version of Qt from the 
> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
> that is the QtWebView module.
>
> Is it a separate download?

I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:02
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:58, "Mark Tucker" :
>>  Where do I install it from? Is it a configure option?
>
> If you are using Qt SDK installer, you probably need to build it from source, 
> as there is no binary component for 5.5.1 or earlier
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 14:53
>>  To: Mark Tucker ; Kai Koehne ; 
>> Nibedit Dey ; Sze Howe Koh 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:45, "Mark Tucker" :
>>>   Hi Kai,
>>>
>>>   My problem is that despite having successfully compiled and installed 
>>> both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>>> platform, the QML statement
>>
>>  You need to install QtWebView module
>>
>>>   import QtWebView 1.0
>>>
>>>   Reports as being uninstalled/not available when I attempt to run my QML 
>>> app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
>>> same effect). This import works on my target Android platform.
>>>
>>>   There does not appear to be a specific "qtwebview" folder/module within 
>>> my Src folder for my Qt version.
>>>
>>>   I ran configure with no options, i.e. literally just "./configure" with 
>>> nothing added.
>>>
>>>   I can live with having to have different import statements for the 
>>> different platforms if I have to, was just wanting to check that I wasn't 
>>> missing something stupid/obvious.
>>>
>>>   Thanks
>>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Interest 
>>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
>>> Behalf Of Kai Koehne
>>>   Sent: 05 April 2017 12:21
>>>   To: Nibedit Dey ; Sze Howe Koh 
>>> 
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
    -Original Message-
    From: Interest
    [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
    [..]
    With Qt 5.5 the Qt WebKit module is
    deprecated:(https://wiki.qt.io/New-
    Features-in-Qt-5.5#Deprecated_Functionality)

    QWebView uses WebKit as the backend.

    QWebEngineView uses Chromium as the backend.

    WebView with the same name has been defined in both WebKit and
    WebEngine. Hence import statement varies.[I believe this is the source
    of confusion ]

    import QtWebKit 3.0
    import QtWebView 1.0
>>>
>>>   Not exactly. The terminology is arguably confusing here, but the 
>>> "QtWebView" import comes from the "Qt WebView" module 
>>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>>> abstracts different rendering engines (Qt WebEngine, native) away behind a 
>>> simple API.
>>>
>>>   So
>>>
>>>   ---
>>>   import QtWebView 1.0
>>>
>>>   WebView {
>>> // ...
>>>   }
>>>   --
>>>   should work both on mobile and desktop. On Android, iOS and WinRT the 
>>> native browsers are embedded, on all the rest Qt WebEngine is used (if 
>>> available).
>>>
>>>   Regards
>>>
>>>   Kai
>>>   ___
>>>   Interest mailing list
>>>   Interest@qt-project.org
>>>   http://lists.qt-project.org/mailman/listinfo/interest
>>>   ___
>>>   Interest mailing list
>>>   Interest@qt-project.org
>>>   http://lists.qt-project.org/mailman/listinfo/interest
>>
>>  --
>>  Regards,
>>  Konstantin
>
> --
> Regards,
> Konstantin

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org

Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev


05.04.2017, 07:50, "Nibedit Dey" :
> Dear Sze-Howe,
>
> I haven't worked much in Qt web modules. But below is my understanding.
>
> With Qt 5.5 the Qt WebKit module is 
> deprecated:(https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality)

FWIW, Qt WebKit is coming back, and we may support Android as well.
Anyone who wants to see this happening soon is welcome to join the project :)

>
> QWebView uses WebKit as the backend.
>
> QWebEngineView uses Chromium as the backend.
>
> WebView with the same name has been defined in both WebKit and WebEngine. 
> Hence import statement varies.[I believe this is the source of confusion ]
>
> import QtWebKit 3.0
> import QtWebView 1.0
>
> In 5.8,
> import QtWebView 1.1
> QT += qml quick webview
> This is useful on mobile platforms such as Android, iOS, and WinRT; 
> especially on iOS, where policy dictates that all web content is displayed 
> using the operating system's web view. [ 
> http://doc.qt.io/qt-5/qtwebview-index.html ]
>
> Regards,
> Nibedit
>
> On Wed, Apr 5, 2017 at 4:20 AM, Sze Howe Koh  wrote:
>> On 4 April 2017 at 21:39, Nibedit Dey  wrote:
>>>
>>>
>>> Hi Mark,
>>>
>>> Qt WebEngine is only supported on desktop platforms.Hence Linux is 
>>> supported.
>>> It's not supported on mobile platforms yet .So Qt 5.5.1 doesn't support.
>>> Refer: https://doc.qt.io/archives/qt-5.5/qtmodules.html
>>>
>>> To use WebView module, in pro file add:
>>> QT += webkit
>>> greaterThan(QT_MAJOR_VERSION, 4):QT+=webkitwidgets
>>
>> The Qt WebView module is not related to WebKit.
>>
>> Unfortunately, there are two different things named "WebView" in Qt,
>> which is very confusing:
>>
>> * http://doc.qt.io/archives/qt-5.5/qml-qtwebview-webview.html
>> * http://doc.qt.io/archives/qt-5.5/qml-qtwebkit-webview.html
>>
>>> For WebEngine module add:
>>> QT += webengine
>>>
>>> In both cases, Linux should be working.
>>>
>>> Regards,
>>> Nibedit
>>> .
>>>
>>>
>>> -- Forwarded message --
>>> From: Mark Tucker 
>>> Date: Tue, Apr 4, 2017 at 3:56 PM
>>> Subject: [Interest] QML WebView modules
>>> To: "interest@qt-project.org" 
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> I'm currently trying to create a QML app that works on both a Linux 
>>> platform and an Android platform. Due to the nature of my target platforms 
>>> (embedded systems), I'm limited to Qt 5.5.1 and cannot upgrade.
>>>
>>> Note that my app is pure QML and I cannot write any C++ code to solve this.
>>>
>>> To get the app running on Android, I can put "import QtWebView 1.1" into my 
>>> QML file imports, and then create a simple WebView component and set its 
>>> URL and that works.
>>>
>>> That same import doesn't work for me on Linux, however. I can use either 
>>> "import QtWebKit 3.0" or "import QtWebEngine 1.1" (with the latter, 
>>> changing my WebView to a WebEngineView too) and I can then see a webview 
>>> that works with no issues, but neither of those are available on my Android 
>>> target (nor, from what I understand, will they ever be).
>>>
>>> So, is there a way I can get the QtWebView import working on Linux? I can't 
>>> seem to figure out how to build it, or if it's even a valid option.
>>>
>>> If not, then I guess that means I'll need to have different QML for both 
>>> Linux and Android…
>>
>> When Qt WebView first started as a Tech Preview in Qt 5.4, it only
>> supported Android and iOS. These platforms were chosen specifically
>> because Qt WebKit and Qt WebEngine can't run on them.
>>
>> In later releases, support for desktop platforms was added to Qt
>> WebView, but I'm not exactly sure which version. Qt 5.5 might be too
>> early.
>>
>>> Thanks in advance
>>>
>>> Mark
>>
>> Regards,
>> Sze-Howe
> ,
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev


05.04.2017, 17:03, "Mark Tucker" :
> I'm not using the SDK installer - I compiled my own version of Qt from the 
> 5.5.1 sources. There doesn't seem to be anything included in that tarball 
> that is the QtWebView module.
>
> Is it a separate download?

I think you can only use git repo: http://code.qt.io/cgit/qt/qtwebview.git/

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 15:02
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:58, "Mark Tucker" :
>>  Where do I install it from? Is it a configure option?
>
> If you are using Qt SDK installer, you probably need to build it from source, 
> as there is no binary component for 5.5.1 or earlier
>
>>  Mark
>>
>>  -Original Message-
>>  From: Konstantin Tokarev [mailto:annu...@yandex.ru]
>>  Sent: 05 April 2017 14:53
>>  To: Mark Tucker ; Kai Koehne ; 
>> Nibedit Dey ; Sze Howe Koh 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>  05.04.2017, 16:45, "Mark Tucker" :
>>>   Hi Kai,
>>>
>>>   My problem is that despite having successfully compiled and installed 
>>> both the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>>> platform, the QML statement
>>
>>  You need to install QtWebView module
>>
>>>   import QtWebView 1.0
>>>
>>>   Reports as being uninstalled/not available when I attempt to run my QML 
>>> app on my Linux platform. (Note that using 1.1 instead of 1.0 produces the 
>>> same effect). This import works on my target Android platform.
>>>
>>>   There does not appear to be a specific "qtwebview" folder/module within 
>>> my Src folder for my Qt version.
>>>
>>>   I ran configure with no options, i.e. literally just "./configure" with 
>>> nothing added.
>>>
>>>   I can live with having to have different import statements for the 
>>> different platforms if I have to, was just wanting to check that I wasn't 
>>> missing something stupid/obvious.
>>>
>>>   Thanks
>>>
>>>   Mark
>>>
>>>   -Original Message-
>>>   From: Interest 
>>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On 
>>> Behalf Of Kai Koehne
>>>   Sent: 05 April 2017 12:21
>>>   To: Nibedit Dey ; Sze Howe Koh 
>>> 
>>>   Cc: interest@qt-project.org
>>>   Subject: Re: [Interest] QML WebView modules
>>>
    -Original Message-
    From: Interest
    [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
    [..]
    With Qt 5.5 the Qt WebKit module is
    deprecated:(https://wiki.qt.io/New-
    Features-in-Qt-5.5#Deprecated_Functionality)

    QWebView uses WebKit as the backend.

    QWebEngineView uses Chromium as the backend.

    WebView with the same name has been defined in both WebKit and
    WebEngine. Hence import statement varies.[I believe this is the source
    of confusion ]

    import QtWebKit 3.0
    import QtWebView 1.0
>>>
>>>   Not exactly. The terminology is arguably confusing here, but the 
>>> "QtWebView" import comes from the "Qt WebView" module 
>>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>>> abstracts different rendering engines (Qt WebEngine, native) away behind a 
>>> simple API.
>>>
>>>   So
>>>
>>>   ---
>>>   import QtWebView 1.0
>>>
>>>   WebView {
>>> // ...
>>>   }
>>>   --
>>>   should work both on mobile and desktop. On Android, iOS and WinRT the 
>>> native browsers are embedded, on all the rest Qt WebEngine is used (if 
>>> available).
>>>
>>>   Regards
>>>
>>>   Kai
>>>   ___
>>>   Interest mailing list
>>>   Interest@qt-project.org
>>>   http://lists.qt-project.org/mailman/listinfo/interest
>>>   ___
>>>   Interest mailing list
>>>   Interest@qt-project.org
>>>   http://lists.qt-project.org/mailman/listinfo/interest
>>
>>  --
>>  Regards,
>>  Konstantin
>
> --
> Regards,
> Konstantin

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
I'm not using the SDK installer - I compiled my own version of Qt from the 
5.5.1 sources. There doesn't seem to be anything included in that tarball that 
is the QtWebView module.

Is it a separate download?

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 15:02
To: Mark Tucker ; Kai Koehne ; 
Nibedit Dey ; Sze Howe Koh 
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 16:58, "Mark Tucker" :
> Where do I install it from? Is it a configure option?

If you are using Qt SDK installer, you probably need to build it from source, 
as there is no binary component for 5.5.1 or earlier

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 14:53
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:45, "Mark Tucker" :
>>  Hi Kai,
>>
>>  My problem is that despite having successfully compiled and installed both 
>> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>> platform, the QML statement
>
> You need to install QtWebView module
>
>>  import QtWebView 1.0
>>
>>  Reports as being uninstalled/not available when I attempt to run my QML app 
>> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
>> effect). This import works on my target Android platform.
>>
>>  There does not appear to be a specific "qtwebview" folder/module within my 
>> Src folder for my Qt version.
>>
>>  I ran configure with no options, i.e. literally just "./configure" with 
>> nothing added.
>>
>>  I can live with having to have different import statements for the 
>> different platforms if I have to, was just wanting to check that I wasn't 
>> missing something stupid/obvious.
>>
>>  Thanks
>>
>>  Mark
>>
>>  -Original Message-
>>  From: Interest 
>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
>> Of Kai Koehne
>>  Sent: 05 April 2017 12:21
>>  To: Nibedit Dey ; Sze Howe Koh 
>> 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>>   -Original Message-
>>>   From: Interest
>>>   [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>>   [..]
>>>   With Qt 5.5 the Qt WebKit module is
>>>   deprecated:(https://wiki.qt.io/New-
>>>   Features-in-Qt-5.5#Deprecated_Functionality)
>>>
>>>   QWebView uses WebKit as the backend.
>>>
>>>   QWebEngineView uses Chromium as the backend.
>>>
>>>   WebView with the same name has been defined in both WebKit and
>>>   WebEngine. Hence import statement varies.[I believe this is the source
>>>   of confusion ]
>>>
>>>   import QtWebKit 3.0
>>>   import QtWebView 1.0
>>
>>  Not exactly. The terminology is arguably confusing here, but the 
>> "QtWebView" import comes from the "Qt WebView" module 
>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>> abstracts different rendering engines (Qt WebEngine, native) away behind a 
>> simple API.
>>
>>  So
>>
>>  ---
>>  import QtWebView 1.0
>>
>>  WebView {
>>    // ...
>>  }
>>  --
>>  should work both on mobile and desktop. On Android, iOS and WinRT the 
>> native browsers are embedded, on all the rest Qt WebEngine is used (if 
>> available).
>>
>>  Regards
>>
>>  Kai
>>  ___
>>  Interest mailing list
>>  Interest@qt-project.org
>>  http://lists.qt-project.org/mailman/listinfo/interest
>>  ___
>>  Interest mailing list
>>  Interest@qt-project.org
>>  http://lists.qt-project.org/mailman/listinfo/interest
>
> --
> Regards,
> Konstantin

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Sean Harmer
On Wednesday 05 April 2017 16:30:52 Igor Mironchik wrote:
> Hi,
> 
> 05.04.2017 16:12, Sean Harmer пишет:
> > On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:
> >> Hello,
> >> 
> >> Can I apply Qt3DCore::QTransform to the QVector3D?
> >> 
> >> How can I calculate new QVector3D if Qt3DCore::QTransform will be
> >> applied to it, in other words?
> > 
> > The transformation is stored in the matrix property. Pre-multiply your
> > vector by the matrix to get the resulting transformed vector:
> > 
> > v' = M v
> 
> Sorry for my question. But what the difference between M v and v M?

We treat v as a column vector, so we pre-multiply by the matrix M.

Cheers,

Sean

> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev


05.04.2017, 16:58, "Mark Tucker" :
> Where do I install it from? Is it a configure option?

If you are using Qt SDK installer, you probably need to build it from source, 
as there is no binary component for 5.5.1 or earlier

>
> Mark
>
> -Original Message-
> From: Konstantin Tokarev [mailto:annu...@yandex.ru]
> Sent: 05 April 2017 14:53
> To: Mark Tucker ; Kai Koehne ; 
> Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
> 05.04.2017, 16:45, "Mark Tucker" :
>>  Hi Kai,
>>
>>  My problem is that despite having successfully compiled and installed both 
>> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
>> platform, the QML statement
>
> You need to install QtWebView module
>
>>  import QtWebView 1.0
>>
>>  Reports as being uninstalled/not available when I attempt to run my QML app 
>> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
>> effect). This import works on my target Android platform.
>>
>>  There does not appear to be a specific "qtwebview" folder/module within my 
>> Src folder for my Qt version.
>>
>>  I ran configure with no options, i.e. literally just "./configure" with 
>> nothing added.
>>
>>  I can live with having to have different import statements for the 
>> different platforms if I have to, was just wanting to check that I wasn't 
>> missing something stupid/obvious.
>>
>>  Thanks
>>
>>  Mark
>>
>>  -Original Message-
>>  From: Interest 
>> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
>> Of Kai Koehne
>>  Sent: 05 April 2017 12:21
>>  To: Nibedit Dey ; Sze Howe Koh 
>> 
>>  Cc: interest@qt-project.org
>>  Subject: Re: [Interest] QML WebView modules
>>
>>>   -Original Message-
>>>   From: Interest
>>>   [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>>   [..]
>>>   With Qt 5.5 the Qt WebKit module is
>>>   deprecated:(https://wiki.qt.io/New-
>>>   Features-in-Qt-5.5#Deprecated_Functionality)
>>>
>>>   QWebView uses WebKit as the backend.
>>>
>>>   QWebEngineView uses Chromium as the backend.
>>>
>>>   WebView with the same name has been defined in both WebKit and
>>>   WebEngine. Hence import statement varies.[I believe this is the source
>>>   of confusion ]
>>>
>>>   import QtWebKit 3.0
>>>   import QtWebView 1.0
>>
>>  Not exactly. The terminology is arguably confusing here, but the 
>> "QtWebView" import comes from the "Qt WebView" module 
>> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
>> abstracts different rendering engines (Qt WebEngine, native) away behind a 
>> simple API.
>>
>>  So
>>
>>  ---
>>  import QtWebView 1.0
>>
>>  WebView {
>>    // ...
>>  }
>>  --
>>  should work both on mobile and desktop. On Android, iOS and WinRT the 
>> native browsers are embedded, on all the rest Qt WebEngine is used (if 
>> available).
>>
>>  Regards
>>
>>  Kai
>>  ___
>>  Interest mailing list
>>  Interest@qt-project.org
>>  http://lists.qt-project.org/mailman/listinfo/interest
>>  ___
>>  Interest mailing list
>>  Interest@qt-project.org
>>  http://lists.qt-project.org/mailman/listinfo/interest
>
> --
> Regards,
> Konstantin

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Where do I install it from? Is it a configure option?

Mark

-Original Message-
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 05 April 2017 14:53
To: Mark Tucker ; Kai Koehne ; 
Nibedit Dey ; Sze Howe Koh 
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



05.04.2017, 16:45, "Mark Tucker" :
> Hi Kai,
>
> My problem is that despite having successfully compiled and installed both 
> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
> platform, the QML statement

You need to install QtWebView module

>
> import QtWebView 1.0
>
> Reports as being uninstalled/not available when I attempt to run my QML app 
> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
> effect). This import works on my target Android platform.
>
> There does not appear to be a specific "qtwebview" folder/module within my 
> Src folder for my Qt version.
>
> I ran configure with no options, i.e. literally just "./configure" with 
> nothing added.
>
> I can live with having to have different import statements for the different 
> platforms if I have to, was just wanting to check that I wasn't missing 
> something stupid/obvious.
>
> Thanks
>
> Mark
>
> -Original Message-
> From: Interest 
> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
> Of Kai Koehne
> Sent: 05 April 2017 12:21
> To: Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
>>  -Original Message-
>>  From: Interest
>>  [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>  [..]
>>  With Qt 5.5 the Qt WebKit module is
>>  deprecated:(https://wiki.qt.io/New-
>>  Features-in-Qt-5.5#Deprecated_Functionality)
>>
>>  QWebView uses WebKit as the backend.
>>
>>  QWebEngineView uses Chromium as the backend.
>>
>>  WebView with the same name has been defined in both WebKit and
>>  WebEngine. Hence import statement varies.[I believe this is the source
>>  of confusion ]
>>
>>  import QtWebKit 3.0
>>  import QtWebView 1.0
>
> Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
> import comes from the "Qt WebView" module 
> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
> abstracts different rendering engines (Qt WebEngine, native) away behind a 
> simple API.
>
> So
>
> ---
> import QtWebView 1.0
>
> WebView {
>   // ...
> }
> --
> should work both on mobile and desktop. On Android, iOS and WinRT the native 
> browsers are embedded, on all the rest Qt WebEngine is used (if available).
>
> Regards
>
> Kai
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Konstantin Tokarev


05.04.2017, 16:45, "Mark Tucker" :
> Hi Kai,
>
> My problem is that despite having successfully compiled and installed both 
> the qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux 
> platform, the QML statement

You need to install QtWebView module

>
> import QtWebView 1.0
>
> Reports as being uninstalled/not available when I attempt to run my QML app 
> on my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
> effect). This import works on my target Android platform.
>
> There does not appear to be a specific "qtwebview" folder/module within my 
> Src folder for my Qt version.
>
> I ran configure with no options, i.e. literally just "./configure" with 
> nothing added.
>
> I can live with having to have different import statements for the different 
> platforms if I have to, was just wanting to check that I wasn't missing 
> something stupid/obvious.
>
> Thanks
>
> Mark
>
> -Original Message-
> From: Interest 
> [mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf 
> Of Kai Koehne
> Sent: 05 April 2017 12:21
> To: Nibedit Dey ; Sze Howe Koh 
> Cc: interest@qt-project.org
> Subject: Re: [Interest] QML WebView modules
>
>>  -Original Message-
>>  From: Interest
>>  [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
>>  [..]
>>  With Qt 5.5 the Qt WebKit module is
>>  deprecated:(https://wiki.qt.io/New-
>>  Features-in-Qt-5.5#Deprecated_Functionality)
>>
>>  QWebView uses WebKit as the backend.
>>
>>  QWebEngineView uses Chromium as the backend.
>>
>>  WebView with the same name has been defined in both WebKit and
>>  WebEngine. Hence import statement varies.[I believe this is the source
>>  of confusion ]
>>
>>  import QtWebKit 3.0
>>  import QtWebView 1.0
>
> Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
> import comes from the "Qt WebView" module 
> (http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that 
> abstracts different rendering engines (Qt WebEngine, native) away behind a 
> simple API.
>
> So
>
> ---
> import QtWebView 1.0
>
> WebView {
>   // ...
> }
> --
> should work both on mobile and desktop. On Android, iOS and WinRT the native 
> browsers are embedded, on all the rest Qt WebEngine is used (if available).
>
> Regards
>
> Kai
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Regards,
Konstantin
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik

Hi,

You are right. I fully forgot all this things. And now I'm trying to 
restore the gap.


05.04.2017 16:44, Oleg Evseev пишет:

Hi, Igor.

With all due respect, looking on your questions, it seems that you 
have huge knowledge gap in linear algebra.


It would be wise to firstly read how transformations can be 
represented by matrices:


https://en.wikipedia.org/wiki/Transformation_matrix 


https://en.wikipedia.org/wiki/Rotation_matrix

On Russian you can start for example with 
https://habrahabr.ru/post/131931/ - it's about basic things.


And so on, there are dozens articles about transformations and 
matrices, just google it.

Good luck!

---
With regards, Oleg



___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Hi Kai,

My problem is that despite having successfully compiled and installed both the 
qtwebkit and qtwebengine modules for Qt 5.5.1 on my desktop Linux platform, the 
QML statement

import QtWebView 1.0

Reports as being uninstalled/not available when I attempt to run my QML app on 
my Linux platform. (Note that using 1.1 instead of 1.0 produces the same 
effect). This import works on my target Android platform.

There does not appear to be a specific "qtwebview" folder/module within my Src 
folder for my Qt version.

I ran configure with no options, i.e. literally just "./configure" with nothing 
added.

I can live with having to have different import statements for the different 
platforms if I have to, was just wanting to check that I wasn't missing 
something stupid/obvious.

Thanks

Mark

-Original Message-
From: Interest 
[mailto:interest-bounces+mark.tucker=airborne.a...@qt-project.org] On Behalf Of 
Kai Koehne
Sent: 05 April 2017 12:21
To: Nibedit Dey ; Sze Howe Koh 
Cc: interest@qt-project.org
Subject: Re: [Interest] QML WebView modules



> -Original Message-
> From: Interest 
> [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> [..]
> With Qt 5.5 the Qt WebKit module is 
> deprecated:(https://wiki.qt.io/New-
> Features-in-Qt-5.5#Deprecated_Functionality)
> 
> QWebView uses WebKit as the backend.
> 
> QWebEngineView uses Chromium as the backend.
> 
> WebView with the same name has been defined in both WebKit and 
> WebEngine. Hence import statement varies.[I believe this is the source 
> of confusion ]
> 
> import QtWebKit 3.0
> import QtWebView 1.0

Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
import comes from the "Qt WebView" module 
(http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that abstracts 
different rendering engines (Qt WebEngine, native) away behind a simple API.

So 

---
import QtWebView 1.0

WebView {
  // ...
}
--
should work both on mobile and desktop. On Android, iOS and WinRT the native 
browsers are embedded, on all the rest Qt WebEngine is used (if available).

Regards

Kai
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Oleg Evseev
Hi, Igor.

With all due respect, looking on your questions, it seems that you have
huge knowledge gap in linear algebra.

It would be wise to firstly read how transformations can be represented by
matrices:

https://en.wikipedia.org/wiki/Transformation_matrix
https://en.wikipedia.org/wiki/Rotation_matrix

On Russian you can start for example with https://habrahabr.ru/post/131931/
- it's about basic things.

And so on, there are dozens articles about transformations and matrices,
just google it.
Good luck!

---
With regards, Oleg
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik

Hi,


05.04.2017 16:12, Sean Harmer пишет:

On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:

Hello,

Can I apply Qt3DCore::QTransform to the QVector3D?

How can I calculate new QVector3D if Qt3DCore::QTransform will be
applied to it, in other words?

The transformation is stored in the matrix property. Pre-multiply your vector
by the matrix to get the resulting transformed vector:

v' = M v


Sorry for my question. But what the difference between M v and v M?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Igor Mironchik

Hi,


05.04.2017 16:12, Sean Harmer пишет:

On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:

Hello,

Can I apply Qt3DCore::QTransform to the QVector3D?

How can I calculate new QVector3D if Qt3DCore::QTransform will be
applied to it, in other words?

The transformation is stored in the matrix property. Pre-multiply your vector
by the matrix to get the resulting transformed vector:

v' = M v


Great thanks. I just new to 3D. That is why I have so much questions. 
Thank you again.


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Applying transformation

2017-04-05 Thread Sean Harmer
On Wednesday 05 April 2017 15:55:48 Igor Mironchik wrote:
> Hello,
> 
> Can I apply Qt3DCore::QTransform to the QVector3D?
> 
> How can I calculate new QVector3D if Qt3DCore::QTransform will be
> applied to it, in other words?

The transformation is stored in the matrix property. Pre-multiply your vector 
by the matrix to get the resulting transformed vector:

v' = M v

Sean
-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Mike Chinander
The following is equivalent to your equation:

float cosAngle = QVector3D::dotProduct(v1.normalized(), v2.normalized());

Your numerator is the dot product and the denominator does the
normalization (makes them unit vectors).

On Wed, Apr 5, 2017 at 7:50 AM, Igor Mironchik 
wrote:

> Hi,
>
>
> 05.04.2017 15:13, Sean Harmer пишет:
>
>> Yes, just use the dot product.
>>
>
> You want to say, that QVector3D::dotProduct() will give me an angle?
>
>
>> Sean
>>
>> On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote:
>>
>>> Hi,
>>>
>>> I Googled it and found:
>>>
>>> The cos of angle between vectors is:
>>> |(ax*bx + ay*by + az*bz)
>>>
>>>  sqrt(ax*ax +
>>> ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)|
>>>
>>> 05.04.2017 14:52, Igor Mironchik пишет:
>>>
 05.04.2017 14:45, Igor Mironchik пишет:

> Hi,
>
> 05.04.2017 14:29, Paolo Angelelli пишет:
>
>> Just cross N and M to get the vector around which to rotate.
>>
>> Then use a QQuaternion to set the rotation in the
>> Qt3DCore::QTransform,
>> and construct it with fromAxisAndAngle(const QVector3D , float
>> angle)
>>
> Ok, I can rotate around the right axis. But what angle should I rotate?
>
 This is my question.

 And how can I calculate new normal to the rotated plane?
>
 I already know it...

 I just need to know what angle should I rotate.

 On Wed, 5 Apr 2017 14:18:56 +0300
>>
>> Igor Mironchik  wrote:
>>
>>> Hello,
>>>
>>> Let's say I have two vectors - N (normal vector to plane P1) and M
>>> (normal vector to plane P2).
>>>
>>> How to calculate x, y, z axis rotations angles for plane P2 to make
>>> plane P2 parallel to P1?
>>>
>>> How to calculate x, y, z axis rotations angles for plane P2 to
>>> rotate it
>>> around vector N?
>>>
>>> Thank you.
>>>
>>> And what is the measurement of angle in rotationX() of
>>> Qt3DCore::QTransform?
>>>
>>> I need to calculate angles in this units.
>>>
>>> ___
>>> Interest mailing list
>>> Interest@qt-project.org
>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>
>> ___
>> Interest mailing list
>> Interest@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Applying transformation

2017-04-05 Thread Igor Mironchik

Hello,

Can I apply Qt3DCore::QTransform to the QVector3D?

How can I calculate new QVector3D if Qt3DCore::QTransform will be 
applied to it, in other words?


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik

Hi,


05.04.2017 15:13, Sean Harmer пишет:

Yes, just use the dot product.


You want to say, that QVector3D::dotProduct() will give me an angle?


Sean

On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote:

Hi,

I Googled it and found:

The cos of angle between vectors is:
|(ax*bx + ay*by + az*bz)

 sqrt(ax*ax +
ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)|

05.04.2017 14:52, Igor Mironchik пишет:

05.04.2017 14:45, Igor Mironchik пишет:

Hi,

05.04.2017 14:29, Paolo Angelelli пишет:

Just cross N and M to get the vector around which to rotate.

Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform,
and construct it with fromAxisAndAngle(const QVector3D , float
angle)

Ok, I can rotate around the right axis. But what angle should I rotate?

This is my question.


And how can I calculate new normal to the rotated plane?

I already know it...

I just need to know what angle should I rotate.


On Wed, 5 Apr 2017 14:18:56 +0300

Igor Mironchik  wrote:

Hello,

Let's say I have two vectors - N (normal vector to plane P1) and M
(normal vector to plane P2).

How to calculate x, y, z axis rotations angles for plane P2 to make
plane P2 parallel to P1?

How to calculate x, y, z axis rotations angles for plane P2 to
rotate it
around vector N?

Thank you.

And what is the measurement of angle in rotationX() of
Qt3DCore::QTransform?

I need to calculate angles in this units.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Sean Harmer
Yes, just use the dot product.

Sean

On Wednesday 05 April 2017 14:59:48 Igor Mironchik wrote:
> Hi,
> 
> I Googled it and found:
> 
> The cos of angle between vectors is:
> |(ax*bx + ay*by + az*bz)
> 
>  sqrt(ax*ax +
> ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)|
> 
> 05.04.2017 14:52, Igor Mironchik пишет:
> > 05.04.2017 14:45, Igor Mironchik пишет:
> >> Hi,
> >> 
> >> 05.04.2017 14:29, Paolo Angelelli пишет:
> >>> Just cross N and M to get the vector around which to rotate.
> >>> 
> >>> Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform,
> >>> and construct it with fromAxisAndAngle(const QVector3D , float
> >>> angle)
> >> 
> >> Ok, I can rotate around the right axis. But what angle should I rotate?
> > 
> > This is my question.
> > 
> >> And how can I calculate new normal to the rotated plane?
> > 
> > I already know it...
> > 
> > I just need to know what angle should I rotate.
> > 
> >>> On Wed, 5 Apr 2017 14:18:56 +0300
> >>> 
> >>> Igor Mironchik  wrote:
>  Hello,
>  
>  Let's say I have two vectors - N (normal vector to plane P1) and M
>  (normal vector to plane P2).
>  
>  How to calculate x, y, z axis rotations angles for plane P2 to make
>  plane P2 parallel to P1?
>  
>  How to calculate x, y, z axis rotations angles for plane P2 to
>  rotate it
>  around vector N?
>  
>  Thank you.
>  
>  And what is the measurement of angle in rotationX() of
>  Qt3DCore::QTransform?
>  
>  I need to calculate angles in this units.
>  
>  ___
>  Interest mailing list
>  Interest@qt-project.org
>  http://lists.qt-project.org/mailman/listinfo/interest
> >>> 
> >>> ___
> >>> Interest mailing list
> >>> Interest@qt-project.org
> >>> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Nibedit Dey
Thank you Kai Koehne for the clarification.

On Wed, Apr 5, 2017 at 4:51 PM, Kai Koehne  wrote:

>
>
> > -Original Message-
> > From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> > [..]
> > With Qt 5.5 the Qt WebKit module is deprecated:(https://wiki.qt.io/New-
> > Features-in-Qt-5.5#Deprecated_Functionality)
> >
> > QWebView uses WebKit as the backend.
> >
> > QWebEngineView uses Chromium as the backend.
> >
> > WebView with the same name has been defined in both WebKit and
> > WebEngine. Hence import statement varies.[I believe this is the source of
> > confusion ]
> >
> > import QtWebKit 3.0
> > import QtWebView 1.0
>
> Not exactly. The terminology is arguably confusing here, but the
> "QtWebView" import comes from the "Qt WebView" module (
> http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that
> abstracts different rendering engines (Qt WebEngine, native) away behind a
> simple API.
>
> So
>
> ---
> import QtWebView 1.0
>
> WebView {
>   // ...
> }
> --
> should work both on mobile and desktop. On Android, iOS and WinRT the
> native browsers are embedded, on all the rest Qt WebEngine is used (if
> available).
>
> Regards
>
> Kai
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik

Hi,

I Googled it and found:

The cos of angle between vectors is:

|(ax*bx + ay*by + az*bz) 
 sqrt(ax*ax + 
ay*ay + az*az) * sqrt(bx*bx + by*by + bz*bz)|



05.04.2017 14:52, Igor Mironchik пишет:



05.04.2017 14:45, Igor Mironchik пишет:

Hi,

05.04.2017 14:29, Paolo Angelelli пишет:

Just cross N and M to get the vector around which to rotate.

Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform,
and construct it with fromAxisAndAngle(const QVector3D , float 
angle)


Ok, I can rotate around the right axis. But what angle should I rotate?


This is my question.



And how can I calculate new normal to the rotated plane?


I already know it...

I just need to know what angle should I rotate.






On Wed, 5 Apr 2017 14:18:56 +0300
Igor Mironchik  wrote:


Hello,

Let's say I have two vectors - N (normal vector to plane P1) and M
(normal vector to plane P2).

How to calculate x, y, z axis rotations angles for plane P2 to make
plane P2 parallel to P1?

How to calculate x, y, z axis rotations angles for plane P2 to 
rotate it

around vector N?

Thank you.

And what is the measurement of angle in rotationX() of 
Qt3DCore::QTransform?


I need to calculate angles in this units.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest






___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] HowTo detect Android / iBeacons (Qt 5.8)

2017-04-05 Thread ekke
I'm just developing a new example app to detect and manage Bluetooth LE
devices from Qt 5.8 (Android / iOS)

While implementing the BT LE Scanner part I got the question HowTo
detect if a discovered BT LE Device is an iBeacon / Android - AltBeacon.

Is there a way to do this with Qt 5.8 BT LE Classes ?

BTW: Over all I'm very satisfied with Qt 5.8 BT LE support. There are
some Bugs, but I was able to find workarounds.

Current Scanner and HeartRate example APPs are outdated and not fully
featured (checking all the possible error SIGNALs and states) So I
decided to develop a new Example app containing Scanner, HeartRate,
WeightControl. will be published at github probably next week.

ekke

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik



05.04.2017 14:45, Igor Mironchik пишет:

Hi,

05.04.2017 14:29, Paolo Angelelli пишет:

Just cross N and M to get the vector around which to rotate.

Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform,
and construct it with fromAxisAndAngle(const QVector3D , float 
angle)


Ok, I can rotate around the right axis. But what angle should I rotate?


This is my question.



And how can I calculate new normal to the rotated plane?


I already know it...

I just need to know what angle should I rotate.






On Wed, 5 Apr 2017 14:18:56 +0300
Igor Mironchik  wrote:


Hello,

Let's say I have two vectors - N (normal vector to plane P1) and M
(normal vector to plane P2).

How to calculate x, y, z axis rotations angles for plane P2 to make
plane P2 parallel to P1?

How to calculate x, y, z axis rotations angles for plane P2 to 
rotate it

around vector N?

Thank you.

And what is the measurement of angle in rotationX() of 
Qt3DCore::QTransform?


I need to calculate angles in this units.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Igor Mironchik

Hi,

05.04.2017 14:29, Paolo Angelelli пишет:

Just cross N and M to get the vector around which to rotate.

Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform,
and construct it with fromAxisAndAngle(const QVector3D , float angle)


Ok, I can rotate around the right axis. But what angle should I rotate?

And how can I calculate new normal to the rotated plane?




On Wed, 5 Apr 2017 14:18:56 +0300
Igor Mironchik  wrote:


Hello,

Let's say I have two vectors - N (normal vector to plane P1) and M
(normal vector to plane P2).

How to calculate x, y, z axis rotations angles for plane P2 to make
plane P2 parallel to P1?

How to calculate x, y, z axis rotations angles for plane P2 to rotate it
around vector N?

Thank you.

And what is the measurement of angle in rotationX() of Qt3DCore::QTransform?

I need to calculate angles in this units.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Plane rotations

2017-04-05 Thread Paolo Angelelli
Just cross N and M to get the vector around which to rotate.

Then use a QQuaternion to set the rotation in the Qt3DCore::QTransform, 
and construct it with fromAxisAndAngle(const QVector3D , float angle)


On Wed, 5 Apr 2017 14:18:56 +0300
Igor Mironchik  wrote:

> Hello,
> 
> Let's say I have two vectors - N (normal vector to plane P1) and M 
> (normal vector to plane P2).
> 
> How to calculate x, y, z axis rotations angles for plane P2 to make 
> plane P2 parallel to P1?
> 
> How to calculate x, y, z axis rotations angles for plane P2 to rotate it 
> around vector N?
> 
> Thank you.
> 
> And what is the measurement of angle in rotationX() of Qt3DCore::QTransform?
> 
> I need to calculate angles in this units.
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Kai Koehne


> -Original Message-
> From: Interest [mailto:interest-bounces+kai.koehne=qt...@qt-project.org]
> [..]
> With Qt 5.5 the Qt WebKit module is deprecated:(https://wiki.qt.io/New-
> Features-in-Qt-5.5#Deprecated_Functionality)
> 
> QWebView uses WebKit as the backend.
> 
> QWebEngineView uses Chromium as the backend.
> 
> WebView with the same name has been defined in both WebKit and
> WebEngine. Hence import statement varies.[I believe this is the source of
> confusion ]
> 
> import QtWebKit 3.0
> import QtWebView 1.0

Not exactly. The terminology is arguably confusing here, but the "QtWebView" 
import comes from the "Qt WebView" module 
(http://doc.qt.io/qt-5/qtwebview-index.html), which is a module that abstracts 
different rendering engines (Qt WebEngine, native) away behind a simple API.

So 

---
import QtWebView 1.0

WebView {
  // ...
}
--
should work both on mobile and desktop. On Android, iOS and WinRT the native 
browsers are embedded, on all the rest Qt WebEngine is used (if available).

Regards

Kai
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Plane rotations

2017-04-05 Thread Igor Mironchik

Hello,

Let's say I have two vectors - N (normal vector to plane P1) and M 
(normal vector to plane P2).


How to calculate x, y, z axis rotations angles for plane P2 to make 
plane P2 parallel to P1?


How to calculate x, y, z axis rotations angles for plane P2 to rotate it 
around vector N?


Thank you.

And what is the measurement of angle in rotationX() of Qt3DCore::QTransform?

I need to calculate angles in this units.

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.9 Beta snapshot #423 Qt3d paintedtexture-cpp

2017-04-05 Thread Sean Harmer

Hi,

On 05/04/2017 09:18, Helmut Mülner wrote:


I played a little with Src\qt3d\tests\manual\paintedtexture-cpp in the
current 5.9 Beta snapshot (on Windows 10, using VS2017 with the precompiled
msvc2015 32-bit binary).

I was surprised that the text with the current time is upside down.
Qt 5.8.0 on Windows 10 using VS2013 and the precompiled msvc2013 32-bit
binary behaves the same.

Is this a bug or did I fail to understand something?


A bug in the manual test. The texture needs the mirrored property 
toggling (or the texture coordinates flipping on the target geometry). 
Thanks for the head's up.


Sean



Best regards,

Helmut M


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



--
Dr Sean Harmer | sean.har...@kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt 5.9 Beta snapshot #423 Qt3d paintedtexture-cpp

2017-04-05 Thread Helmut Mülner

I played a little with Src\qt3d\tests\manual\paintedtexture-cpp in the
current 5.9 Beta snapshot (on Windows 10, using VS2017 with the precompiled
msvc2015 32-bit binary).

I was surprised that the text with the current time is upside down.
Qt 5.8.0 on Windows 10 using VS2013 and the precompiled msvc2013 32-bit
binary behaves the same.

Is this a bug or did I fail to understand something?

Best regards,

Helmut M


___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QML WebView modules

2017-04-05 Thread Mark Tucker
Hi All,

Thanks for your input.

Seems like due to the Qt version I need to use, I may have to have different 
QML code for my target Android and Linux platforms.

I have ways of working around this, and this isn't for anything that's going 
public anyway so I'll figure something out.

Thanks again!

Mark

From: Nibedit Dey [mailto:nibedit@gmail.com]
Sent: 05 April 2017 05:50
To: Sze Howe Koh 
Cc: Mark Tucker ; interest@qt-project.org
Subject: Re: [Interest] QML WebView modules

Dear Sze-Howe,

I haven't worked much in Qt web modules. But below is my understanding.

With Qt 5.5 the Qt WebKit module is 
deprecated:(https://wiki.qt.io/New-Features-in-Qt-5.5#Deprecated_Functionality)

QWebView uses WebKit as the backend.

QWebEngineView uses Chromium as the backend.

WebView with the same name has been defined in both WebKit and WebEngine. Hence 
import statement varies.[I believe this is the source of confusion ]

import QtWebKit 3.0
import QtWebView 1.0

In 5.8,
import QtWebView 1.1
QT += qml quick webview
This is useful on mobile platforms such as Android, iOS, and WinRT; especially 
on iOS, where policy dictates that all web content is displayed using the 
operating system's web view. [ http://doc.qt.io/qt-5/qtwebview-index.html ]

Regards,
Nibedit

On Wed, Apr 5, 2017 at 4:20 AM, Sze Howe Koh 
> wrote:
On 4 April 2017 at 21:39, Nibedit Dey 
> wrote:
>
>
> Hi Mark,
>
> Qt WebEngine is only supported on desktop platforms.Hence Linux is supported.
> It's not supported on mobile platforms yet .So Qt 5.5.1 doesn't support.
> Refer: https://doc.qt.io/archives/qt-5.5/qtmodules.html
>
> To use WebView module, in pro file add:
> QT += webkit
> greaterThan(QT_MAJOR_VERSION, 4):QT+=webkitwidgets

The Qt WebView module is not related to WebKit.

Unfortunately, there are two different things named "WebView" in Qt,
which is very confusing:

* http://doc.qt.io/archives/qt-5.5/qml-qtwebview-webview.html
* http://doc.qt.io/archives/qt-5.5/qml-qtwebkit-webview.html


> For WebEngine module add:
> QT += webengine
>
> In both cases, Linux should be working.
>
> Regards,
> Nibedit
> .
>
>
> -- Forwarded message --
> From: Mark Tucker 
> >
> Date: Tue, Apr 4, 2017 at 3:56 PM
> Subject: [Interest] QML WebView modules
> To: "interest@qt-project.org" 
> >
>
>
> Hi,
>
>
>
> I'm currently trying to create a QML app that works on both a Linux platform 
> and an Android platform. Due to the nature of my target platforms (embedded 
> systems), I'm limited to Qt 5.5.1 and cannot upgrade.
>
> Note that my app is pure QML and I cannot write any C++ code to solve this.
>
> To get the app running on Android, I can put "import QtWebView 1.1" into my 
> QML file imports, and then create a simple WebView component and set its URL 
> and that works.
>
> That same import doesn't work for me on Linux, however. I can use either 
> "import QtWebKit 3.0" or "import QtWebEngine 1.1" (with the latter, changing 
> my WebView to a WebEngineView too) and I can then see a webview that works 
> with no issues, but neither of those are available on my Android target (nor, 
> from what I understand, will they ever be).
>
> So, is there a way I can get the QtWebView import working on Linux? I can't 
> seem to figure out how to build it, or if it's even a valid option.
>
> If not, then I guess that means I'll need to have different QML for both 
> Linux and Android…

When Qt WebView first started as a Tech Preview in Qt 5.4, it only
supported Android and iOS. These platforms were chosen specifically
because Qt WebKit and Qt WebEngine can't run on them.

In later releases, support for desktop platforms was added to Qt
WebView, but I'm not exactly sure which version. Qt 5.5 might be too
early.


> Thanks in advance
>
> Mark

Regards,
Sze-Howe

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] WebEngineView memory cache

2017-04-05 Thread Kai Koehne
> -Original Message-
> [...]
> WebEngineViews has possibility to set:
> profile.httpCacheType: WebEngineProfile.MemoryHttpCache
> 
> Even though memory cache is set I can see that WebCache directory is
> created and data written there. Is this a bug or do you think it works as
> expected?

Hi Jani,

This is at least something we should investigate. Feel free to file a bug at 
bugreports.qt.io (Project:Qt, Component: WebEngine) , including the Qt version 
you're using.

Regards

Kai 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Is there a way to simulate serial port data?

2017-04-05 Thread Majid Kamali
You can emit readyRead signal explicitly where you are using that class.

mySerialPort msp;
emit msp.readyRead(YourByteArray);

because signal is defined as public.
But this may not be a good way for testing


On Wed, Mar 29, 2017 at 4:32 PM, Murphy, Sean  wrote:

> > I have to ask, why is it such a sin to have a stand alone program with a
> > null modem cable and mini-tester as a testing tool. I have been working
> > with serial ports off and on since the days of DOS 3.x and have always
> > tested in this manner. The first piece of code one writes on a project
> > which needs external inputs is the test tool to generate 1-N pre-defined
> > inputs. There "should" be one laying around at the shop which was
> > originally used to validate the product.
>
> There's nothing wrong with having a standalone program at all from a
> technical standpoint. The question arose because of the bug showing up a
> little more often recently, and a work deadline to release a version soon
> - so
> I was looking for a quick method to verify that my fix for the issue works.
> I have a log of the data that produced the problem. I thought if I had a
> way to playback that log without changing any of my serial port / parsing
> code, that would be the quickest way to test the fix, without risking
> generating
> new bugs, by either having to modify my existing code, or having to write a
> separate sender program.
>
> And I can guarantee there wasn't a tool laying around the shop, but as of
> yesterday, there's now one in development!
> Sean
>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest