Skip to content

Compiling on QT6 #2

@signetica

Description

@signetica

So QT6 wants QFILE included like so:

diff --git a/gpucompute.cpp b/gpucompute.cpp
index 5170250..f7d2dab 100644
--- a/gpucompute.cpp
+++ b/gpucompute.cpp
@@ -1,5 +1,6 @@
 #include "mainwindow.h"
 #include "ui_mainwindow.h"
+#include <QFile>
 #include <QProgressDialog>
 #include <QMessageBox>

or I get:

gpucompute.cpp:49:9: error: variable has incomplete type 'QFile'
49 | QFile kf(":/mandelbrot.cl");
| ^
/usr/local/include/qt6/QtGui/qevent.h:33:7: note: forward declaration of 'QFile'
33 | class QFile;

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions