Code Monkey home page Code Monkey logo

qflightinstruments's Introduction

Qt Flight instrument widgets

This program is a pure Qt implementation of flight instrument widgets, including attitude display indicator (ADI), compass, and list viewer. These widgets are wrote in single .h/.cpp, therefore is easy to add to your project. In addition it is easy to modify.

The source is based on part of source code (https://github.com/cmex81/qAttitudeIndicator). We improve their implementation and make it clear to read.

Requirements:

  • Qt4 (sudo apt-get install libqt4-core libqt4-dev)

Compile:

qmake qFlightInstruments.pro

make

Usage:

./qFlightInstruments

Keyboard:
    UP    - Pitch +
    DOWN  - Pitch -
    LEFT  - Roll -
    RIGHT - Roll +
    A     - Yaw +
    D     - Yaw -
    W     - Alt +
    S     - Alt -
    J     - H +
    K     - H -

Plateform:

Only test on Linux Mint 16 64-bit.

Screenshot:

-alt text

Project homepage:

http://www.adv-ci.com/blog/source/qflightinstruments/

qflightinstruments's People

Contributors

bushuhui 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

qflightinstruments's Issues

cpu usage high

the CPU usage is quite high with the code.
after debugging, I think it is related to the following code in the "paintEvent" function.

QRegion maskRegion(-m_size/2, -m_size/2, m_size, m_size, QRegion::Ellipse);
painter.setClipRegion(maskRegion);

seems setting the second parameter to "Qt::NoClip" OR deleting the two lines code will solve this problem.

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.