lbrycrd/src/qt
Hennadii Stepanov b0037c5190
Improve Peers tab layout
Using the QSplitter and QScrollArea classes.
2019-01-09 22:26:20 +02:00
..
forms Improve Peers tab layout 2019-01-09 22:26:20 +02:00
locale
res
test Add BitcoinApplication & RPCConsole tests 2019-01-04 06:31:07 -05:00
addressbookpage.cpp
addressbookpage.h
addresstablemodel.cpp
addresstablemodel.h
askpassphrasedialog.cpp
askpassphrasedialog.h
bantablemodel.cpp Use C++11 default member initializers 2019-01-05 16:16:37 +01:00
bantablemodel.h
bitcoin.cpp Merge #14517: qt: Fix start with the -min option 2019-01-09 19:44:43 +01:00
bitcoin.h Add BitcoinApplication & RPCConsole tests 2019-01-04 06:31:07 -05:00
bitcoin.qrc [gui] Add proxy icon in statusbar 2018-05-15 23:23:56 +03:00
bitcoin_locale.qrc
bitcoinaddressvalidator.cpp
bitcoinaddressvalidator.h
bitcoinamountfield.cpp
bitcoinamountfield.h
bitcoingui.cpp Merge #11625: Add BitcoinApplication & RPCConsole tests 2019-01-09 14:40:38 +01:00
bitcoingui.h Merge #14517: qt: Fix start with the -min option 2019-01-09 19:44:43 +01:00
bitcoinstrings.cpp
bitcoinunits.cpp
bitcoinunits.h
clientmodel.cpp Merge #13743: refactor: Replace boost::bind with std::bind 2018-12-29 14:14:26 +01:00
clientmodel.h
coincontroldialog.cpp
coincontroldialog.h qt: Remove hidden columns in coin control dialog 2018-11-29 07:58:40 +00:00
coincontroltreewidget.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
coincontroltreewidget.h
csvmodelwriter.cpp
csvmodelwriter.h
editaddressdialog.cpp
editaddressdialog.h
guiconstants.h gui: Fix for Incorrect application name when passing -regtest 2019-01-03 01:04:26 -06:00
guiutil.cpp
guiutil.h
intro.cpp
intro.h
macdockiconhandler.h Remove obj_c for macOS Dock icon menu 2018-11-04 02:42:18 +02:00
macdockiconhandler.mm Remove obj_c for macOS Dock icon menu 2018-11-04 02:42:18 +02:00
macnotificationhandler.h convert C-style (void) parameter lists to C++ style () 2018-09-13 10:36:41 -07:00
macnotificationhandler.mm
macos_appnap.h
macos_appnap.mm
main.cpp Add BitcoinApplication & RPCConsole tests 2019-01-04 06:31:07 -05:00
Makefile
modaloverlay.cpp
modaloverlay.h
networkstyle.cpp gui: Fix for Incorrect application name when passing -regtest 2019-01-03 01:04:26 -06:00
networkstyle.h
notificator.cpp Remove misplaced Q_UNUSED and others enhancements 2018-12-20 01:06:37 +02:00
notificator.h Remove misplaced Q_UNUSED and others enhancements 2018-12-20 01:06:37 +02:00
openuridialog.cpp
openuridialog.h
optionsdialog.cpp
optionsdialog.h
optionsmodel.cpp
optionsmodel.h
overviewpage.cpp
overviewpage.h
paymentrequest.proto Specify Protobuf version 2 in paymentrequest.proto 2016-09-16 11:45:08 +08:00
paymentrequestplus.cpp
paymentrequestplus.h
paymentserver.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
paymentserver.h
peertablemodel.cpp Use C++11 default member initializers 2019-01-05 16:16:37 +01:00
peertablemodel.h
platformstyle.cpp
platformstyle.h qt: Introduce PlatformStyle 2015-07-31 09:35:18 +02:00
qvalidatedlineedit.cpp
qvalidatedlineedit.h
qvaluecombobox.cpp
qvaluecombobox.h
README.md
receivecoinsdialog.cpp
receivecoinsdialog.h
receiverequestdialog.cpp
receiverequestdialog.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
recentrequeststablemodel.cpp Use C++11 default member initializers 2019-01-05 16:16:37 +01:00
recentrequeststablemodel.h Use C++11 default member initializers 2019-01-05 16:16:37 +01:00
rpcconsole.cpp Merge #14599: Use functions guaranteed to be locale independent (IsDigit, ToLower) in {Format,Parse}Money(...), uint256::SetHex(...), etc. Remove the use of locale dependent boost::is_space(...) 2019-01-09 18:17:17 +01:00
rpcconsole.h qt: Use WalletModel* instead of wallet name in console window 2019-01-04 15:24:00 +00:00
sendcoinsdialog.cpp
sendcoinsdialog.h
sendcoinsentry.cpp
sendcoinsentry.h
signverifymessagedialog.cpp
signverifymessagedialog.h
splashscreen.cpp Merge #13743: refactor: Replace boost::bind with std::bind 2018-12-29 14:14:26 +01:00
splashscreen.h
trafficgraphwidget.cpp Make objects in range declarations immutable by default. Avoid unnecessary copying of objects in range declarations. 2018-08-27 18:19:33 +02:00
trafficgraphwidget.h
transactiondesc.cpp
transactiondesc.h
transactiondescdialog.cpp
transactiondescdialog.h
transactionfilterproxy.cpp
transactionfilterproxy.h
transactionrecord.cpp
transactionrecord.h
transactiontablemodel.cpp Merge #13743: refactor: Replace boost::bind with std::bind 2018-12-29 14:14:26 +01:00
transactiontablemodel.h
transactionview.cpp
transactionview.h
utilitydialog.cpp
utilitydialog.h
walletframe.cpp qt: Use WalletModel* instead of wallet name in main window 2019-01-04 15:22:13 +00:00
walletframe.h qt: Use WalletModel* instead of wallet name in main window 2019-01-04 15:22:13 +00:00
walletmodel.cpp Merge #15109: refactor: Use C++11 default member initializers 2019-01-09 15:04:36 +01:00
walletmodel.h Merge #15109: refactor: Use C++11 default member initializers 2019-01-09 15:04:36 +01:00
walletmodeltransaction.cpp
walletmodeltransaction.h
walletview.cpp
walletview.h
winshutdownmonitor.cpp
winshutdownmonitor.h Update copyright headers to 2018 2018-07-27 07:15:02 -04: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.

Compile and run

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

To run:

./src/qt/bitcoin-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 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/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 "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)