Port to Qt5 #1775

issue laanwj opened this issue on September 2, 2012
  1. laanwj commented at 6:17 AM on September 2, 2012: member

    This is far away on the horizon, even KDE is not ported yet, and Qt5 is only at beta. But unlike when going from 4.x to 4.x+1 there is some effort in porting:

    http://www.kdab.com/porting-from-qt-4-to-qt-5/

    However it is possible to make one code base compatible with both versions.

    I don't expect it to be a lot of work for bitcoin; we don't use qt3 support, already use #include <QtXX> instead of #include <QtGui/QtXX>, and hardly make use of advanced meta-object features. But there may be some subtle issues.

  2. ghost assigned laanwj on Sep 2, 2012
  3. Diapolo commented at 11:06 AM on September 2, 2012: none

    It's good that you mentioned it and we keep it as remainder :). Did you try to build Qt5 and use it with Bitcoin-Qt yet?

  4. laanwj commented at 11:39 AM on September 2, 2012: member

    Nope, I haven't ever tried Qt5 yet. Most of the 5.0 changes are concerning QML, Qt Quick and such, which I haven't really used. I guess I prefer the C++ QWidget API to mucking around with JS and XML.

  5. Diapolo commented at 1:56 PM on January 8, 2013: none

    AFAIK Qt 5.0 is now released, but I didn't have time to try Bitcoin-Qt with it. Just wanted to mention :). http://blog.qt.digia.com/blog/2012/12/19/qt-5-0/?utm_source=rss&utm_medium=rss&utm_campaign=qt-5-0

  6. Diapolo commented at 7:09 AM on January 16, 2013: none

    @laanwj I did successfully build Qt5 and a Qt5 based Qt Creator version (2.6.1). I'm now in the process in looking at needed source code changes because of Qt API changes (see https://qt-project.org/doc/qt-5.0/qtdoc/sourcebreaks.html).

    So far there were only a few things like changed function names or deprecated things. I'll create a patch, for the changes what are already possible with Qt4, to increase Qt5 compatibility. I was also able to build a static Qt5 version, but I'm not able to build Bitcoin-Qt from it -_-.

  7. laanwj commented at 7:27 AM on January 16, 2013: member

    Cool! Do you have screenshots? Does it look any different in Qt5?

    For example can you try how it looks with the new Fusion style: http://blog.qt.digia.com/blog/2012/10/30/cleaning-up-styles-in-qt5-and-adding-fusion/

  8. Diapolo commented at 7:50 AM on January 16, 2013: none

    I'm in the process of converting removed / deprecated stuff to Qt5 still. I'll report back, when I have done that.

  9. Diapolo commented at 9:19 AM on January 16, 2013: none

    Got it to compile, the changes are really not that invasive. The default Windows theme looks nearly identical. Is there a quick way to switch styles, I can google, but perhaps you have a short and easy answer ^^.

  10. laanwj commented at 9:24 AM on January 16, 2013: member

    Qt accepts -style <style> on the command line

  11. Diapolo commented at 9:29 AM on January 16, 2013: none

    I didn't know that, so -style fusion should work. I'll try that later, currently my PC is re-building the Qt libs, as I'm missing the default translations and need sqlite for the qrc-editor in Qt Creator.

  12. Diapolo commented at 10:07 AM on April 4, 2013: none

    See #2457

  13. laanwj commented at 12:07 PM on May 31, 2013: member

    See #2721

  14. laanwj closed this on May 31, 2013

  15. owlhooter referenced this in commit 930afd7df4 on Oct 10, 2018
  16. DrahtBot locked this on Sep 8, 2021
Contributors
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me