![]() |
2010-08-23
, 16:45
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#1
|
![]() |
2010-08-24
, 15:22
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#2
|
(gdb) run Starting program: /home/figa/workspace/project/program free(): invalid pointer 0x9b86600! Segmentation fault (core dumped)
#include <QApplication> #include "window.cpp" int main(int argc, char *argv[]) { QApplication app(argc, argv); Window window; window.show(); return app.exec(); }
#ifndef WINDOW_H #define WINDOW_H #include <QMainWindow> #include <QComboBox> #include <QWidget> #include <QObject> #include <QPushButton> #include <QLabel> #include <QFont> #include <QHBoxLayout> #include <QSignalMapper> class Window : public QMainWindow { Q_OBJECT public: Window(); ~Window(); }; #endif //WINDOW_H
#include <QtGui> #include <QAction> #include <QWidget> #include <QMainWindow> #include "window.h" Window::Window() : QMainWindow() { } Window::~Window() { }
![]() |
2010-08-30
, 21:34
|
Posts: 317 |
Thanked: 787 times |
Joined on Oct 2009
@ Krakow, Poland
|
#3
|
Window window;
Window window = new Window();