A text label where a url can specified. More...

#include <Widgets.h>

Public Slots

void setUrl (const QString &u)
 

Public Member Functions

QString url () const
 
 UrlLabel (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~UrlLabel ()
 

Protected Member Functions

void enterEvent (QEvent *)
 
void leaveEvent (QEvent *)
 
void mouseReleaseEvent (QMouseEvent *)
 

Properties

QString url
 

Detailed Description

A text label where a url can specified.

When the user clicks on the text label the system browser gets opened with the specified url.

This can be used for e.g. in the about dialog where the url of the maintainer of an application can be specified.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ UrlLabel()

UrlLabel::UrlLabel ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

◆ ~UrlLabel()

UrlLabel::~UrlLabel ( )
virtual

Member Function Documentation

◆ enterEvent()

void UrlLabel::enterEvent ( QEvent )
protected

◆ leaveEvent()

void UrlLabel::leaveEvent ( QEvent )
protected

◆ mouseReleaseEvent()

void UrlLabel::mouseReleaseEvent ( QMouseEvent *  )
protected

◆ setUrl

void UrlLabel::setUrl ( const QString &  u)
slot

◆ url()

QString Gui::UrlLabel::url ( ) const

Property Documentation

◆ url


The documentation for this class was generated from the following files:
  • src/Gui/Widgets.h
  • src/Gui/Widgets.cpp