int main(int argv, char * argc[])
{
window
->setGeometry
(QRect(200,
200,
300,
300));
window->setWindowTitle("QFileDialog example");
window->setMaximumSize(300,300);
window->setMinimumSize(300,300);
newFile
->setGeometry
(QRect(50,
25,
250,
35));
saveFile
->setGeometry
(QRect(50,
75,
250,
35));
layout->addWidget(newFile,0,0,1,1,Qt::AlignHCenter);
layout->addWidget(saveFile,1,0,1,1,Qt::AlignHCenter);
window->connect(...); // ?
window->setLayout(layout);
window->show();
int main(int argv, char * argc[])
{
QApplication app(argv,argc);
QWidget* window = new QWidget;
window->setGeometry(QRect(200,200,300,300));
window->setWindowTitle("QFileDialog example");
window->setMaximumSize(300,300);
window->setMinimumSize(300,300);
QPushButton *newFile = new QPushButton("New File Dialog");
newFile->setGeometry(QRect(50,25,250,35));
QPushButton *saveFile = new QPushButton("Save File Dialog");
saveFile->setGeometry(QRect(50,75,250,35));
QGridLayout *layout = new QGridLayout;
layout->addWidget(newFile,0,0,1,1,Qt::AlignHCenter);
layout->addWidget(saveFile,1,0,1,1,Qt::AlignHCenter);
window->connect(...); // ?
window->setLayout(layout);
window->show();
To copy to clipboard, switch view to plain text mode
window->connect(newFile,SIGNAL(cliecked()),newFile,SLOT( myImaginedFunc()));
window->connect(newFile,SIGNAL(cliecked()),newFile,SLOT( myImaginedFunc()));
To copy to clipboard, switch view to plain text mode
doesn't work because it calls:
Bookmarks