Qt 5.10 Book Examples
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CustomWidget Class Reference

#include <CustomWidget.h>

Inheritance diagram for CustomWidget:

Public Slots

void slotSetProgress (int n)
 

Signals

void progressChanged (int)
 

Public Member Functions

 CustomWidget (QWidget *pwgt=0)
 
virtual QSize sizeHint () const
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *)
 

Protected Attributes

int m_nProgress
 

Detailed Description

Definition at line 16 of file CustomWidget.h.

Constructor & Destructor Documentation

◆ CustomWidget()

CustomWidget::CustomWidget ( QWidget *  pwgt = 0)

Definition at line 15 of file CustomWidget.cpp.

Member Function Documentation

◆ paintEvent()

void CustomWidget::paintEvent ( QPaintEvent *  )
protectedvirtual

Definition at line 25 of file CustomWidget.cpp.

◆ progressChanged

void CustomWidget::progressChanged ( int  )
signal

◆ sizeHint()

QSize CustomWidget::sizeHint ( ) const
virtual

Definition at line 54 of file CustomWidget.cpp.

◆ slotSetProgress

void CustomWidget::slotSetProgress ( int  n)
slot

Definition at line 46 of file CustomWidget.cpp.

Member Data Documentation

◆ m_nProgress

int CustomWidget::m_nProgress
protected

Definition at line 19 of file CustomWidget.h.


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