Giter VIP home page Giter VIP logo

qt.rs's Introduction

Qt5 binding for Rust language.

qt.rs

This project provides bindings that allow the QT Gui toolkit to be used from the Rust Programming language.

Compiling

depends

git clone https://github.com/kitech/qt.inline.git
mkdir qt.inline/build
cd qt.inline/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && make install

qt.rs

git clone https://github.com/kitech/qt.rs.git
cd qt.rs
cargo build

Examples

cargo build --example button

Supported Qt5 modules

  • Core
  • Gui
  • Widgets
  • Network
  • Qml
  • Quick

TODOS

  • More Qt modules support
  • Global Qt functions support
  • Qt enums support
  • Qt generic container classes support
  • Operator methods support

qt.rs's People

Contributors

burnww avatar envsh avatar kitech avatar quininer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

qt.rs's Issues

cmake Instruction on README.md Fails

Instruction says:

git clone https://github.com/kitech/qt.inline.git
mkdir qt.inline/build
cd qt.inline/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && make install

Fails on:

cmake -DCMAKE_INSTALL_PREFIX=/usr ..

Output:

CMake Warning at CMakeLists.txt:16 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core" with any
  of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:17 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" with any
  of the following names:

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"
  provides a separate development package or SDK, be sure it has been
  installed.


CMake Warning at CMakeLists.txt:18 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Error at CMakeLists.txt:54 (qt5_use_modules):
  Unknown CMake command "qt5_use_modules".


-- Configuring incomplete, errors occurred!
See also "/home/erayerdin/Downloads/meh/qt.inline/build/CMakeFiles/CMakeOutput.log".

Environment

  • Xubuntu 16.04
  • rustc 1.7.0 (just in case)

Status

Hi,

I'm looking into using Qt5 (with Rust) for a fairly large project and I would like to know the current status of qt.rs as there hasn't been any updates for a while.

error bool * => Vec<i8>

about qgraphicsitem.rs:6118
`// proto: QTransform QGraphicsItem::itemTransform(const QGraphicsItem * other, bool * ok);

impl<'a> /trait/ QGraphicsItem_itemTransform for (&'a QGraphicsItem, Option<&'a mut Vec>) {`

should be: *mut i8

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.