For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Qt 5.x support

Ben Cain's picture

Hello,

Thanks in advance, and my apologies if this has been asked before. I'm very new to OpenCascade.

Is there support for Qt 5.x? Qt 4.8.6 is very old.

My main purpose for using OpenCascade is to read/write some very simple STEP and IGES files. Do I even need Qt for that? Perhaps I could just build the support libraries.

Thanks,
Ben

Daniel Neander's picture

Hey Ben,

Qt 5.X is supported. Consult the Qt sample in your OCC installation.
I have attached a basic Qt5 OCC viewer.

Good luck

Attachments: 
Ben Cain's picture

Daniel,

It's great to hear there is Qt 5.X support. We use Qt 5.2.1. Thinking it wasn't supported was making me think the toolkit wasn't maintained very well. My apologies.

Thanks for the example. I'll check it out very soon.

I built the minimal libraries yesterday ... long build time lol.

Regards,
Ben

Ben Cain's picture

How do you leverage Qt 5.X when Qt 4 and Qt 5 are so different?

The custom.bat file has flag for Qt4, but not for Qt5.
set CHECK_QT4=false

I could use CMake if that makes things easier than msvc.bat/custom.bat. I'm very familiar with CMake.

Thanks,
Ben

Ben Cain's picture

Daniel,

Your help is much appreciated. Once I understand how to integrate Qt 5.X support I'll be on my way.

How did you build Qt 5 support? I see no documentation for how to accomplish this. I'm currently leveraging Qt 5.2.1.

Would you lead me to documentation for how to specify the Qt 5 usage and paths. I see no flag in custom.bat for specify this. It does have a CHECK_QT4 flag. Should this (is this) flag a HAVE_QT flag (like HAVE_FREEIMAGE)?

Thanks,
Ben

Ben Cain's picture

I think I misunderstood what "Qt support" meant. I see the Viewer class in the samples directory, but I don't see a Qt viewer library as an OpenCascade build option. So, maybe by support it's meant compatible. I was reading into that some sort of Qt library for interfacing / displaying models. My apologies if on the wrong track. Doh!

Daniel Neander's picture

Hi Ben,

That is correct OCC does not rely on Qt.
I'm not sure what CHECK_QT4 flag accomplishes, but I set it to true when building and everything works fine.

Thanks
Daniel

Ben Cain's picture

Thanks for the feedback, Daniel. It's much appreciated.

I'll provide support back to the forum as I come up to speed.

Ben Cain's picture

As you can see from the attached image, it's working quite well now.
I've got it to support IGES. Next I'll play with other formats (e.g. STEP, ACIS, Parasolid, and DXF ).

Attachments: 

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.