Skip to content

Qt5 Support (V2) - #242

Closed
corranwebster wants to merge 16 commits into
masterfrom
feature/qt5
Closed

corranwebster wants to merge 16 commits into
masterfrom
feature/qt5

Conversation

@corranwebster

Copy link
Copy Markdown
Contributor

This is (currently) just bringing @geggo's Qt5_V2 branch into the main repo so we can ensure that tests run correctly, at least on the old test infrastructure.

I suspect that initially we will have failures due to PyFace/TraitsUI cross-dependency, so we'll need to point to appropriate branches at least initially.

@corranwebster

Copy link
Copy Markdown
Contributor Author

Looks like there is an issue that QItemSelection has moved from QtGui to QtCore in the 4 to 5 shift. This is causing test failures in TraitsUI.

I think the fix is conditionally import it into pyface.qt.QtCore when using Qt4.

@corranwebster

Copy link
Copy Markdown
Contributor Author

Same thing with QItemSelectionModel

Pankaj Pandey added 4 commits April 19, 2016 18:03
…eature/qt5

# Conflicts:
#	traitsui/qt4/instance_editor.py
#	traitsui/qt4/ui_base.py
#	traitsui/qt4/ui_panel.py
QAbstractItemModel.reset is removed/obsoleted in Qt5
@codecov-io

codecov-io commented Apr 25, 2016 •

Copy link
Copy Markdown

Current coverage is 49.72%

Merging #242 into master will decrease coverage by -0.62%

@@             master       #242   diff @@
==========================================
  Files           115        115          
  Lines         11401      11302    -99   
  Methods           0          0          
  Messages          0          0          
  Branches       1868       1825    -43   
==========================================
- Hits           5740       5619   -121   
- Misses         5058       5137    +79   
+ Partials        603        546    -57   
  1. 3 files (not in diff) in traitsui/editors were modified. more
    • Misses +1
    • Hits -1
  2. 11 files (not in diff) in traitsui were modified. more
    • Misses +32
    • Partials -25
    • Hits -7
  3. 12 files in traitsui/qt4 were modified. more
    • Misses -28
    • Hits -46
  4. 1 files in traitsui were modified. more
    • Misses +85
    • Partials -31
    • Hits -54

Powered by Codecov. Last updated by 1a4d436...024a0c9

@pankajp

pankajp commented Apr 26, 2016

Copy link
Copy Markdown
Contributor

@corranwebster I'm fixing a couple of things with this PR and also attempting to add travis support for testing PyQt5 in pyface here

@corranwebster

Copy link
Copy Markdown
Contributor Author

Thanks - that's very useful. I spent a little time on the Pyface version a couple of weeks ago, in particular trying to get Travis to work there, but didn't have enough time to persist with it.

Pankaj Pandey added 4 commits April 26, 2016 15:32
Qt automatically manages destruction of child widgets when the
parent is destroyed. We do not have to explicitly iterate over
child widgets and delete them. In fact it causes occasional
segfaults on exit when the deleted child is attempted to be
deleted again when the parent is destroyed on exit.
@corranwebster

Copy link
Copy Markdown
Contributor Author

Closing this, as we have achieved qt5 support at a more basic level via Pyface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants