[Interest] [qt6-windows] How can I install both debug and release version of qt libs after building?

2021-03-05 Thread Liang Jian
I build qt6 from qt-6.1 branch with the following commands:

mkdir qt6-build
> cd qt6-build
> ..\qt5\configure.bat -prefix ..\qt6-win64 -debug-and-release -opengl
> desktop -D QT_NO_BUILD_TESTS=ON -D QT_NO_MAKE_EXAMPLES=ON -skip qt3d -skip
> qtactiveqt -skip qtgraphicaleffects -skip qtmultimedia -skip qtwebengine
> -skip qtwinextras
> cmake --build . --parallel
> cmake --install .


Everything goes well, but after installation I found that only release
versions of qt libs were installed in the installation directory specified
in the configure process. But I have added the -debug-and-release
configuration option in the configure step. What is wrong with my building
commands? Thanks.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Drawing Frustum on Scene3D

2021-03-05 Thread Alex john
But in quick3D that would be done with a class derived from
QQuick3DGeometry with primitives set to lines
"setPrimitiveType(QQuick3DGeometry::PrimitiveType::Lines)"
to construct a cube. Then register that class to qml and use it in
your View3D. Hope it helps.

Any alternative to QQuick3DGeometry as I'm using 5.10?

On Fri, Mar 5, 2021 at 5:00 PM joao morgado  wrote:
>
> Hi
>
> That frustum is just a group of lines in cube shape, you see it as a frustum 
> because the camera is in perspective mode.
> I never used Qt3D so cannot help with scene3d.
> But in quick3D that would be done with a class derived from QQuick3DGeometry 
> with primitives set to lines 
> "setPrimitiveType(QQuick3DGeometry::PrimitiveType::Lines)"
> to construct a cube. Then register that class to qml and use it in your 
> View3D. Hope it helps.
>
> João
> Em sexta-feira, 5 de março de 2021 09:46:15 GMT, Alex john 
>  escreveu:
>
>
> Hello Qt
>
> I like to render a frustum as here https://imgur.com/a/BzmCQ2D on
> Scene3d. Can you let me know how it can be done? If I have to get the
> custom QML ,do I have to get it from the C++ and then push it to the
> QML context? Any pointers to basic code is appreciated.
>
> Thanks.
> ___
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Does QML have a way to detect if a click is outside an element?

2021-03-05 Thread Mark Gaiser
On Fri, Mar 5, 2021 at 11:40 AM Mitch Curtis  wrote:

> > -Original Message-
> > From: Interest  On Behalf Of Mark
> Gaiser
> > Sent: Friday, 5 March 2021 10:39 AM
> > To: Qt Interest 
> > Subject: [Interest] Does QML have a way to detect if a click is outside
> an
> > element?
> >
> > Hi,
> >
> > Picture a QML window with a red rectangle in the middle of it (say
> 200x200
> > px).
> > The window itself is, say, 500x500 px.
> >
> > Now I'm looking for a way to detect when you click on any area outside
> the
> > red rectangle but inside the white window area.
> >
> > The reason I need this is to provide a more intuitive interaction. In my
> > particular case the red rectangle is a calendar popup that needs to go
> away
> > when you click outside of it but inside the window still.
> >
> > I can imagine 2 possible solutions, both are quite cumbersome to
> implement.
> >
> > 1. One can make a kind of "EventFilter" object in C++ and expose it to
> QML.
> > So that custom event filters can be made which would allow me to find a
> click
> > that occurs outside the rectangle.
> >
> > 2. I can make an application with overlapping MouseArea{} and figure it
> out
> > that way. But this is really hacky and very error prone.
> >
> > Does QML provide another more native way for this kind of interaction?
>
> Popup provides this functionality:
>
> https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html
>
> Hi Mitch,

Thank you! That actually worked! :)
I'm surprised because the code where i used this uses QtQuick.Controls 1
and 2, which smells scary. But hey, it works.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Drawing Frustum on Scene3D

2021-03-05 Thread joao morgado via Interest
 Hi

That frustum is just a group of lines in cube shape, you see it as a frustum 
because the camera is in perspective mode.I never used Qt3D so cannot help with 
scene3d. But in quick3D that would be done with a class derived from 
QQuick3DGeometry with primitives set to lines 
"setPrimitiveType(QQuick3DGeometry::PrimitiveType::Lines)"to construct a cube. 
Then register that class to qml and use it in your View3D. Hope it helps.

JoãoEm sexta-feira, 5 de março de 2021 09:46:15 GMT, Alex john 
 escreveu:  
 
 Hello Qt

I like to render a frustum as here https://imgur.com/a/BzmCQ2D on
Scene3d. Can you let me know how it can be done? If I have to get the
custom QML ,do I have to get it from the C++ and then push it to the
QML context? Any pointers to basic code is appreciated.

Thanks.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
  ___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


Re: [Interest] Does QML have a way to detect if a click is outside an element?

2021-03-05 Thread Mitch Curtis
> -Original Message-
> From: Interest  On Behalf Of Mark Gaiser
> Sent: Friday, 5 March 2021 10:39 AM
> To: Qt Interest 
> Subject: [Interest] Does QML have a way to detect if a click is outside an
> element?
> 
> Hi,
> 
> Picture a QML window with a red rectangle in the middle of it (say 200x200
> px).
> The window itself is, say, 500x500 px.
> 
> Now I'm looking for a way to detect when you click on any area outside the
> red rectangle but inside the white window area.
> 
> The reason I need this is to provide a more intuitive interaction. In my
> particular case the red rectangle is a calendar popup that needs to go away
> when you click outside of it but inside the window still.
> 
> I can imagine 2 possible solutions, both are quite cumbersome to implement.
> 
> 1. One can make a kind of "EventFilter" object in C++ and expose it to QML.
> So that custom event filters can be made which would allow me to find a click
> that occurs outside the rectangle.
> 
> 2. I can make an application with overlapping MouseArea{} and figure it out
> that way. But this is really hacky and very error prone.
> 
> Does QML provide another more native way for this kind of interaction?

Popup provides this functionality:

https://doc.qt.io/qt-5/qml-qtquick-controls2-popup.html
 
> Best regards,
> Mark Gaiser
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Drawing Frustum on Scene3D

2021-03-05 Thread Alex john
Hello Qt

I like to render a frustum as here https://imgur.com/a/BzmCQ2D on
Scene3d. Can you let me know how it can be done? If I have to get the
custom QML ,do I have to get it from the C++ and then push it to the
QML context? Any pointers to basic code is appreciated.

Thanks.
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest


[Interest] Does QML have a way to detect if a click is outside an element?

2021-03-05 Thread Mark Gaiser
Hi,

Picture a QML window with a red rectangle in the middle of it (say 200x200
px).
The window itself is, say, 500x500 px.

Now I'm looking for a way to detect when you click on any area outside the
red rectangle but inside the white window area.

The reason I need this is to provide a more intuitive interaction. In my
particular case the red rectangle is a calendar popup that needs to go away
when you click outside of it but inside the window still.

I can imagine 2 possible solutions, both are quite cumbersome to implement.

1. One can make a kind of "EventFilter" object in C++ and expose it to QML.
So that custom event filters can be made which would allow me to find a
click that occurs outside the rectangle.

2. I can make an application with overlapping MouseArea{} and figure it out
that way. But this is really hacky and very error prone.

Does QML provide another more native way for this kind of interaction?

Best regards,
Mark Gaiser
___
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest