Nachtrag:
In deiner Slot Definition muss es natürlich
void testfunktion(const QString &testvar)
heißen.
Problem mit QComboBox
klappt irgendwie noch immer nicht.
der compiler zeigt folgende Fehlermeldung:
ui_untitled.h: In member function `void Ui_MainWindow::setupUi(QMainWindow*)':
ui_untitled.h:127: error: no matching function for call to `QObject::connect(QComboBox*&, const char[30], Ui_MainWindow* const, const char[31])'
Y:/Projekt/qt-win-opensource-src-4.2.0/qt-win-opensource-src-4.2.0/include/QtCore/../../src/corelib/kernel/qobject.h:181: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
Y:/Projekt/qt-win-opensource-src-4.2.0/qt-win-opensource-src-4.2.0/include/QtCore/../../src/corelib/kernel/qobject.h:283: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
mingw32-make[1]: *** [debug\main.o] Error 1
mingw32-make[1]: Leaving directory `Y:/Projekt/Sourcecode/qtdesigner'
mingw32-make: *** [debug] Error 2
ne idee woran es liegt?
Wieso soll ich nichts in der ui_.h ändern? ist es nicht egal?
der compiler zeigt folgende Fehlermeldung:
ui_untitled.h: In member function `void Ui_MainWindow::setupUi(QMainWindow*)':
ui_untitled.h:127: error: no matching function for call to `QObject::connect(QComboBox*&, const char[30], Ui_MainWindow* const, const char[31])'
Y:/Projekt/qt-win-opensource-src-4.2.0/qt-win-opensource-src-4.2.0/include/QtCore/../../src/corelib/kernel/qobject.h:181: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
Y:/Projekt/qt-win-opensource-src-4.2.0/qt-win-opensource-src-4.2.0/include/QtCore/../../src/corelib/kernel/qobject.h:283: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
mingw32-make[1]: *** [debug\main.o] Error 1
mingw32-make[1]: Leaving directory `Y:/Projekt/Sourcecode/qtdesigner'
mingw32-make: *** [debug] Error 2
ne idee woran es liegt?
Wieso soll ich nichts in der ui_.h ändern? ist es nicht egal?
wenn ich in meiner klasse oben aus das:
das mache
dankk kommt wenigstens kein compilerfehler mehr, aber das programm tut nicht das was ich von ihm erwarte.
Kann mir das bitte einer erklären?
Code: Alles auswählen
class Ui_MainWindow
Code: Alles auswählen
class Ui_MainWindow : public QObject
Kann mir das bitte einer erklären?