[Qt-creator] Why not open the signals in Utils::PathChooser class

kevin.wangbing at nokia.com kevin.wangbing at nokia.com
Fri Aug 20 08:16:57 CEST 2010


Hi,

I need a widget that can provide 2 accesses to specify a file path: user can input the file path directly or browse all files then select one.
In addition, that widget can validate the file path and sent relative signals to other widgets.

I find the Utils::PathChooser class satisfy my needs except sending signal.

The declaration of Utils::PathChooser reserve the signals for itself rather than open them.

qt-creator/src/libs/utils/pathchooser.h
========================================================
...............
private:
  ...............
signals:
    void validChanged();
    void validChanged(bool validState);
    void changed(const QString &text);
    void editingFinished();
    void beforeBrowsing();
    void browsingFinished();
void returnPressed();
...............
========================================================

I think Utils::PathChooser is very valuable in specifying file path scene, and the validChanged() signal is the key to link the widget to others.
So I suggest that opening the signals in Utils::PathChooser class to extend the using scope.

B.R.
Kevin Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100820/fa3ce68e/attachment.html 


More information about the Qt-creator-old mailing list