Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A demo integration of Felgo Hot Reload to an existing Qt project

License

NotificationsYou must be signed in to change notification settings

FelgoSDK/FelgoHotReloadDemo

Repository files navigation

A demo integration of Felgo Hot Reload to an existing Qt project

To learn more about Felgo Hot Reload, have a look athttps://felgo.com/qml-hot-reload

This repository includes two commits:

  • An initial commit with a Qt/QML project
  • Acommit with the changes applied to add Felgo Hot Reload to the project

Installing Prerequisites

1. Install Qt

We recommend that you use Qt versions 5.15.2 or 6.5.3 with one of the kits:

  • gcc_64 kit on Linux
  • msvc2019_64 kit on Windows
  • clang_64 kit for Qt 5.15.2 ormacos kit for Qt 6.5.3 on macOS

2. Install Felgo Hot Reload

You can install Felgo Hot Reload in two ways:

  • Download the latest release package of this repositoryreleases page. This package contains:
    • the Felgo Hot Reload GUI application for
      • Linux
      • Windows
      • macOS
    • the client libraries for the following build kits
      • GNU/Linux
        • Qt 5.15.2gcc_64
        • Qt 6.5.3gcc_64
      • Windows
        • Qt 5.15.2msvc2019_64
        • Qt 6.5.3msvc2019_64
      • macOS
        • Qt 5.15.2clang_64
        • Qt 6.5.3macos
  • Install with the official Felgo Hot Reload Installer, coming with a free evaluation (see below). Use this option if you are not using Qt 5.15.2 or Qt 6.5.3, the installer supports a large variety of development kits.

You need a valid license key, which you can obtain with afree evaluation here.

Running the Project

1. Building

We recommend using CMakeLists.txt file to generate build files when using Qt 6 kits, and FelgoHotReloadDemo.pro file to generate build files when using Qt 5 kits.

Qt Creator

Generating project files with CMake

Add theFELGO_HOT_RELOAD_PATH variable to the Projects - Build Settings - CMake Details and set it to the Felgo Hot Reload client libraries directory for your selected kit.Assuming you are using the repository release package on a Linux machine, the path is../client/6.5.3/gcc_64

Generating project files with qmake

Add theFELGO_HOT_RELOAD_PATH additional argument to the Projects - Build Settings - Build Steps Details and set it to the Felgo Hot Reload client libraries directory for your selected kit.Assuming you are using the repository release package on a Linux machine, the argument isFELGO_HOT_RELOAD_PATH=../client/5.15.2/gcc_64

Other IDEs

Use your IDE build configuration features to set theFELGO_HOT_RELOAD_PATH variable before you generate the project files.Assuming you are using the release package on a Linux machine, the path is../client/6.5.3/gcc_64

Run CMake or qmake and build the application like any other.

2. Create Felgo Hot Reload configuration file

CMake

CMake creates the requiredhot_reload_config.json file automatically. There's nothing you have to do.

qmake

Copy or renamehot_reload_config_qmake.json tohot_reload_config.json.

3. Running

  • Open the FelgoHotReload GUI application from the repository package or installation and select theFelgoHotReloadDemo folder within the opening file dialog (your project directory).
  • Run your application and select the “Connect to Local” option. The project loads up.
  • Edit the QML code of your application and see changes to the running applications.

[8]ページ先頭

©2009-2025 Movatter.jp