You are not logged in.
Hi everybody,
I'm tyring to learn Qt and working with C++ but when I try to run my application which is below:
//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();
}
};
after compiling it, I get that error :
#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 and host-based authentication failed
I'm new on linux an Qt so what does the error mean? How can I fix that?
Last edited by unicod3 (2013-10-06 02:20:02)
Offline
At first glance it appears you need to add
dbus-launch
somewhere. I'd try it before the command to run your qt app as a start.
If you just use a window manager not a desktop environment add dbus-launch to however you start that and see what happens.
You're just jealous because the voices only talk to me.
Offline
It did not work, still gives the error and I have xfce and gnome 3 on my Arch. It gives the same result in the both of my desk. environment
Offline