elements/src/qt
2023-04-21 07:50:07 +00:00
..
android Add src/qt/android/.gitignore 2021-05-26 23:29:19 +03:00
forms Merge 9948f114f8 into merged_master (Bitcoin PR bitcoin-core/gui#390) 2023-04-09 06:58:50 +00:00
locale Merge b1c4a4ed39 into merged_master (Bitcoin PR bitcoin-core/gui#406) 2023-04-11 02:07:42 +00:00
res Fix company for Windows exes 2022-09-09 17:04:51 +00:00
test Merge da67b75c5c into merged_master (Bitcoin PR bitcoin/bitcoin#22903) 2023-04-21 02:04:22 +00:00
addressbookpage.cpp Merge 3f68f02db9 into merged_master (Bitcoin PR bitcoin-core/gui#362) 2021-07-25 19:42:57 +00:00
addressbookpage.h qt, refactor: Make AddressBookPage::deleteAction a local variable 2021-04-14 18:47:30 +03:00
addresstablemodel.cpp Merge 8c21562180 into merged_master (Bitcoin PR bitcoin-core/gui#166) 2021-06-26 12:34:38 +00:00
addresstablemodel.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
askpassphrasedialog.cpp Merge bitcoin-core/gui#85: Remove unused "What's This" button in dialogs on Windows OS 2021-01-28 10:16:55 +01:00
askpassphrasedialog.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
bantablemodel.cpp qt, refactor: Use enum type as switch argument in BanTableModel 2021-02-22 09:34:27 +02:00
bantablemodel.h Fix addrdb includes 2021-09-07 10:44:48 +02:00
bitcoin.cpp Merge 439e58c4d8 into merged_master (Bitcoin PR bitcoin-core/gui#360) 2023-04-09 07:07:29 +00:00
bitcoin.h qt, refactor: Move InitExecutor class into its own module 2021-07-14 21:54:32 +03:00
bitcoin.qrc build: drop the rendered icon stuff 2021-03-26 17:33:05 +00:00
bitcoin_locale.qrc
bitcoinaddressvalidator.cpp
bitcoinaddressvalidator.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
bitcoinamountfield.cpp Elements-qt: Fix arrows to increase/decrease Amount 2022-08-18 13:16:37 -03:00
bitcoinamountfield.h Merge 4a540683ec into merged_master (Bitcoin PR #20813) 2021-06-16 14:11:07 +00:00
bitcoingui.cpp Merge 503194d2ee into merged_master (Bitcoin PR bitcoin-core/gui#398) 2023-04-20 23:46:24 +00:00
bitcoingui.h Merge 11225905b7 into merged_master (Bitcoin PR bitcoin-core/gui#309) 2021-07-19 17:56:32 +00:00
bitcoinstrings.cpp Translations update 2021-07-01 17:16:14 +03:00
bitcoinunits.cpp Merge 4a540683ec into merged_master (Bitcoin PR #20813) 2021-06-16 14:11:07 +00:00
bitcoinunits.h
clientmodel.cpp refactor: replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch 2021-08-24 15:06:46 +08:00
clientmodel.h qt: Use PeerTableSortProxy for sorting peer table 2021-03-07 16:57:17 +02:00
coincontroldialog.cpp Merge 34f554dbd3 into merged_master (Bitcoin PR bitcoin-core/gui#366) 2021-07-30 01:15:27 +00:00
coincontroldialog.h qt: Make CoinControlDialog aware of runtime palette change 2021-05-01 15:07:11 +03:00
coincontroltreewidget.cpp
coincontroltreewidget.h
createwalletdialog.cpp gui: ensure external signer option remains disabled without signers 2021-08-05 23:27:53 -04:00
createwalletdialog.h gui: ensure external signer option remains disabled without signers 2021-08-05 23:27:53 -04:00
csvmodelwriter.cpp
csvmodelwriter.h
editaddressdialog.cpp Merge 68692d33c6 into merged_master (Bitcoin PR bitcoin-core/gui#85) 2021-06-19 03:13:11 +00:00
editaddressdialog.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
guiconstants.h liquidtestnet: Add style for Elements-Qt 2022-09-09 07:06:18 -03:00
guiutil.cpp Merge dd455ecfa0 into merged_master (Bitcoin PR bitcoin-core/gui#349) 2023-04-11 03:54:35 +00:00
guiutil.h Merge 123b401e0a into merged_master (Bitcoin PR bitcoin-core/gui#275) 2021-07-18 22:35:11 +00:00
initexecutor.cpp qt, refactor: Fix code styling of moved InitExecutor class 2021-07-14 21:54:32 +03:00
initexecutor.h qt, refactor: Fix code styling of moved InitExecutor class 2021-07-14 21:54:32 +03:00
intro.cpp Merge b789914f17 into merged_master (Bitcoin PR bitcoin-core/gui#332) 2021-07-18 07:32:00 +00:00
intro.h scripted-diff: Replace GetDataDir() calls with gArgs.GetDataDirNet() calls 2021-05-24 10:29:58 +02:00
macdockiconhandler.h
macdockiconhandler.mm
macnotificationhandler.h
macnotificationhandler.mm Merge 54f812d9d2 into merged_master (Bitcoin PR #18673) 2020-11-26 01:08:23 +00:00
macos_appnap.h
macos_appnap.mm
main.cpp
Makefile Merge 23b15601df into merged_master (Bitcoin PR #17227) 2021-06-28 13:45:32 +00:00
modaloverlay.cpp scripted-diff: Replace three dots with ellipsis in the UI strings 2021-05-02 22:17:16 +03:00
modaloverlay.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
networkstyle.cpp liquidtestnet: Add style for Elements-Qt 2022-09-09 07:06:18 -03:00
networkstyle.h
notificator.cpp doc: Use https URLs where possible 2021-01-04 12:23:16 +08:00
notificator.h
openuridialog.cpp
openuridialog.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
optionsdialog.cpp Merge 5895a502cb into merged_master (Bitcoin PR bitcoin-core/gui#391) 2023-04-21 07:50:07 +00:00
optionsdialog.h p2p, refactor: pass and use uint16_t CService::port as uint16_t 2021-03-16 19:52:31 +01:00
optionsmodel.cpp Merge 9948f114f8 into merged_master (Bitcoin PR bitcoin-core/gui#390) 2023-04-09 06:58:50 +00:00
optionsmodel.h qt: Add SubFeeFromAmount option 2021-08-11 14:48:24 +05:30
overviewpage.cpp Merge 484d4ee226 into merged_master (Bitcoin PR bitcoin-core/gui#365) 2021-07-30 18:52:11 +00:00
overviewpage.h qt: Drop redundant OverviewPage::handleOutOfSyncWarningClicks slot 2021-06-06 01:04:15 +03:00
paymentserver.cpp Merge 599000903e into merged_master (Bitcoin PR bitcoin/bitcoin#21850) 2021-07-12 15:20:15 +00:00
paymentserver.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
peertablemodel.cpp Remove GetAddrName 2021-08-26 10:44:26 +02:00
peertablemodel.h Merge bitcoin-core/gui#317: Add Direction column to Peers Tab 2021-08-11 16:55:36 +03:00
peertablesortproxy.cpp Remove GetAddrName 2021-08-26 10:44:26 +02:00
peertablesortproxy.h qt: Add peertablesortproxy module 2021-03-07 16:57:11 +02:00
platformstyle.cpp qt: Make PlatformStyle aware of runtime palette change 2021-05-01 15:07:02 +03:00
platformstyle.h qt: Make PlatformStyle aware of runtime palette change 2021-05-01 15:07:02 +03:00
psbtoperationsdialog.cpp Merge e614cc8cd8 into merged_master (Bitcoin PR bitcoin-core/gui#399) 2023-04-09 06:50:07 +00:00
psbtoperationsdialog.h
qrimagewidget.cpp Merge 3f68f02db9 into merged_master (Bitcoin PR bitcoin-core/gui#362) 2021-07-25 19:42:57 +00:00
qrimagewidget.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
qvalidatedlineedit.cpp
qvalidatedlineedit.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
qvaluecombobox.cpp qt: Use template function qOverload in signal-slot connections 2021-04-30 00:00:44 +03:00
qvaluecombobox.h
README.md Improve gui/src/qt README.md 2021-01-28 14:03:21 -05:00
receivecoinsdialog.cpp Merge 3f68f02db9 into merged_master (Bitcoin PR bitcoin-core/gui#362) 2021-07-25 19:42:57 +00:00
receivecoinsdialog.h Merge f385ad7651 into merged_master (Bitcoin PR bitcoin-core/gui#263) 2021-07-01 00:05:46 +00:00
receiverequestdialog.cpp Merge 7c561bea52 into merged_master (Bitcoin PR bitcoin/bitcoin#21935) 2021-07-25 23:50:09 +00:00
receiverequestdialog.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
recentrequeststablemodel.cpp Merge dd455ecfa0 into merged_master (Bitcoin PR bitcoin-core/gui#349) 2023-04-11 03:54:35 +00:00
recentrequeststablemodel.h refactor: replace QDateTime::toTime_t with QDateTime::toSecsSinceEpoch 2021-08-24 15:08:04 +08:00
rpcconsole.cpp qt: Add "Copy address" item to the context menu in the Peers table 2021-09-05 15:37:14 -04:00
rpcconsole.h qt: Save/restore column sizes of the tables in the Peers tab 2021-06-05 13:36:53 +03:00
sendcoinsdialog.cpp Elements-qt: Correctly display the amount in the sender's wallet after using Send button 2022-08-31 19:12:50 -03:00
sendcoinsdialog.h Elements-qt: Correctly display the amount in the sender's wallet after using Send button 2022-08-31 19:12:50 -03:00
sendcoinsentry.cpp Merge 9948f114f8 into merged_master (Bitcoin PR bitcoin-core/gui#390) 2023-04-09 06:58:50 +00:00
sendcoinsentry.h Merge 123b401e0a into merged_master (Bitcoin PR bitcoin-core/gui#275) 2021-07-18 22:35:11 +00:00
sendcoinsrecipient.h Merge 4a540683ec into merged_master (Bitcoin PR #20813) 2021-06-16 14:11:07 +00:00
signverifymessagedialog.cpp GUI: Always call parent changeEvent handler 2021-06-22 19:24:44 +00:00
signverifymessagedialog.h qt: Make SignVerifyMessageDialog aware of runtime palette change 2021-05-01 15:07:09 +03:00
splashscreen.cpp Merge e130ff38c9 into merged_master (Bitcoin PR bitcoin-core/gui#183) 2021-06-18 22:36:56 +00:00
splashscreen.h scripted-diff: Bump copyright headers 2020-12-31 09:45:41 +01:00
trafficgraphwidget.cpp Fix wrong(1024) divisor for 1000-based prefixes 2021-03-19 19:35:42 +01:00
trafficgraphwidget.h
transactiondesc.cpp Merge 456c8d6cd8 into merged_master (Bitcoin PR bitcoin-core/gui#313) 2021-07-18 04:15:48 +00:00
transactiondesc.h
transactiondescdialog.cpp Merge bitcoin-core/gui#85: Remove unused "What's This" button in dialogs on Windows OS 2021-01-28 10:16:55 +01:00
transactiondescdialog.h
transactionfilterproxy.cpp refactor: replace QDateTime::fromTime_t with QDateTime::fromSecsSinceEpoch 2021-08-24 15:06:46 +08:00
transactionfilterproxy.h qt: Refactor open date range to use std::optional 2021-06-11 23:39:19 +01:00
transactionoverviewwidget.h qt: Add TransactionOverviewWidget class 2021-01-05 22:10:10 +02:00
transactionrecord.cpp Merge bd6af53e1f into merged_master (Bitcoin PR #20480) 2021-06-17 15:15:29 +00:00
transactionrecord.h Merge 4a540683ec into merged_master (Bitcoin PR #20813) 2021-06-16 14:11:07 +00:00
transactiontablemodel.cpp Merge dd455ecfa0 into merged_master (Bitcoin PR bitcoin-core/gui#349) 2023-04-11 03:54:35 +00:00
transactiontablemodel.h Merge 4a540683ec into merged_master (Bitcoin PR #20813) 2021-06-16 14:11:07 +00:00
transactionview.cpp Merge 3d9cdb1689 into merged_master (Bitcoin PR bitcoin-core/gui#354) 2023-04-09 06:21:15 +00:00
transactionview.h qt: Make TransactionView aware of runtime palette change 2021-05-01 15:07:12 +03:00
utilitydialog.cpp Merge f8176b768a into merged_master (Bitcoin PR bitcoin/bitcoin#21836) 2021-07-08 08:34:10 +00:00
utilitydialog.h
walletcontroller.cpp Merge 7c561bea52 into merged_master (Bitcoin PR bitcoin/bitcoin#21935) 2021-07-25 23:50:09 +00:00
walletcontroller.h
walletframe.cpp Move addrman includes from .h to .cpp 2021-09-07 10:44:43 +02:00
walletframe.h qt, refactor: Replace WalletFrame::addWallet with WalletFrame::addView 2021-09-03 00:27:14 +03:00
walletmodel.cpp Elements-qt: Correctly display the amount in the sender's wallet after using Send button 2022-08-31 19:12:50 -03:00
walletmodel.h Elements-qt: Correctly display the amount in the sender's wallet after using Send button 2022-08-31 19:12:50 -03:00
walletmodeltransaction.cpp Merge 68a89d7a46 into merged_master (Bitcoin PR bitcoin-core/gui#4) 2021-07-23 16:10:31 +00:00
walletmodeltransaction.h Merge 68a89d7a46 into merged_master (Bitcoin PR bitcoin-core/gui#4) 2021-07-23 16:10:31 +00:00
walletview.cpp Merge 503194d2ee into merged_master (Bitcoin PR bitcoin-core/gui#398) 2023-04-20 23:46:24 +00:00
walletview.h Merge 503194d2ee into merged_master (Bitcoin PR bitcoin-core/gui#398) 2023-04-20 23:46:24 +00:00
winshutdownmonitor.cpp
winshutdownmonitor.h Fix Windows build with --enable-werror on Ubuntu Focal 2021-04-13 10:20:44 +03:00

This directory contains the source code for the Bitcoin Core graphical user interface (GUI). It uses the Qt cross-platform framework.

The current precise version for Qt 5 is specified in qt.mk.

Compile and run

See build instructions: Unix, macOS, Windows, FreeBSD, NetBSD, OpenBSD

When following your systems build instructions, make sure to install the Qt dependencies.

To run:

./src/qt/bitcoin-qt

Files and Directories

forms/

  • A directory that contains Designer UI files. These files specify the characteristics of form elements in XML. Qt UI files can be edited with Qt Creator or using any text editor.

locale/

  • Contains translations. They are periodically updated and an effort is made to support as many languages as possible. The process of contributing translations is described in doc/translation_process.md.

res/

  • Contains graphical resources used to enhance the UI experience.

test/

  • Functional tests used to ensure proper functionality of the GUI. Significant changes to the GUI code normally require new or updated 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)

  • (Deprecated) Used to process BIP21 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/mm): macOS dock icon handler
  • macnotificationhandler.(h/mm): display notifications in macOS

Contribute

See CONTRIBUTING.md for general guidelines.

Note: Do not change local/bitcoin_en.ts. It is updated automatically.

Using Qt Creator as an IDE

Qt Creator is a powerful tool which packages a UI designer tool (Qt Designer) and a C++ IDE into one application. This is especially useful if you want to change the UI layout.

Download Qt Creator

On Unix and macOS, Qt Creator can be installed through your package manager. Alternatively, you can download a binary from the Qt Website.

Note: If installing from a binary grabbed from the Qt Website: During the installation process, uncheck everything except for Qt Creator.

macOS
brew install qt-creator
Ubuntu & Debian
sudo apt-get install qtcreator

Setup Qt Creator

  1. Make sure you've installed all dependencies specified in your systems build instructions
  2. Follow the compile instructions for your system, run ./configure with the --enable-debug flag
  3. Start Qt Creator. At the start page, do: New -> Import Project -> Import Existing Project
  4. Enter bitcoin-qt as the Project Name and enter the absolute path to src/qt as Location
  5. Check over the file selection, you may need to select the forms directory (necessary if you intend to edit *.ui files)
  6. Confirm the Summary page
  7. In the Projects tab, select Manage Kits...

macOS

  • Under Kits: select the default "Desktop" kit
  • Under Compilers: select "Clang (x86 64bit in /usr/bin)"
  • Under Debuggers: select "LLDB" as debugger (you might need to set the path to your LLDB installation)

Ubuntu & Debian

Note: Some of these options may already be set

  • Under Kits: select the default "Desktop" kit
  • Under Compilers: select "GCC (x86 64bit in /usr/bin)"
  • Under Debuggers: select "GDB" as debugger
  1. While in the Projects tab, ensure that you have the bitcoin-qt executable specified under Run
  • If the executable is not specified: click "Choose...", navigate to src/qt, and select bitcoin-qt
  1. You're all set! Start developing, building, and debugging the Bitcoin Core GUI