Uh oh!
There was an error while loading. Please reload this page.
Porting bitmessageqt to Qt5 - #1389
Conversation
PeterSurda
commented
Nov 9, 2018
Can we have some sort of fallback qtpy bundled? |
The source doesn't look big, most of it are tests. And it's under MIT license. |
Probably yes. I thought of it, just forgot. I think it should be slim compatibility layer which just imports PyQt5. BTW, I decided to finish UI refactoring in separate branch. |
| logger.info('Qt Version: %s', qtpy.QT_VERSION) | ||
| passed = True | ||
| if QtCore.PYQT_VERSION < 0x40800: | ||
| if qtpy.PYQT_VERSION < '4.8': |
There was a problem hiding this comment.
These tests are wrong as they compare strings and it thinks '4.11.4' < '4.8'. You need to use
from distiutils.version import LooseVersion
and then wrap these comparisons in LooseVersion like qtpy does it.
| ' PyQt 4.8 or later.') | ||
| passed = False | ||
| if QtCore.QT_VERSION < 0x40700: | ||
| if qtpy.QT_VERSION < '4.7': |
There was a problem hiding this comment.
same problem here, should use LooseVersion
PeterSurda
commented
Nov 11, 2018
I tried it, and it runs both with pyqt4 and pyqt5 and you can use the environment variable |
hub229ox
commented
Nov 13, 2018
qt4 is being less and less supported by the main distros |
16ef2e7 to
8bb7679Compare3475e20 to
8a8b81cCompareg1itch
commented
Feb 12, 2019
Perhaps now you can do a review. |
3c9c400 to
83b8b10Compare259b78e to
f3c4129Compare(for simple encoding like for extended)
resolved pylint redefined-variable-type warnings, marked autogenerated modules for skipping by pylint and flake8
on tabs "Send", "Blacklist" and "Network Status": in qt5 it's probably true by default.
Hello!
I realized that column width problem in
QTableWidgetwas actually the Qt bug.I mostly finished work in this branch though it still needs some testing.