Unsolved [Linux] QDebug doesn't work
-
Hello,
I've recently made the switch to Linux (Ubuntu, Budgie Remix) and downloaded and installed Qt with the installer provided on their website. I've successfully managed to get Qt to run and I can also compile programs and run them. However, for some reason I can't use QDebug to print text. I don't get any error and the Qt window opens without problem, but the QDebug function doesn't seem to properly work for some reason. Is it possible that I need to install some additional dependency for that to work? Or what might I be missing? This is the program, but I don't think there is any error in there:
#include "mainwindow.hpp" #include "ui_mainwindow.h" #include <QDebug> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); qDebug() << "Hello"; } MainWindow::~MainWindow() { delete ui; }
-
-
@SGaist Hello,
I am using Ubuntu 17.10 and Qt 10.0.1. In the link you sent someone said that they should set "QT_LOGGING_TO_CONSOLE=1", but I'm a bit confused about where exactly to put that? Which tab in "Environment" do I need to select? -
If using Qt Creator, the Run part of the Project panel.
-
@SGaist Okay I just tried this. It sadly didn't fix the issue.
-
Are you using the Qt Creator provided with the installer ?
-