ERLEDIGT
NEIN
NEIN
ANTWORTEN
2
2
ZUGRIFFE
352
352
EMPFEHLEN
-
Hallo,
Ich probiere gerade Qt zu lernen.
Ich habe schon ein Programm hinbekommen, aber bei dem Menü stehe ich jetzt an.
Ich habe 3 Dateien und da die eh sehr kurz sind kann ich sie ja hier hoffentlich posten.
mathematik.h:
Code :1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef MATHEMATIK_H #define MATHEMATIK_H #include <QWidget> #include <QMainWindow> #include <QTextEdit> #include <QMenu> #include <QMenuBar> class mathematik : public QMainWindow { Q_OBJECT public: mathematik( QMainWindow *parent = 0, Qt::WindowFlags flags = 0); QTextEdit* editor; }; #endif // MATHEMATIK_H
main.cpp
Code :1 2 3 4 5 6 7 8 9
#include <QApplication> #include "mathematik.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); mathematik* window = new mathematik; window->show(); return app.exec(); }
mathematik.cpp
Code :1 2 3 4 5 6 7 8 9 10 11
#include "mathematik.h" #include <QApplication> mathematik::mathematik( QMainWindow *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags) { editor = new QTextEdit; resize(320, 200); setCentralWidget(editor); setWindowTitle("Notizen"); QMenu *fileMenu = new QMenu(tr("&Datei"), this); menuBar()->addMenu(fileMenu); }
Und dann noch die Fehlermeldung vom Creator:
collect2: ld returned 1 exit status
Aso noch das Betriebssystem: Windows7
mfgGeändert von kannaum (18.01.10 um 18:18 Uhr)
-
18.01.10 19:14 #2
- Registriert seit
- Jun 2005
- Beiträge
- 8.168
If at first you don't succeed, try again. Then quit. No use being a damn fool about it.
-
Jetzt verstehe ich gar ncihts mehr.
Heute habe ich es wieder versucht und es ist anstandslos gegangen.
mfg
Ähnliche Themen
-
Fehler in Menü?
Von Jan-Frederik Stieler im Forum Flash PlattformAntworten: 2Letzter Beitrag: 28.04.08, 14:26 -
Tabbed Menü, wo is der Fehler?
Von IR-Bastian im Forum CSSAntworten: 2Letzter Beitrag: 16.05.07, 13:26 -
Fehler in Tree-Menü
Von mjb im Forum PHPAntworten: 4Letzter Beitrag: 07.07.05, 23:06 -
Fehler bei Gallerie-Menü
Von matthiasschnueriger im Forum PHPAntworten: 3Letzter Beitrag: 19.11.04, 14:18 -
Fehler im Menü
Von Regis im Forum Javascript & AjaxAntworten: 2Letzter Beitrag: 20.11.01, 18:32





Zitieren

Login






