Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/DimaRU/QliftUIC
Generate Swift code from Qt5 user interfaces.
https://github.com/DimaRU/QliftUIC
qt qt5 qt5-gui swift
Last synced: 3 months ago
JSON representation
Generate Swift code from Qt5 user interfaces.
- Host: GitHub
- URL: https://github.com/DimaRU/QliftUIC
- Owner: DimaRU
- License: mit
- Created: 2022-02-07T15:23:57.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T09:50:59.000Z (4 months ago)
- Last Synced: 2024-11-17T12:44:28.595Z (3 months ago)
- Topics: qt, qt5, qt5-gui, swift
- Language: Swift
- Homepage:
- Size: 57.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Qlift-uic
## Description
qlift-uic takes a Qt5 user interface description file and compiles it to Swift code for use with QLift.
Splitted from main QLift repo.## Use with Swift package manager plugin
Add dependency to your swift package manifest:
```swift
dependencies: [
.package(url: "https://github.com/DimaRU/QliftUIC", branch: "master"),
],```
Then add plugin to target declaration:
```swift
plugins: [
.plugin(name: "QliftUICPlugin", package: "QliftUIC"),
]
```
and .ui files to your target. These files will be automatically converted to .swift during build process.This is the structure of an example client package of qlift-uic:
```
MyPackage
├ Package.swift
└ Sources
└ MyExe
├ MainWindow.ui
└ main.swift
```## Installation for use with command line
#### Homebrew
Run the following command to install using [Homebrew](https://brew.sh/):
```console
brew install DimaRU/formulae/qlift-uic
```## Command line USAGE
```
USAGE: qlift-uic ... [--verbose] [--code] [--localizable] [--strings] [--extension] [--output-directory ]ARGUMENTS:
UI file to compile.OPTIONS:
-v, --verbose Verbose output
--code/--localizable/--strings/--extension
Output Behaviour (default: --code)
Explanation:
--code: Generate UI code
--localizable: Generate localizable UI code
--strings: Generate .strings files
--extension: Generate localization resource accessor extension
-o, --output-directory
The output path for generated files.
By default generated files written to current directory.
--version Show the version.
-h, --help Show help information.
```## Build
Use swift package manager for build.
```console
git clone https://github.com/DimaRU/QliftUIC.git
cd QliftUIC
swift build
```## Credits
Thanks to Andi Schulz (Longhanks)Initially forked from [https://github.com/Longhanks/qlift]()