Home > Programming > C Programming Language



Image Processing & GUI Programming with Qt Why learn Qt? Qt Demos ...

Sort Desciption:

Programming with Qt. Edgardo Molina. CCNY. Why learn Qt? . ObjectOriented C++ GUI library (and more). . Crossplatform (WindowsMacLinux) ...



Content Inside:

Image Processing & GUI Programming with Qt Why learn Qt? Qt Demos EventDriven ProgrammingPage 11Image Processing & GUIProgramming with QtEdgardo MolinaCCNYWhy learn Qt?ObjectOriented C++ GUI library (and more)Crossplatform (WindowsMacLinux)Open Source & Commercial licensesResources: Documentation Mailing ListsForums etcUsed in industry:Adobe Google KDE Skype http://trolltech.com/products/qt/qtinuse/q tcustomersQt DemosMainwindowAffine TransformationsText EditorOpenGLEventDriven ProgrammingImperativemain() {step1();step2();return 0;}EventDrivenwhile(true) {processevent(Queue);setState();}Page 22EventDriven ProgrammingIn imperative programming the programmer has control of theorder of execution of functions. With eventdriven programmingthe user interaction determines the order of execution.EventDriven programs consist of an eventloop and an eventqueue.EventLoop: an infinite loop that either waits for events orprocesses events in the eventqueue.EventQueue: a queue which receives its input from userinteraction sensors or other events.GUIs are implemented using eventdriven programmingparadigmInstalling QtDownload Qt for your platformNote: The Windows opensource version onlyworks with Mingw compiler included in theinstaller.On Windows run installerMay need to add Qt libs to your environmentvariables if installer does not do so.On Mac and Linux follow instructions to buildProgramming with QtCODECompilingSave all your source files to a folder.Open your commandline:% cd /path/sourcecode/% qmake project% qmake% makeRun the executable or fix any errorsPage 33Programming with QtSignals and SlotsClasses must use the Q_OBJECT macro when using signalsslotsProgramming with QtQt provides some garbage collection. Thisonly works if you pass a parent to the classconstructors.QImage data allocated with new must bereleased manually with delete.QImageOpen an image: Qimage img(C:pathpic.jpg);Save an image: img.save(C:pathpic2.jpg);Read a pixel: QRgb colors = img.pixel(ij);Re ...

Source: www-cs.ccny.cuny.edu


add to Google Reader add to Google Bookmark add to bloglines add to newsgator add to FURL add to digg add to webnews add to Netscape add to Yahoo MyWeb add to spurl.net add to diigo Bookmark newsvine Bookmark del.icio.us Bookmark @ SIMPIFY Bookmark MISTER WONG Bookmark Linkarena Bookmark icio.de Bookmark oneview Bookmark folkd.com Bookmark yigg.de Bookmark reddit Bookmark StumbleUpon Bookmark Slashdot Bookmark blinklist Bookmark technorati add to blogmarks add to blinkbits add to ma.gnolia add to smarking.com add to netvouz add to co.mments add to Connotea add to de.lirio.us

 

Related Files

Programming in C C++ Java

Filed under: Programming and C Programming Language
Programming in C C++ Java. Course Overview. Object oriented programming languages are widely used for the development of complex software systems. ...

C Programming

Filed under: Programming and C Programming Language
The C Programming Language ANSI C. By Brian W. C. Kernighan & Dennis M. Ritchie. K and R. "Practical C programming". By Steve ...

An Overview of the C++ Programming Language

Filed under: Programming and C Programming Language
The C++ programming language provides a model of memory and computation that ... 3 The C Programming Model presents the C subset of C++ and other C++ ...

C Programming Fundamentals

Filed under: Programming and C Programming Language
1 C Programming Fundamentals C is a compiled language. The user creates source code (often ... exe extension). Below is typical C program called LED.C that illustrates some fundamental C ...

Essential C

Filed under: Programming and C Programming Language
C Programming Language (below) as part of their research at AT&T. Unix and C++ ... The C Programming Language 2nd ed. by Kernighan and Ritchie. ...