Qt 5.10 Book Examples
Signals | Public Member Functions | Properties | List of all members
Calculation Class Reference

#include <Calculation.h>

Inheritance diagram for Calculation:

Signals

void inputValueChanged (qulonglong)
 
void resultValueChanged (qulonglong)
 

Public Member Functions

 Calculation (QObject *pobj=0)
 
Q_INVOKABLE qulonglong factorial (const qulonglong &n)
 
qulonglong inputValue () const
 
void setInputValue (const qulonglong &)
 
qulonglong resultValue () const
 

Properties

qulonglong input
 
qulonglong result
 

Detailed Description

Definition at line 16 of file Calculation.h.

Constructor & Destructor Documentation

◆ Calculation()

Calculation::Calculation ( QObject *  pobj = 0)

Definition at line 14 of file Calculation.cpp.

Member Function Documentation

◆ factorial()

qulonglong Calculation::factorial ( const qulonglong &  n)

Definition at line 21 of file Calculation.cpp.

◆ inputValue()

qulonglong Calculation::inputValue ( ) const

Definition at line 27 of file Calculation.cpp.

◆ inputValueChanged

void Calculation::inputValueChanged ( qulonglong  )
signal

◆ resultValue()

qulonglong Calculation::resultValue ( ) const

Definition at line 33 of file Calculation.cpp.

◆ resultValueChanged

void Calculation::resultValueChanged ( qulonglong  )
signal

◆ setInputValue()

void Calculation::setInputValue ( const qulonglong &  n)

Definition at line 39 of file Calculation.cpp.

Property Documentation

◆ input

qulonglong Calculation::input
readwrite

Definition at line 22 of file Calculation.h.

◆ result

qulonglong Calculation::result
read

Definition at line 25 of file Calculation.h.


The documentation for this class was generated from the following files: