Git Product home page Git Product logo

qhot's Introduction

QHot

Live preview of your qml modifications. It works with nested qml components !

Check the online version qmlonline (Now as an official KDE project) !

Install

Downloads ๐Ÿ“ฆ

Arch Linux โšก

  • AUR: qhot-git

Build for local Qt kit

Build qhot from sources for your specific Qt kit, and install it alongside the other Qt tools. This way qhot will find all the Qt plugins that you already have installed on your local system. No need for a large package.

git clone https://github.com/patrickelectric/qhot.git
cd qhot
# Configure
cmake -B build -DCMAKE_BUILD_TYPE=Release
# Or use CMAKE_PREFIX_PATH where QTDIR should point to a Qt kit, e.g. C:/Qt/5.15.2/msvc2019_64
cmake -S . -B my-build -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$Env:QTDIR"
# Compile
cmake --build build --parallel --config Release

# Install qhot in the bin folder, e.g. C:/Qt/5.15.2/msvc2019_64/bin
cmake --build build --target install

How to use

To run qhot: ./qhot.exe myFile.qml or ./qhot.dmg myFile.qml or ./qhot.AppImage myFile.qml

example

Supported commands

--help, -h, -?           Give this friendly help message for our confort
--desktop                Force use of desktop GL (AA_UseDesktopOpenGL)
--gles                   Force use of GLES (AA_UseOpenGLES)
--software               Force use of software rendering (Qt::AA_UseSoftwareOpenGL)
--scaling                Enable High DPI scaling (AA_EnableHighDpiScaling)
--no-scaling             Disable High DPI scaling (AA_DisableHighDpiScaling)
--import-path, -I        Add list of **import** paths (path:path)
--plugin-path, -P        Add list of **plugin** paths (path:path)
--translation            Set the translation file (file)
--style                  Change style
--profile-path           Path (including filename) to qhot-profile.json (file)
--background             Set the background color (color)
--quick-controls-conf    Path (including filename) to qtquickcontrols2.conf (file)
--app-name               Name of the application running inside qhot (name)

Store options in a profile

All the command line options can also be set in a qhot-profile.json file. For example:

{
    "import-path": [
        "lib/qml/modules",
        "src/qml"
    ],
    "background": "#808080",
    "quick-controls-conf": "src/qml/qtquickcontrols2.conf"
}

The import paths in the example above are relative to the file itself, but can also be absolute. The relative paths make it more convenient to add it to a vcs repository.

Integrate in QtCreator

Integrating qhot in QtCreator makes it very easy to quickly prototype within the IDE. See Using External Tools. Example configuration:

  1. Executable: C:\Qt\5.15.2\msvc2019_64\bin\qhot.exe
  2. Arguments: %{CurrentDocument:FilePath} --profile-path "%{ActiveProject:Path}/qhot-profile.json"
  3. Environment: QT_ASSUME_STDERR_HAS_CONSOLE=1 (This will append stdout to the console)

It is also quite handy to add a shortcut in QtCreator to launch qhot. See Keyboard Shortcuts.

Shortcuts

  • Ctrl+Meta+F1 Launch popup to change background
  • Ctrl+Meta+Q Quit application

Loading Test Data

QHot has the same functionality as qmlscene to load dummy test data and it works exactly the same way: load test data.

qhot's People

Contributors

patrickelectric avatar jeruntu avatar martinbriza avatar gustavosbarreto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.