Here's sortdialog.h:
class SortDialog
: public QDialog, Ui
::Dialog{
Q_OBJECT
public:
private slots:
void moreClicked(); // added a slot
};
class SortDialog : public QDialog, Ui::Dialog
{
Q_OBJECT
public:
SortDialog(QWidget *parent = 0);
void setColumnRange(QChar first, QChar last);
private slots:
void moreClicked(); // added a slot
};
To copy to clipboard, switch view to plain text mode
And here's the constructor and the slot:
SortDialog
::SortDialog(QWidget *parent
){
setupUi(this);
setFixedSize(400,150);
buttonBox->setFixedSize(81, 100); // change size in your form
More
->move
(QPoint(290,
55));
// move this pushbutton in your formconnect(More,SIGNAL(clicked()),this,SLOT(moreClicked()));
setColumnRange('A', 'Z');
}
void SortDialog::moreClicked(){
setFixedSize(400,426); // resize dialog to show all group boxes using original size from ui_sortdialog.h
}
SortDialog::SortDialog(QWidget *parent)
: QDialog(parent)
{
setupUi(this);
setFixedSize(400,150);
buttonBox->setFixedSize(81, 100); // change size in your form
More->move(QPoint(290,55)); // move this pushbutton in your form
connect(More,SIGNAL(clicked()),this,SLOT(moreClicked()));
setColumnRange('A', 'Z');
}
void SortDialog::moreClicked(){
setFixedSize(400,426); // resize dialog to show all group boxes using original size from ui_sortdialog.h
}
To copy to clipboard, switch view to plain text mode
You can move "More" and change the size of the button box in your form and do away those two statements.
Bookmarks