QT中QWidget类参考!(5)
2023-06-03 来源:旧番剧
QString caption () const
const QPixmap * icon () const
QString iconText () const
bool hasMouseTracking () const
bool hasMouse () const
virtual void setMask ( const QBitmap & bitmap )
virtual void setMask ( const QRegion & region )
void clearMask ()
const QColor & backgroundColor () const (obsolete)
virtual void setBackgroundColor ( const QColor & c ) (obsolete)
const QPixmap * backgroundPixmap () const (obsolete)
virtual void setBackgroundPixmap ( const QPixmap & pm ) (obsolete)
enum FocusPolicy { NoFocus = 0, TabFocus = 0x1, ClickFocus = 0x2, StrongFocus = 0x3, WheelFocus = 0x7 }
bool isActiveWindow () const
virtual void setActiveWindow ()
bool isFocusEnabled () const
FocusPolicy focusPolicy () const
virtual void setFocusPolicy ( FocusPolicy )
bool hasFocus () const
virtual void setFocusProxy ( QWidget * w )
QWidget * focusProxy () const
void grabMouse ()
void grabMouse ( const QCursor & cursor )