Skip to content

mmbyday/qml-xmr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qml-xmr

Development environment for QML/JS with a mock Qt application that resembles the Monero GUI.

Solves the problem of having to wait on monero-gui compiles to see your latest QML/JS changes.

Included in this repository are:

  • qml-xmr - Fork of qml-livereload. Injects monero-gui related context.
  • An example Qt application that uses Monero components.

The recommended way is to use the Sublime Text 3 to edit app/Mock.qml, then compile it via a custom Sublime build system.

Requirements:

  • Sublime Text 3 or any other IDE
  • Qt 5.7
  • CMake >= 3.10
qmake --version
QMake version 3.0
Using Qt version 5.7.1 in /home/dsc/Qt/5.7/gcc_64/lib

Make sure to correctly set your environment. Consult qtchooser -print-env

Installation

First compile qml-xmr:

cd qml-xmr
cmake . && make && sudo make install

Or if you prefer qmake:

cd qml-xmr
qmake
sudo make

Compiled binary will be found at /usr/local/bin/qml-xmr.

Update the monero-gui submodule:

git submodule init
git submodule update

Launch Sublime Text 3 and make a new build system:

  1. Open the file app/Mock.qml
  2. Go to Tools->Build System->New Build System
  3. Paste the following:
{
    "shell_cmd": "qml-xmr $file_path/monero-gui.qml"
}
  1. Save the file as qml-xmr.sublime-build
  2. Go to Tools->Build System and select qml-xmr

Modify Mock.qml as you please. Press CTRL-B to run the application.

Tips

  • monero-gui.qml is the entry point of the application, you shouldn't need to edit it. It includes Mock.qml automatically.
  • Update the submodule monero-gui regularly

About

Mock QML components for Monero-GUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 67.5%
  • QML 25.2%
  • CMake 4.9%
  • JavaScript 1.3%
  • QMake 1.1%