Is there a way to get heob to ignore QT memory leaks? It is quite difficult to find my memory leaks in amongst all the QT leaks. The following code generates 151 memory leaks with Qt 6.1.0 MinGW 64-bit.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
{
Q_OBJECT
public:
~MainWindow() {}
};
#endif // MAINWINDOW_H
#include "mainwindow.h"
#include <QApplication>
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr): QMainWindow(parent) {}
~MainWindow() {}
};
#endif // MAINWINDOW_H
#include "mainwindow.h"
#include <QApplication>
To copy to clipboard, switch view to plain text mode
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks