dash/src/qt
Wladimir J. van der Laan db50935489
Merge #11761: [docs] initial QT documentation
c8edc2c [docs] initial QT documentation, move Qt Creator instructions (Sjors Provoost)

Pull request description:

  I'll update this as I figure out how everything is tied together, but I think it's a useful enough start.

Tree-SHA512: d96e5c9ba8ccc3a1b92a0894a8a8449317100eebb14e5d390b51793534458f50eac296cf2945fccf81b85aff23fa32d91d6015a0a76ada4f7091a400d7508ae5
2020-07-17 15:42:50 -05:00
..
forms qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
locale Update translations 2020-02-03 (#3322) 2020-02-03 21:18:23 +03:00
res qt: General CSS related redesigns (#3563) 2020-07-16 23:30:36 +03:00
test Merge pull request #3477 from 10xcryptodev/pr_remove_qt_todo 2020-06-13 21:13:58 +03:00
addressbookpage.cpp qt: Move font-size settings from css to c++. 2020-07-06 23:24:35 +02:00
addressbookpage.h Merge #12080: Add support to search the address book 2020-06-13 14:50:11 -05:00
addresstablemodel.cpp scripted-diff: Avoid temporary copies when looping over std::map (Merge #13241) 2020-07-07 11:46:21 -05:00
addresstablemodel.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
askpassphrasedialog.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
askpassphrasedialog.h Merge #11480: [ui] Add toggle for unblinding password fields 2020-01-16 09:22:46 -06:00
bantablemodel.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
bantablemodel.h Bugfix: Include <memory> for std::unique_ptr 2020-04-08 11:46:27 -05:00
bitcoinaddressvalidator.cpp qt: Allow and process URIs pasted to the payTo field of SendCoinsEntry (#3475) 2020-05-12 02:33:21 +03:00
bitcoinaddressvalidator.h qt: Allow and process URIs pasted to the payTo field of SendCoinsEntry (#3475) 2020-05-12 02:33:21 +03:00
bitcoinamountfield.cpp Merge #13284: gui: fix visual "overflow" of amount input. 2020-07-01 14:08:47 -05:00
bitcoinamountfield.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
bitcoingui.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
bitcoingui.h qt: Redesign of the main toolbar (#3554) 2020-06-28 15:40:09 +03:00
bitcoinunits.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
bitcoinunits.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
callback.h Merge #10969: Declare single-argument (non-converting) constructors "explicit" 2020-01-10 10:33:57 -06:00
clientmodel.cpp scripted-diff: Convert 11 enums into scoped enums (C++11) (merge #10742) 2020-06-11 23:20:48 -05:00
clientmodel.h scripted-diff: Convert 11 enums into scoped enums (C++11) (merge #10742) 2020-06-11 23:20:48 -05:00
coincontroldialog.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
coincontroldialog.h Merge #12327: [gui] Defer coin control instancing 2020-04-05 11:06:11 -05:00
coincontroltreewidget.cpp Merge #10498: Use static_cast instead of C-style casts for non-fundamental types 2020-06-10 18:32:43 -05:00
coincontroltreewidget.h
csvmodelwriter.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
csvmodelwriter.h
dash_locale.qrc Translations 2020-01 (#3192) 2020-01-17 16:00:53 +01:00
dash.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
dash.qrc qt: Add -custom-css-dir commmand line parameter (#3557) 2020-07-12 22:32:04 +03:00
dashstrings.cpp Translations 2020-01 (#3192) 2020-01-17 16:00:53 +01:00
editaddressdialog.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
editaddressdialog.h Merge #12721: Qt: remove "new" button during receive-mode in addressbook 2020-06-13 14:50:11 -05:00
guiconstants.h Bump copyright year to 2020 (#3290) 2020-01-17 15:42:55 +01:00
guiutil.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
guiutil.h qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
intro.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
intro.h
macdockiconhandler.h Backport bitcoin#14123 and bitcoin#16720 (#3463) 2020-04-30 13:28:44 +03:00
macdockiconhandler.mm Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
macnotificationhandler.h Merge #11268: [macOS] remove Growl support, remove unused code 2020-01-10 10:33:55 -06:00
macnotificationhandler.mm Merge #11268: [macOS] remove Growl support, remove unused code 2020-01-10 10:33:55 -06:00
macos_appnap.h Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
macos_appnap.mm Backport #12783: macOS: disable AppNap during sync (and mixing) (#3024) 2019-07-15 14:38:55 +03:00
masternodelist.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
masternodelist.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
modaloverlay.cpp qt: Introduce GUIUtil::FontWeight as mapper for QFont::Weight 2020-07-06 23:24:35 +02:00
modaloverlay.h Merge #9964: Add const to methods that do not modify the object for which it is called 2020-01-02 16:16:55 -06:00
networkstyle.cpp Fix argument handling for devnets (#3549) 2020-06-24 10:03:53 +02:00
networkstyle.h Update copyright date (2019) (#2970) 2019-06-11 14:46:07 +03:00
notificator.cpp Merge #10574: Remove includes in .cpp files for things the corresponding .h file already included 2020-04-01 12:43:18 -05:00
notificator.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
openuridialog.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
openuridialog.h
optionsdialog.cpp qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
optionsdialog.h qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
optionsmodel.cpp Backport 12381 (#3528) 2020-06-13 21:21:30 +03:00
optionsmodel.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
overviewpage.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
overviewpage.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
paymentrequest.proto
paymentrequestplus.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
paymentrequestplus.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
paymentserver.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
paymentserver.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
peertablemodel.cpp Merge pull request #3477 from 10xcryptodev/pr_remove_qt_todo 2020-06-13 21:13:58 +03:00
peertablemodel.h Bugfix: Include <memory> for std::unique_ptr 2020-04-08 11:46:27 -05:00
platformstyle.cpp Merge #13480: Avoid copies in range-for loops and add a warning to detect them 2020-07-08 18:32:04 -05:00
platformstyle.h
qrdialog.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
qrdialog.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvalidatedlineedit.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvalidatedlineedit.h
qvaluecombobox.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
qvaluecombobox.h
README.md Merge #11761: [docs] initial QT documentation 2020-07-17 15:42:50 -05:00
receivecoinsdialog.cpp qt: Introduce GUIUtil::FontWeight as mapper for QFont::Weight 2020-07-06 23:24:35 +02:00
receivecoinsdialog.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
receiverequestdialog.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
receiverequestdialog.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
recentrequeststablemodel.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
recentrequeststablemodel.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
rpcconsole.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
rpcconsole.h qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
sendcoinsdialog.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
sendcoinsdialog.h Merge #12421: [qt] navigate to transaction history page after send 2020-06-14 11:41:04 -05:00
sendcoinsentry.cpp qt: Disable macOS system focus rectangles for dash themes (#3556) 2020-07-09 02:27:53 +03:00
sendcoinsentry.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
signverifymessagedialog.cpp qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
signverifymessagedialog.h qt: Replace usage of QTabBar with custom replacement (#3560) 2020-07-14 16:10:51 +03:00
splashscreen.cpp qt: Load custom font in splashscreen 2020-07-06 23:24:35 +02:00
splashscreen.h Some Dashification (#3513) 2020-06-11 11:39:04 +03:00
trafficgraphdata.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
trafficgraphdata.h
trafficgraphwidget.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
trafficgraphwidget.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
transactiondesc.cpp qt: Use default font in receive requests and transaction description 2020-07-06 23:24:35 +02:00
transactiondesc.h
transactiondescdialog.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
transactiondescdialog.h
transactionfilterproxy.cpp Merge #12621: Avoid querying unnecessary model data when filtering transactions 2020-06-18 11:41:53 -05:00
transactionfilterproxy.h Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
transactionrecord.cpp remove duplicate includes so that ./contrib/devtools/lint-includes.sh is clean 2020-07-01 20:12:03 -05:00
transactionrecord.h Merge #12620: Remove TransactionTableModel::TxIDRole 2020-06-18 11:41:53 -05:00
transactiontablemodel.cpp qt: Make use of GUIUtil themed colors/styles (#3561) 2020-07-14 16:11:07 +03:00
transactiontablemodel.h Merge #12620: Remove TransactionTableModel::TxIDRole 2020-06-18 11:41:53 -05:00
transactionview.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
transactionview.h Merge #12421: [qt] navigate to transaction history page after send 2020-06-14 11:41:04 -05:00
utilitydialog.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
utilitydialog.h Merge #10969: Declare single-argument (non-converting) constructors "explicit" 2020-01-10 10:33:57 -06:00
walletframe.cpp Fix #3241 UX/UI - Introduce PrivateSend tab which allows to spend fully mixed coins only (#3442) 2020-05-15 12:33:07 +03:00
walletframe.h Fix #3241 UX/UI - Introduce PrivateSend tab which allows to spend fully mixed coins only (#3442) 2020-05-15 12:33:07 +03:00
walletmodel.cpp remove duplicate includes so that ./contrib/devtools/lint-includes.sh is clean 2020-07-01 20:12:03 -05:00
walletmodel.h Refactor some PrivateSend related code to use WalletModel instead of accessing the wallet directly from qt (#3345) 2020-03-20 01:48:24 +03:00
walletmodeltransaction.cpp Backport 11651 (#3358) 2020-03-20 01:46:56 +03:00
walletmodeltransaction.h Bugfix: Include <memory> for std::unique_ptr 2020-04-08 11:46:27 -05:00
walletview.cpp qt: Add -debug-ui command line parameter (#3558) 2020-07-14 23:16:38 +03:00
walletview.h Fix #3241 UX/UI - Introduce PrivateSend tab which allows to spend fully mixed coins only (#3442) 2020-05-15 12:33:07 +03:00
winshutdownmonitor.cpp Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00
winshutdownmonitor.h Merge #13458: gui: Drop qt4 support 2020-06-12 18:47:26 -03:00

This directory contains the BitcoinQT graphical user interface (GUI). It uses the cross platform framework QT.

The current precise version for QT 5 is specified in qt.mk. QT 4 is also supported (see #8263).

Compile and run

See build instructions (OSX, Windows, Unix, etc).

To run:

./src/qt/bitcoin-qt

Files and directories

forms

Contains Designer UI files. They are created with [Qt Creator](#use-qt-Creator-as IDE), but can be edited using any text editor.

locale

Contains translations. They are periodically updated. The process is described here.

res

Resources such as the icon.

test

Tests.

bitcoingui.(h/cpp)

Represents the main window of the Bitcoin UI.

*model.(h/cpp)

The model. When it has a corresponding controller, it generally inherits from QAbstractTableModel. Models that are used by controllers as helpers inherit from other QT classes like QValidator.

ClientModel is used by the main application bitcoingui and several models like peertablemodel.

*page.(h/cpp)

A controller. :NAMEpage.cpp generally includes :NAMEmodel.h and forms/:NAME.page.ui with a similar :NAME.

*dialog.(h/cpp)

Various dialogs, e.g. to open a URL. Inherit from QDialog.

paymentserver.(h/cpp)

Used to process BIP21 and BIP70 (see https://github.com/bitcoin/bitcoin/pull/11622) payment URI / requests. Also handles URI based application switching (e.g. when following a bitcoin:... link from a browser).

walletview.(h/cpp)

Represents the view to a single wallet.

Other .h/cpp files

  • UI elements like BitcoinAmountField, which inherit from QWidget.
  • bitcoinstrings.cpp: automatically generated
  • bitcoinunits.(h/cpp): BTC / mBTC / etc handling
  • callback.h
  • guiconstants.h: UI colors, app name, etc
  • guiutil.h: several helper functions
  • macdockiconhandler.(h/cpp)
  • macdockiconhandler.(h/cpp): display notifications in OSX

Contribute

See CONTRIBUTING.md for general guidelines. Specifically for QT:

Using Qt Creator as IDE

You can use Qt Creator as an IDE. This is especially useful if you want to change the UI layout.

Download and install the community edition of Qt Creator. Uncheck everything except Qt Creator during the installation process.

Instructions for OSX:

  1. Make sure you installed everything through Homebrew mentioned in the OSX build instructions
  2. Use ./configure with the --enable-debug flag
  3. In Qt Creator do "New Project" -> Import Project -> Import Existing Project
  4. Enter "bitcoin-qt" as project name, enter src/qt as location
  5. Leave the file selection as it is
  6. Confirm the "summary page"
  7. In the "Projects" tab select "Manage Kits..."
  8. Select the default "Desktop" kit and select "Clang (x86 64bit in /usr/bin)" as compiler
  9. Select LLDB as debugger (you might need to set the path to your installation)
  10. Start debugging with Qt Creator (you might need to the executable to "bitcoin-qt" under "Run", which is where you can also add command line arguments)