Web Analytics Made Easy - Statcounter
Skip to content

Class SBGWidgetFileSelector#

ClassList > SBGWidgetFileSelector

More...

  • #include <SBGWidgetFileSelector.hpp>

Inherits the following classes: QWidget

Public Slots#

Type Name
slot void onBrowse

Public Signals#

Type Name
signal void pathChanged

Public Functions#

Type Name
SBGWidgetFileSelector (QWidget * parent=nullptr)
Constructs a path selector widget.
QString getFilePath ()
Returns the path.
QString getLabel () const
Returns the label shown in the selector.
void setFilePath (const QString & path)
Sets the path.
void setLabel (const QString & label)
Sets the label shown in the selector.
virtual ~SBGWidgetFileSelector ()
Destructs the path selector widget.

Public Static Functions#

Type Name
bool checkFile (const QString & path, bool askUser)
Check whether the file exists.

Detailed Description#

The SBGWidgetFileSelector class is a convenience widget for specifying a file path - it contains a label, a line edit and a push button to browse for a file.

Short name: SBFileSelector

Public Slots Documentation#

slot onBrowse#

void onBrowse;

Public Signals Documentation#

signal pathChanged#

void pathChanged;

Public Functions Documentation#

function SBGWidgetFileSelector#

Constructs a path selector widget.

SBGWidgetFileSelector::SBGWidgetFileSelector (
    QWidget * parent=nullptr
) 


function getFilePath#

Returns the path.

QString SBGWidgetFileSelector::getFilePath () 


function getLabel#

Returns the label shown in the selector.

QString SBGWidgetFileSelector::getLabel () const


function setFilePath#

Sets the path.

void SBGWidgetFileSelector::setFilePath (
    const QString & path
) 


function setLabel#

Sets the label shown in the selector.

void SBGWidgetFileSelector::setLabel (
    const QString & label
) 


function ~SBGWidgetFileSelector#

Destructs the path selector widget.

virtual SBGWidgetFileSelector::~SBGWidgetFileSelector () 


Public Static Functions Documentation#

function checkFile#

Check whether the file exists.

static bool SBGWidgetFileSelector::checkFile (
    const QString & path,
    bool askUser
)