QT中QWidget类参考!(7)
2023-06-03 来源:旧番剧
void erase ( int x, int y, int w, int h )
void erase ( const QRect & r )
void erase ( const QRegion & reg )
void scroll ( int dx, int dy )
void scroll ( int dx, int dy, const QRect & r )
void drawText ( int x, int y, const QString & str )
void drawText ( const QPoint & pos, const QString & str )
QWidget * focusWidget () const
QRect microFocusHint () const
bool acceptDrops () const
virtual void setAcceptDrops ( bool on )
virtual void setAutoMask ( bool )
bool autoMask () const
enum BackgroundOrigin { WidgetOrigin, ParentOrigin, WindowOrigin }
virtual void setBackgroundOrigin ( BackgroundOrigin )
BackgroundOrigin backgroundOrigin () const
virtual bool customWhatsThis () const
QWidget * parentWidget ( bool sameWindow = FALSE ) const
WFlags testWFlags ( WFlags f ) const
QWidget * childAt ( int x, int y, bool includeThis = FALSE ) const
QWidget * childAt ( const QPoint & p, bool includeThis = FALSE ) const