Giter VIP home page Giter VIP logo

qt-template's Introduction

Qt Template/Example

This is template/example that can rapid to build Qt/QML application.

You can just copy you prefer program language's folder and start to code and build and run.

Applications that build with this Qt Template: Examples

Usage

  1. Clone this repo

    $ git clone https://github.com/kaka-lin/qt-template.git
  2. Choosing you prefer program language, ex: c++

    $ cp -r c++/qml <Your path>
  3. Buinding application

    Follow the steps of each folder's README

Running and showing the Templates

1. Run with Docker (Recommend)

You can use the docker image that we already build, as below

$ docker pull kakalin/qt:5.12.0

Or you can build it from scratch, please check the document in the docker folder.

And then running with docker:

$ ./run.sh

2. Run with local Qt

Please install Qt/QML on your local machine.

3. Run the template

Chose the version that you want to use.

QML
$ cd python/pyqt5/qml
$ python3 qml_template.py

QT
$ cd python/pyqt5/qt
$ python3 main.py

Examples

Applications that build with Qt, you can reference projects as below,

qt-template's People

Contributors

kaka-lin avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

ckhuang0614

qt-template's Issues

Issues with running PyQt within your container

I did a pull of your repo today, did a straight build and run. This was the result when I called python3 main.py on the python/pyqt5/qt/main.py

Traceback (most recent call last):
File "main.py", line 4, in
from gui import app
File "/home/user/qt-template/python/pyqt5/qt/gui/app.py", line 2, in
from PyQt5.QtCore import QTranslator, QLocale

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.