Git Product home page Git Product logo

powerslider's Introduction

alt text

PowerSlider Qt Widget

Presentation

Qt Widget, a slider and a double spinbox !

This small piece of code can ease the setup of GUI when you have to control floating point values.

A designer plugin is provided to design interface with "PowerSlider" directly in designer.

Manual comming soon (well, or not, expect if someone ask :D )

compile and install

Default installation is PowerSlider/Bundle-* directory depending on compiler and build type.

Designer plugin need Qt5 UiTools package (debian pkg qttools5-dev), to skip designer plugin build add -DBUILD_DESIGNER_PLUGIN=Off to cmake call.

Installation is done under lib and include directory of CMAKE_INSTALL_PREFIX

So a typical build looks like

cmake -B build -DCMAKE_INSTALL_PREFIX=somewhere
cmake --build build --target install

Then copy the QtDesigner plugin to the appropriate place, and run designer

cp somehere/plugins/designer/libPowerSliderPlugin.so ~/.qt/plugins/designer/
QT_PLUGIN_PATH=~/.qt/plugins/ designer

designer should have the new widget in his list as in the screen shot here :

alt text

use in you project

We use example as an example for this case. Configure package find in your CMakeLists.txt (e.g. (find_package PowerSlider)) and give PowerSlider_DIR to cmake invocation

cmake example -B build-example -DPowerSlider_DIR=`pwd`/PowerSlider/Bundle-GNU-Release/lib/cmake/PowerSlider
cmake --build build-example

powerslider's People

Contributors

dlyr avatar mathiaspaulin avatar

Watchers

James Cloos avatar

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.