dash/src/qt
2021-11-11 18:34:28 +05:30
..
android Merge bitcoin/bitcoin#22078: Add src/qt/android/.gitignore 2021-07-15 16:01:43 -05:00
forms Merge #16090: Qt: Add vertical spacer to peer detail widget 2021-11-09 14:08:49 -05:00
locale 80%+: ar, bg, de, es, fr, it, ja, ko, nl, pl, pt, ro, sk, th, tr, vi, zh_CN, zh_TW (#4169) 2021-05-25 00:45:15 +02:00
res Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
test Merge #15342: Suggested wallet code cleanups from #14711 2021-11-02 23:49:09 -04:00
addressbookpage.cpp Merge #15829: qt: update request payment button text and tab description 2021-10-25 12:20:19 -04:00
addressbookpage.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
addresstablemodel.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
addresstablemodel.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
appearancewidget.cpp qt: Use new Qt5 connect syntax (Dash specific) 2021-08-23 13:31:48 -04:00
appearancewidget.h qt: Fix some font weight related issues (#4131) 2021-05-06 13:15:47 -04:00
askpassphrasedialog.cpp Merge pull request #4375 from PastaPastaPasta/pr_4330 2021-08-29 23:50:29 +03:00
askpassphrasedialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bantablemodel.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
bantablemodel.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
bitcoinaddressvalidator.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
bitcoinaddressvalidator.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
bitcoinamountfield.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
bitcoinamountfield.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
bitcoingui.cpp Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
bitcoingui.h Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
bitcoinunits.cpp Merge #13264: [qt] Satoshi unit 2021-07-06 19:50:27 +03:00
bitcoinunits.h Merge #17869: refactor: Remove unused defines in qt/bitcoinunits.h 2021-07-15 11:07:35 -05:00
clientmodel.cpp merge bitcoin#17135: Make polling in ClientModel asynchronous 2021-11-01 21:41:35 +05:30
clientmodel.h merge bitcoin#17135: Make polling in ClientModel asynchronous 2021-11-01 21:41:35 +05:30
coincontroldialog.cpp Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
coincontroldialog.h Merge #18578: gui: Fix leak in CoinControlDialog::updateView 2021-07-15 13:26:07 -05:00
coincontroltreewidget.cpp
coincontroltreewidget.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
csvmodelwriter.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
csvmodelwriter.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
dash_locale.qrc
dash.cpp merge bitcoin#17427: Fix missing qRegisterMetaType for size_t 2021-11-01 21:41:35 +05:30
dash.h Merge #14250: qt: Remove redundant stopThread() and stopExecutor() signals 2021-09-21 14:37:10 -04:00
dash.qrc Merge #11491: [gui] Add proxy icon in statusbar 2021-07-06 19:50:27 +03:00
dashstrings.cpp qt: Transaltions202105 (#4137) 2021-05-12 00:56:24 +02:00
editaddressdialog.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
editaddressdialog.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
governancelist.cpp minor refactoring after #4351 (#4556) 2021-11-01 13:30:18 +03:00
governancelist.h minor refactoring after #4351 (#4556) 2021-11-01 13:30:18 +03:00
guiconstants.h Merge #15163: Correct units for "-dbcache" and "-prune" 2021-08-24 19:14:50 -04:00
guiutil.cpp merge bitcoin#18260: Fix implicit value conversion in formatPingTime 2021-11-03 10:45:00 +05:30
guiutil.h merge bitcoin#18260: Fix implicit value conversion in formatPingTime 2021-11-03 10:45:00 +05:30
intro.cpp Merge #14250: qt: Remove redundant stopThread() and stopExecutor() signals 2021-09-21 14:37:10 -04:00
intro.h Merge #14250: qt: Remove redundant stopThread() and stopExecutor() signals 2021-09-21 14:37:10 -04:00
macdockiconhandler.h
macdockiconhandler.mm
macnotificationhandler.h Merge #14214: convert C-style (void) parameter lists to C++ style () 2021-07-12 11:50:33 -04:00
macnotificationhandler.mm Merge #14975: qt: Refactoring with QString::toNSString() 2021-07-08 11:57:14 -05:00
macos_appnap.h
macos_appnap.mm
main.cpp Merge #11625: Add BitcoinApplication & RPCConsole tests 2021-09-18 17:13:54 -04:00
masternodelist.cpp Cxx17 refac ci trivial (#4507) 2021-10-12 00:55:49 +03:00
masternodelist.h refactor: replace instances of typedef with using in dash code (#4488) 2021-10-06 00:26:29 +03:00
modaloverlay.cpp Merge bitcoin-core/gui#300: Remove progress bar on modal overlay 2021-09-24 13:32:14 -04:00
modaloverlay.h Merge #15091: GUI: fix model overlay header sync 2021-09-10 15:40:46 -04:00
networkstyle.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
networkstyle.h Update copyright (#4115) 2021-04-20 22:33:02 +03:00
notificator.cpp Merge #20496: build: Drop unneeded macOS framework dependencies 2021-07-16 10:04:09 -05:00
notificator.h Merge #15007: qt: Notificator class refactoring 2021-06-28 13:40:51 -05:00
openuridialog.cpp Update copyright (#4115) 2021-04-20 22:33:02 +03:00
openuridialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
optionsdialog.cpp Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
optionsdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
optionsmodel.cpp Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
optionsmodel.h Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
overviewpage.cpp refactor: remove redundant filename prefixes for Dash-specific logic (#4475) 2021-10-01 22:19:08 +03:00
overviewpage.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
paymentrequest.proto
paymentrequestplus.cpp Merge #14207: doc: -help-debug implies -help 2021-07-12 11:50:33 -04:00
paymentrequestplus.h Merge #11372: Address encoding cleanup 2021-01-08 22:35:34 +03:00
paymentserver.cpp depends: Bump protobuf to 3.17.3 (#4503) 2021-10-11 23:23:41 +03:00
paymentserver.h Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
peertablemodel.cpp merge bitcoin#18260: Fix implicit value conversion in formatPingTime 2021-11-03 10:45:00 +05:30
peertablemodel.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
qrdialog.cpp qt: Use new Qt5 connect syntax (Dash specific) 2021-08-23 13:31:48 -04:00
qrdialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
qvalidatedlineedit.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
qvalidatedlineedit.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
qvaluecombobox.cpp Merge #13529: Use new Qt5 connect syntax 2021-08-23 12:12:31 -04:00
qvaluecombobox.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
README.md Merge #14428: docs: Fix macOS files description in qt/README.md 2021-07-22 16:03:06 -04:00
receivecoinsdialog.cpp merge bitcoin#16707: Remove obsolete QModelIndex::child() 2021-11-11 18:34:28 +05:30
receivecoinsdialog.h Merge bitcoin-core/gui#213: qt: Add Copy Address Action to Payment Requests 2021-09-18 21:41:47 -04:00
receiverequestdialog.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
receiverequestdialog.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
recentrequeststablemodel.cpp Merge pull request #4345 from linuxsh2/qt5-syntax 2021-08-24 19:14:18 +03:00
recentrequeststablemodel.h merge bitcoin#16707: Remove obsolete QModelIndex::child() 2021-11-11 18:34:28 +05:30
rpcconsole.cpp merge bitcoin#18260: Fix implicit value conversion in formatPingTime 2021-11-03 10:45:00 +05:30
rpcconsole.h Merge #14250: qt: Remove redundant stopThread() and stopExecutor() signals 2021-09-21 14:37:10 -04:00
sendcoinsdialog.cpp refactor: Include adjustments (#4526) 2021-10-25 16:55:34 +03:00
sendcoinsdialog.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
sendcoinsentry.cpp Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
sendcoinsentry.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
signverifymessagedialog.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
signverifymessagedialog.h bitcoin#18914: Apply override specifier consistently 2021-06-17 11:25:48 +05:30
splashscreen.cpp Merge #16348: qt: Assert QMetaObject::invokeMethod result 2021-09-24 13:27:59 -04:00
splashscreen.h Merge #14854: qt: Cleanup SplashScreen class 2021-09-10 20:44:52 -04:00
trafficgraphdata.cpp
trafficgraphdata.h
trafficgraphwidget.cpp Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
trafficgraphwidget.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
transactiondesc.cpp Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
transactiondesc.h Merge #14554: qt: Remove unused adjustedTime parameter 2021-07-28 12:08:07 -04:00
transactiondescdialog.cpp
transactiondescdialog.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
transactionfilterproxy.cpp
transactionfilterproxy.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
transactionrecord.cpp Merge #14556: qt: fix confirmed transaction labeled "open" (#13299) 2021-10-13 23:44:02 -05:00
transactionrecord.h Merge #14556: qt: fix confirmed transaction labeled "open" (#13299) 2021-10-13 23:44:02 -05:00
transactiontablemodel.cpp Merge #14556: qt: fix confirmed transaction labeled "open" (#13299) 2021-10-13 23:44:02 -05:00
transactiontablemodel.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
transactionview.cpp Merge bitcoin-core/gui#223: qt: Re-add and rename transaction "Edit Label" action 2021-09-18 21:41:48 -04:00
transactionview.h Merge bitcoin-core/gui#223: qt: Re-add and rename transaction "Edit Label" action 2021-09-18 21:41:48 -04:00
utilitydialog.cpp Merge bitcoin#16205: Refactor: Replace fprintf with tfm::format (#4531) 2021-10-24 13:51:47 +03:00
utilitydialog.h Merge #15114: Qt: Replace remaining 0 with nullptr 2021-08-24 19:14:50 -04:00
walletcontroller.cpp Merge #16106: gui: Sort wallets in open wallet menu 2021-10-25 16:11:17 -04:00
walletcontroller.h Merge #16106: gui: Sort wallets in open wallet menu 2021-10-25 16:11:17 -04:00
walletframe.cpp Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
walletframe.h Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
walletmodel.cpp Merge pull request #4450 from PastaPastaPasta/backport-16348 2021-09-25 00:44:44 +03:00
walletmodel.h Merge #17120: gui: Fix start timer from non QThread 2021-09-21 14:42:33 -04:00
walletmodeltransaction.cpp Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
walletmodeltransaction.h Merge #14451: Add BIP70 deprecation warning and allow building GUI without BIP70 support 2021-08-27 13:06:06 -07:00
walletview.cpp Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
walletview.h Qt: Adds Governance tab (#4351) 2021-10-29 21:14:25 -04:00
winshutdownmonitor.cpp Merge #17151: gui: remove OpenSSL PRNG seeding (Windows, Qt only) 2021-09-15 13:54:38 -04:00
winshutdownmonitor.h

This directory contains the DashQT 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 not supported.

Compile and run

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

To run:

./src/qt/dash-qt

Files and directories

forms

Contains Designer UI files. They are created with Qt Creator, 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 Dash 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 dash:... 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. 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 macOS:

  1. Make sure you installed everything through Homebrew mentioned in the macOS build instructions
  2. Use ./configure with the --enable-debug flag
  3. In Qt Creator do "New Project" -> Import Project -> Import Existing Project
  4. Enter "dash-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 "dash-qt" under "Run", which is where you can also add command line arguments)