Qt, C++: GConf-WARNING **: клиенту не удалось подключиться к демону D-BUS

Я пытаюсь создать приложение формы под Arch Linux с Qt и C++, но когда я пытаюсь запустить свое приложение, которое ниже:

firstWindow.h

#include <QMainWindow>
#include <QLabel>
#include <QPushButton>
#include <QLineEdit>
#include <QLayout>

class firstWindow:public QMainWindow
{
    Q_OBJECT

    public:
        QLabel       *lbl;
        QPushButton  *btn;
        QLineEdit    *row;

    firstWindow():QMainWindow()
    {
        setWindowTitle("First Window");
        QWidget *win = new QWidget(this);
        setCentralWidget(win);

        lbl = new QLabel("Hello Universe", win);
        btn = new QPushButton("Click Click", win);
        row = new QLineEdit(win);

        QVBoxLayout *main = new QVBoxLayout(win);
        main->addWidget(win);

        QHBoxLayout *nextTo = new QHBoxLayout();
        nextTo->addWidget(row);
        nextTo->addWidget(btn);
        main->addLayout(nextTo);

        resize(200,50);
        win->show();
    }
};

После компиляции я получаю эту ошибку:

#qmake -project
#qmake
#make
# ./QtFirstWindow
(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(process:21806): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported

Он не останавливает и не убивает приложение, но также не запускает его. Я думаю, что ошибка не в коде, который я написал, потому что это небольшой пример. Так как я могу справиться с этим? Любая идея?

0 ответов

Другие вопросы по тегам