![]() |
Re: Need assistance from QT / Python programmer
Another solution:
Code:
arguments << ui->Transition->currentText() << ui->Font->currentText() << ui->Color->currentText() << QVariant(ui->checkBoxActivate->isChecked()).toString()); |
Re: Need assistance from QT / Python programmer
Quote:
untermintaed argument list invoking macro "SIGNAL" - in constructor 'MainWindow::MainWindow(QWidget*): 'process' was not declared in this scope 'SIGNAL' was not declared in this scope expected ; at end of input expected } at end of input The code is looking like this (mainwindow.cpp): http://www.pastie.org/1048648 |
Re: Need assistance from QT / Python programmer
Modified the code (bit ugly :P): http://www.pastie.org/1048658
So you have to define progress as member variable to be able to access it in two methods. You can't make connection in constructor because process is defined in method, it's not member variable of MainWindow (of course you can make it a member variable). |
Re: Need assistance from QT / Python programmer
Quote:
But after putting this: Code:
private: 'QProgressDialog' does not name a type |
Re: Need assistance from QT / Python programmer
mainwindow.h
Code:
#include <QProgressDialog> |
Re: Need assistance from QT / Python programmer
Quote:
Now I'm getting this: "ISO C++ forbids declaration of 'processFinished' with no type" "no 'int MainWindow::processFinished(int)' member function declared in class 'MainWindow' Edit: both errors are pointing at row 34 @ mainwindow.cpp And the code is like this (mainwindow.cpp): http://www.pastie.org/1049376 (mainwindow.h): http://www.pastie.org/1049377 |
Re: Need assistance from QT / Python programmer
Forget to put return value to method. :D
http://www.pastie.org/1049378 E: You have to add method declaration to mainwindow.h: http://www.pastie.org/1049383 |
Re: Need assistance from QT / Python programmer
Quote:
ävoid QWidget::destryi(book, bool)' is protected. |
Re: Need assistance from QT / Python programmer
Just use progress.close().
|
Re: Need assistance from QT / Python programmer
Quote:
Almost there with this: - progress bar is showing up and everything looks fine Only problem is that it won't run the script anymore. No errors no nothing, it just won't start :D |
All times are GMT. The time now is 23:12. |
vBulletin® Version 3.8.8