Supporting Qt5

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: Supporting Qt5

Post by ian.rees »

I think that Qt 5 and Python 3 are two separate questions, though maybe Python 3 would require a new PySide and so Qt 5 would need to come first/concurrently? From a quick look, it appears that PySide 2 does not require Python 3.

Agree that it would be nice if we could use Python 3 in FreeCAD, but to me it seems better to switch to treat the two upgrades as different projects. I've personally got a longer list of bugs/features that would be helped by a Qt upgrade than the Python upgrade, so would vote for doing Qt first :). -Ian-
User avatar
yorik
Founder
Posts: 13659
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Supporting Qt5

Post by yorik »

There is one little problem with py3 which is pivy. But yeah, let's separate the subjects... Indeed in principle they don't seem interdependent.
peterl94
Veteran
Posts: 1001
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: Supporting Qt5

Post by peterl94 »

ian.rees wrote:anyone here keen to give it a try?
I am. I'll try it tonight, if I have the time.
beluga
Posts: 12
Joined: Wed Mar 11, 2015 7:44 am

Re: Supporting Qt5

Post by beluga »

Btw. the links in this need updating: http://www.freecadweb.org/wiki/index.ph ... dules#Pivy
All the stuff is now in https://bitbucket.org/Coin3D

Regarding Pivy & Qt5: https://groups.google.com/forum/#!topic ... BG5jmDm2o8
The topic starter is asking about a pull request making Quarter Qt5 compatible and saying that if it is accepted, he "will handle the Pivy/Qt5 integration and make a pull request". Unfortunately that was in Jan 2015 and the PR has still not been merged.

It seems community developer hasn't really taken off and the whole project is languishing.

Perhaps it would be best to directly contact the person who wanted to work on Qt5 support for Pivy.
peterl94
Veteran
Posts: 1001
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: Supporting Qt5

Post by peterl94 »

A little too soon. I was able to build shiboken2 after a simple change to a couple cmake files, but I havn't gotten PySide2 to compile yet. I guess I'll be the one to report the first issue...
labsin
Posts: 3
Joined: Fri Jul 31, 2015 9:34 pm

Re: Supporting Qt5

Post by labsin »

Qt4 is no longer supported and probably won't get shipt with new releases of popular linux distro's.
So now it's probably the time to start porting.
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: Supporting Qt5

Post by triplus »

Yes this was discussed in the past and the most likely scenario is FreeCAD will be removed from the latest/next Linux distribution repositories for a release or two. The plan is to support PySide 2 directly or by using wrapper library but the reality is PySide 2 isn't ready and it likely won't be available in latest/next Linux distribution repositories for a while. Therefore porting to PyQt5 would be needed if we want to stay in latest/next Linux distribution repositories but due to licence policy that likely won't happen.

Therefore i guess unless PySide 2 gets serious development/packaging boost and lands in latest/next (development) Linux distribution repositories "soon" the reality is we can't do much about it and Qt5 port won't be finished in time.
beluga
Posts: 12
Joined: Wed Mar 11, 2015 7:44 am

Re: Supporting Qt5

Post by beluga »

This wiki page tracks the progress of PySide for Qt 5.x development and provides further information concerning the effort: https://wiki.qt.io/PySide2
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Supporting Qt5

Post by Kunda1 »

Is there 'Migration to Qt5' checklist somewhere ?
Some bugs on the tracker that I found related to Qt5 I've tagged accordingly: http://freecadweb.org/tracker/search.php?tag_string=Qt5
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Supporting Qt5

Post by jnxd »

A question, albeit slightly unrelated:

Pyside2 code and wiki refer to a certain "COIN". Is it the same COIN as the one used by Freecad for drawing the viewport? If so, why is it relevant for Qt? The bitbucket page of coin seems to indicate it is in maintenance mode now.
My latest (or last) project: B-spline Construction Project.
Post Reply