[Kde-bindings] Qt, Qyoto buttons work intermediately
linuxoidoz at yahoo.com.au
linuxoidoz at yahoo.com.au
Sun Feb 14 05:46:03 UTC 2010
Don't know if this is a Qyoto bug or I'm doing something wrong. When I build my project and click buttons sometimes they work, sometimes they don't. If I rebuild it, then they might start working or stop. Really strange.
I have these functions:
QObject.Connect(btnSource, Qt.SIGNAL("clicked()"), MainWindow, Qt.SLOT("GetSource(MainWindow)"));
QObject.Connect(btnAbout, Qt.SIGNAL("clicked()"), MainWindow, Qt.SLOT("ShowAbout(MainWindow)"));
[Q_SLOT]
private void ShowAbout(QMainWindow win) {
QMessageBox.About(win, "About", "About Project");
}
[Q_SLOT]
private void GetSource(QMainWindow win) {
fileDialog = new QFileDialog(win);
string folderPath = "";
folderPath = fileDialog.Directory().ToString();
}
The ShowAbout sometimes shows the message, sometimes it doesn't, the GetSource never works. What am I doing wrong? Thank you.
More information about the Kde-bindings
mailing list