5#ifndef QSTACKEDWIDGET_H
6#define QSTACKEDWIDGET_H
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtWidgets/qframe.h>
15class QStackedWidgetPrivate;
21 Q_PROPERTY(
int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentChanged)
22 Q_PROPERTY(
int count READ count)
24 explicit QStackedWidget(QWidget *parent =
nullptr);
27 int addWidget(QWidget *w);
28 int insertWidget(
int index, QWidget *w);
29 void removeWidget(QWidget *w);
31 QWidget *currentWidget()
const;
32 int currentIndex()
const;
34 int indexOf(
const QWidget *)
const;
35 QWidget *widget(
int)
const;
39 void setCurrentIndex(
int index);
40 void setCurrentWidget(QWidget *w);
43 void currentChanged(
int);
44 void widgetRemoved(
int index);
45 void widgetAdded(
int index);
48 bool event(QEvent *e) override;
51 Q_DISABLE_COPY(QStackedWidget)
52 Q_DECLARE_PRIVATE(QStackedWidget)
The QComboBox widget combines a button with a dropdown list.
QFileDialogComboBox(QWidget *parent=nullptr)
QStringList history() const
void setHistory(const QStringList &paths)
void setFileDialogPrivate(QFileDialogPrivate *d_pointer)
void showPopup() override
Displays the list of items in the combobox.
void paintEvent(QPaintEvent *) override
\reimp
void keyPressEvent(QKeyEvent *e) override
FIXME: this is a hack to avoid propagating key press events to the dialog and from there to the "Ok" ...
void setFileDialogPrivate(QFileDialogPrivate *d_pointer)
QFileDialogLineEdit(QWidget *parent=nullptr)
void setFileDialogPrivate(QFileDialogPrivate *d_pointer)
QSize sizeHint() const override
QFileDialogListView(QWidget *parent=nullptr)
void keyPressEvent(QKeyEvent *e) override
void keyPressEvent(QKeyEvent *e) override
QSize sizeHint() const override
QFileDialogTreeView(QWidget *parent)
void setFileDialogPrivate(QFileDialogPrivate *d_pointer)
The QFileDialog class provides a dialog that allows users to select files or directories.
The QListView class provides a list or icon view onto a model.
The QTreeView class provides a default model/view implementation of a tree view.
QT_REQUIRE_CONFIG(animation)
static QUrl _qt_get_directory(const QUrl &url, const QFileInfo &local)
static void _qt_init_lastVisited()
QStringList qt_strip_filters(const QStringList &filters)
QStringList qt_make_filter_list(const QString &filter)
static QString fileFromPath(const QString &rootPath, QString path)
static bool isCaseSensitiveFileSystem(const QString &path)
QT_REQUIRE_CONFIG(filedialog)
QT_REQUIRE_CONFIG(thread)
QT_REQUIRE_CONFIG(treeview)
QFileDialogArgs(const QUrl &url={})