Capítulo 7. La Librería Qt
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Our Journey from Java to Pyqt and Web for Cern Accelerator Control Guis I
17th Int. Conf. on Acc. and Large Exp. Physics Control Systems ICALEPCS2019, New York, NY, USA JACoW Publishing ISBN: 978-3-95450-209-7 ISSN: 2226-0358 doi:10.18429/JACoW-ICALEPCS2019-TUCPR03 OUR JOURNEY FROM JAVA TO PYQT AND WEB FOR CERN ACCELERATOR CONTROL GUIS I. Sinkarenko, S. Zanzottera, V. Baggiolini, BE-CO-APS, CERN, Geneva, Switzerland Abstract technology choices for GUI, even at the cost of not using Java – our core technology – for GUIs anymore. For more than 15 years, operational GUIs for accelerator controls and some lab applications for equipment experts have been developed in Java, first with Swing and more CRITERIA FOR SELECTING A NEW GUI recently with JavaFX. In March 2018, Oracle announced that Java GUIs were not part of their strategy anymore [1]. TECHNOLOGY They will not ship JavaFX after Java 8 and there are hints In our evaluation of GUI technologies, we considered that they would like to get rid of Swing as well. the following criteria: This was a wakeup call for us. We took the opportunity • Technical match: suitability for Desktop GUI to reconsider all technical options for developing development and good integration with the existing operational GUIs. Our options ranged from sticking with controls environment (Linux, Java, C/C++) and the JavaFX, over using the Qt framework (either using PyQt APIs to the control system; or developing our own Java Bindings to Qt), to using Web • Popularity among our current and future developers: technology both in a browser and in native desktop little (additional) learning effort, attractiveness for new applications. -
Release 0.11 Todd Gamblin
Spack Documentation Release 0.11 Todd Gamblin Feb 07, 2018 Basics 1 Feature Overview 3 1.1 Simple package installation.......................................3 1.2 Custom versions & configurations....................................3 1.3 Customize dependencies.........................................4 1.4 Non-destructive installs.........................................4 1.5 Packages can peacefully coexist.....................................4 1.6 Creating packages is easy........................................4 2 Getting Started 7 2.1 Prerequisites...............................................7 2.2 Installation................................................7 2.3 Compiler configuration..........................................9 2.4 Vendor-Specific Compiler Configuration................................ 13 2.5 System Packages............................................. 16 2.6 Utilities Configuration.......................................... 18 2.7 GPG Signing............................................... 20 2.8 Spack on Cray.............................................. 21 3 Basic Usage 25 3.1 Listing available packages........................................ 25 3.2 Installing and uninstalling........................................ 42 3.3 Seeing installed packages........................................ 44 3.4 Specs & dependencies.......................................... 46 3.5 Virtual dependencies........................................... 50 3.6 Extensions & Python support...................................... 53 3.7 Filesystem requirements........................................ -
1 Australian Synchrotron
EPICS Qt Update Paul Martin 1 Australian Synchrotron • 3GeV, 216m circumference synchrotron • 8 Beamlines • 12 Software Engineers • IMBL – Worlds Widest Beam - MRT Clinical Program – Safety Critical • Melbourne, Australia • Nearest other facilities: Taiwan, Thailand, Japan • 16th Most Urbanized Country • World’s most livable cities • Hosting ICALEPCS in 2015 2 Qt • Qt is a cross-platform application and UI framework for developers using C++ – Windows,OS X, Linux, Embedded Linux, Android, iOS, vxWorks, Win CE, Amiga OS • Open Source (LPGL v2.1) Qt Designer • Trolltech -> Nokia -> Digia, • Development tools: Qt Creator, Qt Designer, Qmake, Qt Linguist, Qt Assistant, Integration into Visual Studio • Rich set of Widgets and other classes (1000+), Qwt (125+) • Very Good Documentation, help, examples • All Qt Objects contain powerful object communication Qt Creator mechanism (Signal+Slots) • GUI Layout widgets • Qt Project: www.qt-project.org 3 EPICS Qt – Team • Started 2009 – Anthony Owen, Andrew Rhyder, Glenn Jackson • Joined 2011 – Andy Starritt • Joined 2012 – Ricardo Fernandez • Joined 2013 – Zai Wang (1 year contract) 4 EPICS Qt – Rapid GUI Development • Adds Channel Access to standard Qt Widgets and Data Classes • Rapid GUI Dev – Drag and Drop EPICS aware components in Qt Designer • Macro Substitutions for PV names and other GUI functions Qt Designer Channel Access running at design time .ui file – presented using QEGui on any platform (windows / linux) 5 EPICS Qt – Other App Types QCaString Qt Creator QCaInteger QCaFloating QCaByteArray -
Multiplatformní GUI Toolkity GTK+ a Qt
Multiplatformní GUI toolkity GTK+ a Qt Jan Outrata KATEDRA INFORMATIKY UNIVERZITA PALACKÉHO V OLOMOUCI GUI toolkit (widget toolkit) (1) = programová knihovna (nebo kolekce knihoven) implementující prvky GUI = widgety (tlačítka, seznamy, menu, posuvník, bary, dialog, okno atd.) a umožňující tvorbu GUI (grafického uživatelského rozhraní) aplikace vlastní jednotný nebo nativní (pro platformu/systém) vzhled widgetů, možnost stylování nízkoúrovňové (Xt a Xlib v X Windows System a libwayland ve Waylandu na unixových systémech, GDI Windows API, Quartz a Carbon v Apple Mac OS) a vysokoúrovňové (MFC, WTL, WPF a Windows Forms v MS Windows, Cocoa v Apple Mac OS X, Motif/Lesstif, Xaw a XForms na unixových systémech) multiplatformní = pro více platforem (MS Windows, GNU/Linux, Apple Mac OS X, mobilní) nebo platformově nezávislé (Java) – aplikace může být také (většinou) událostmi řízené programování (event-driven programming) – toolkit v hlavní smyčce zachytává události (uživatelské od myši nebo klávesnice, od časovače, systému, aplikace samotné atd.) a umožňuje implementaci vlastních obsluh (even handler, callback function), objektově orientované programování (objekty = widgety aj.) – nevyžaduje OO programovací jazyk! Jan Outrata (Univerzita Palackého v Olomouci) Multiplatformní GUI toolkity duben 2015 1 / 10 GUI toolkit (widget toolkit) (2) language binding = API (aplikační programové rozhraní) toolkitu v jiném prog. jazyce než původní API a toolkit samotný GUI designer/builder = WYSIWYG nástroj pro tvorbu GUI s využitím toolkitu, hierarchicky skládáním prvků, z uloženého XML pak generuje kód nebo GUI vytvoří za běhu aplikace nekomerční (GNU (L)GPL, MIT, open source) i komerční licence např. GTK+ (C), Qt (C++), wxWidgets (C++), FLTK (C++), CEGUI (C++), Swing/JFC (Java), SWT (Java), JavaFX (Java), Tcl/Tk (Tcl), XUL (XML) aj. -
Pyqwt Documentation Release 5.2.1
PyQwt Documentation Release 5.2.1 Gerard Vermeulen July 18, 2010 CONTENTS 1 Introduction 1 1.1 NumPy................................................1 1.2 Qwt..................................................2 1.3 PyQwt with NumPy.........................................2 1.4 Getting help.............................................4 2 Installation 5 2.1 Source Code Installation.......................................5 3 PyQwt Reference Guide 9 3.1 PyQt4.Qwt5 ............................................9 3.2 PyQt4.Qwt5.qplt ........................................ 16 3.3 PyQt4.Qwt5.grace ....................................... 18 4 Copyright 19 5 Indices and Tables 21 Python Module Index 23 Index 25 i ii CHAPTER ONE INTRODUCTION PyQwt is a set of Python bindings for the Qwt library featuring fast plotting of Python lists and tuples and the powerful multi-dimensional arrays provided by NumPy, the fundamental package for efficient scientific and engi- neering computing in Python. 1 1.1 NumPy The NumPy package extends Python with multi-dimensional arrays and a complete set of ‘standard’ functions and operators to manipulate the arrays. NumPy turns Python into is an ideal language experimental numerical and scientific computing (as powerful as APL, MatLab, IDL and others, but much more elegant). If you do not have a mathematical background, you can think of a 1-dimensional array as a column in a spread- sheet. The spreadsheet lets you change whole columns element by element in one single statement. In a similar way, NumPy lets you change whole arrays element by element in one single statement as illustrated by the fol- lowing snippet: >>> import numpy as np >>> x= np.arange(0.0, 10.0, 3.0) >>> y= np.sin(x) >>> x array([ 0., 3., 6., 9.]) >>> y array([ 0. -
C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield
C++ GUI Programming with Qt 4, Second Edition by Jasmin Blanchette; Mark Summerfield Publisher: Prentice Hall Pub Date: February 04, 2008 Print ISBN-10: 0-13-235416-0 Print ISBN-13: 978-0-13-235416-5 eText ISBN-10: 0-13-714397-4 eText ISBN-13: 978-0-13-714397-9 Pages: 752 Table of Contents | Index Overview The Only Official, Best-Practice Guide to Qt 4.3 Programming Using Trolltech's Qt you can build industrial-strength C++ applications that run natively on Windows, Linux/Unix, Mac OS X, and embedded Linux without source code changes. Now, two Trolltech insiders have written a start-to-finish guide to getting outstanding results with the latest version of Qt: Qt 4.3. Packed with realistic examples and in-depth advice, this is the book Trolltech uses to teach Qt to its own new hires. Extensively revised and expanded, it reveals today's best Qt programming patterns for everything from implementing model/view architecture to using Qt 4.3's improved graphics support. You'll find proven solutions for virtually every GUI development task, as well as sophisticated techniques for providing database access, integrating XML, using subclassing, composition, and more. Whether you're new to Qt or upgrading from an older version, this book can help you accomplish everything that Qt 4.3 makes possible. • Completely updated throughout, with significant new coverage of databases, XML, and Qtopia embedded programming • Covers all Qt 4.2/4.3 changes, including Windows Vista support, native CSS support for widget styling, and SVG file generation • Contains -
Vysoke´Ucˇenítechnicke´V Brneˇ
VYSOKE´ UCˇ ENI´ TECHNICKE´ V BRNEˇ BRNO UNIVERSITY OF TECHNOLOGY FAKULTA INFORMACˇ NI´CH TECHNOLOGII´ U´ STAV INTELIGENTNI´CH SYSTE´ MU˚ FACULTY OF INFORMATION TECHNOLOGY DEPARTMENT OF INTELLIGENT SYSTEMS BEZDRA´TOVA´ SENZOROVA´ SI´Tˇ SESTAVENA´ Z KOMPONENT ARDUINO DIPLOMOVA´ PRA´ CE MASTER’S THESIS AUTOR PRA´ CE Bc. JAKUB Sˇ PLI´CHAL AUTHOR BRNO 2012 VYSOKE´ UCˇ ENI´ TECHNICKE´ V BRNEˇ BRNO UNIVERSITY OF TECHNOLOGY FAKULTA INFORMACˇ NI´CH TECHNOLOGII´ U´ STAV INTELIGENTNI´CH SYSTE´ MU˚ FACULTY OF INFORMATION TECHNOLOGY DEPARTMENT OF INTELLIGENT SYSTEMS BEZDRA´TOVA´ SENZOROVA´ SI´Tˇ SESTAVENA´ Z KOMPONENT ARDUINO WIRELESS SENSOR NETWORK WITH ARDUINO COMPONENTS DIPLOMOVA´ PRA´ CE MASTER’S THESIS AUTOR PRA´ CE Bc. JAKUB Sˇ PLI´CHAL AUTHOR VEDOUCI´ PRA´ CE Ing. JAN SAMEK, Ph.D. SUPERVISOR BRNO 2012 Abstrakt Diplomova´pra´ce se zaby´va´vytvorˇenı´m bezdra´tove´senzorove´sı´teˇsestavene´z komponent Arduino. Pra´ce obsahuje sezna´menı´s platformou Arduino a jejı´mi mozˇnostmi v kombinaci s bezdra´tovy´mi moduly XBee. Du˚lezˇitou cˇa´stı´pra´ce je na´vrh bezdra´tove´sı´teˇz teˇchto komponent a aplikace pro zobrazenı´nameˇrˇeny´ch hodnot ze senzorovy´ch uzlu˚. Cı´lem pra´ce je vytvorˇenı´senzorove´sı´teˇs dyna- mickou topologiı´a prozkouma´nı´jejı´ho chova´nı´v rea´lne´m prostrˇedı´a vytvorˇenı´aplikace pro ulozˇenı´ a zobrazenı´nameˇrˇeny´ch dat z jednotlivy´ch senzorovy´ch uzlu˚. Abstract This thesis deals with the creation of wireless sensor networks consisting of components Arduino. The work includes introduction to the Arduino platform and its capabilities in combination with the wireless XBee modules. -
Hard Real Time Quick EXAFS Data Acquisition with All Open Source Software on a Commodity Personal Computer Brookhaven National L
BNL-79366-2007-CP Hard Real Time Quick EXAFS Data Acquisition With All Open Source Software On A Commodity Personal Computer I. So, D.P. Siddons, W.A. Caliebe and S. Khalid Proceedings of Synchrotron Radiation Instrumentation (SRI 2007) Baton Rouge, LA / April 25 - 27, 2007 October 2007 National Synchrotron Light Source Brookhaven National Laboratory P.O. Box 5000 Upton, NY 11973-5000 www.bnl.gov Notice: This manuscript has been authored by employees of Brookhaven Science Associates, LLC under Contract No. DE-AC02-98CH10886 with the U.S. Department of Energy. The publisher by accepting the manuscript for publication acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this manuscript, or allow others to do so, for United States Government purposes. This preprint is intended for publication in a journal or proceedings. Since changes may be made before publication, it may not be cited or reproduced without the author’s permission. BNL-79366-2007-CP DISCLAIMER This report was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor any agency thereof, nor any of their employees, nor any of their contractors, subcontractors, or their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or any third party’s use or the results of such use of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. -
Squish Manual I
Squish Manual i Squish Manual Squish Manual ii COLLABORATORS TITLE : Squish Manual ACTION NAME DATE SIGNATURE WRITTEN BY April 10, 2009 REVISION HISTORY NUMBER DATE DESCRIPTION NAME Squish Manual iii Contents 1 Welcome 1 2 Release Notes 2 2.1 Version 3.4.4.....................................................2 2.1.1 General....................................................2 2.1.2 IDE......................................................2 2.1.3 Qt-specific..................................................3 2.1.4 Java-specific.................................................3 2.1.5 Web-specific.................................................3 2.1.6 Tk-specific..................................................3 2.1.7 Source Builds.................................................3 2.2 Version 3.4.3.....................................................4 2.2.1 General....................................................4 2.2.2 IDE......................................................4 2.2.3 Qt-specific..................................................5 2.2.4 Java-specific.................................................5 2.2.5 Web-specific.................................................5 2.2.6 Tk-specific..................................................5 2.2.7 Mac-specific (Cocoa/Carbon edition)....................................6 2.2.8 Source Builds.................................................6 2.3 Version 3.4.2.....................................................6 2.3.1 General....................................................6 2.3.2 Qt-specific..................................................7 -
Qwt User's Guide
Qwt User’s Guide 5.2.1 Generated by Doxygen 1.6.3 Sun Apr 11 11:55:10 2010 CONTENTS i Contents 1 Qwt - Qt Widgets for Technical Applications1 1.1 License............................................1 1.2 Platforms...........................................1 1.3 Screenshots..........................................1 1.4 Downloads..........................................1 1.5 Installation..........................................2 1.6 Support............................................2 1.7 Related Projects........................................2 1.8 Language Bindings......................................2 1.9 Donations...........................................2 1.10 Credits:............................................2 2 Qwt License, Version 1.03 3 INSTALL 11 4 Curve Plots 14 5 Scatter Plot 14 6 Spectrogram, Contour Plot 14 7 Histogram 14 8 Dials, Compasses, Knobs, Wheels, Sliders, Thermos 14 9 Deprecated List 14 10 Class Index 14 10.1 Class Hierarchy........................................ 14 11 Class Index 17 11.1 Class List........................................... 17 12 Class Documentation 20 12.1 QwtEventPattern::KeyPattern Class Reference........................ 20 12.1.1 Detailed Description................................. 21 12.2 QwtEventPattern::MousePattern Class Reference...................... 21 12.2.1 Detailed Description................................. 21 12.3 QwtAbstractScale Class Reference.............................. 21 Generated on Sun Apr 11 11:55:09 2010 for Qwt User’s Guide by Doxygen CONTENTS ii 12.3.1 Detailed -
Sviluppo Di Un Modulo Di Visualizzazione, Memorizzazione E Analisi Dati in Real-Time Con Elevato Parallelismo
ALMA MATER STUDIORUM – UNIVERSITA` DI BOLOGNA CAMPUS DI CESENA Scuola di Scienze Corso di Laurea in Ingegneria e Scienze Informatiche SVILUPPO DI UN MODULO DI VISUALIZZAZIONE, MEMORIZZAZIONE E ANALISI DATI IN REAL-TIME CON ELEVATO PARALLELISMO Relazione finale in PROGRAMMAZIONE AD OGGETTI Relatore Presentata da Prof. MIRKO VIROLI BAJRAM HUSHI Seconda Sessione di Laurea Anno Accademico 2014 – 2015 PAROLE CHIAVE Elements Elettrofisiologia Acquisizione Real Time Analisi in Real Time High Throughput Data Indice Introduzione ix 1 Elements s.r.l. 1 1.1 Chi `eElements . 1 1.2 Descrizione dispositivi . 1 1.3 Caratteristiche dei dispositivi . 2 1.3.1 Protocolli di tensione . 3 1.3.2 Connessione al PC . 3 1.4 Applicazioni in Elettrofisiologia . 3 1.4.1 I canali ionici [1] . 4 2 Tecnologie utilizzate 5 2.1 USB . 5 2.1.1 Descrizione USB . 5 2.1.2 Funzionamento USB 2.0 . 7 2.2 Framework QT . 8 2.3 FTDI . 9 2.4 EEPROM . 9 2.5 Repository . 9 3 Analisi Dei Requisiti 11 3.1 Descrizione del Sistema . 11 3.1.1 Prospettiva del Sistema . 11 3.1.2 Funzionalit`aPrincipali . 11 3.1.3 Requisiti richiesti dall'azienda . 12 3.1.4 Utente Finale . 12 3.1.5 Ambiente d'uso e Limitazioni . 12 3.1.6 Linguaggio e piattaforma di sviluppo . 13 3.2 Interfacciamento con l'esterno . 13 3.2.1 Interfaccia utente . 13 3.2.2 Interfaccia Hardware . 13 3.2.3 Interfaccia software . 13 v vi INDICE 3.3 Suddivisione in moduli . 14 3.3.1 Riconoscimento Dispositivi . 14 3.3.2 Acquisizione dati . -
Download Slides (PDF)
Chapter 9 Designing Graphical User Interfaces (GUIs) Overview • The basics of GUIs in Java • A tour of Java GUI libraries • Containers and components • Swing: the full picture • Layout managers • Understanding events and event listeners • Closing topics 2 The basics of GUIs in Java • What is a graphical user interface? Graphical User Interface (GUI) Vs. Command Line Interface (CLI) 3 The basics of GUIs in Java • Java has quite a number of GUI frameworks to build graphical • Mostly due to history • But also functional: – Some frameworks try to mimic the host system as closely as possible – Others go for fancy, modern look – Focus on robustness, simplicity versus performance (3D graphics etc.) 4 A tour of Java GUI libraries Abstract Window Toolkit (AWT) • Together with first Java release in 1995 • Provides a standard widget toolkit • Widgets: buttons, checkboxes, etc. • Thin layer above host operating system (“heavyweight components”): AWT is platform dependent • Also contains many other aspects: layout managers, event listeners, classes to deal with keyboard and mouse 5 A tour of Java GUI libraries Swing • Originally conceived as more advanced version of AWT • Not closely related to OS (“lightweight components”), written entirely in Java – There are still a few heavyweight components in Swing, more about these later • Thus: more customization options possible • Hence also includes drawing code (to draw lines, rectangles, etc.) • Implemented as an extension of AWT • But still tries to emulate the “look and feel” of the host OS • Old but