qt +linux

K

klops

hi :)

i've something like this

class Klasa1
{
Q_OBJECT
private:
public:
public slots:
        void funkcja(); 
};

class KlasaDialog : public QDialog
{
private:
        QDialog *dlg;
        QComboBox *box;
public:
        KlasaDialog(QWidget *parent)
        {
                dlg=new QDialog(parent,"nazwa");
                box=new QComboBox(dlg,"nazwa_combo");

//important
                connect(box,SIGNAL(activated(int)), this, SLOT(jakas_funkcja()));
        }
public slots:
        int jakas_funkcja();
};

void Klasa1::funkcja1()
{
        KlasaDialog dialog(this);
}

and i don't know why when the program runs, it generate error: "No such
slot: QDialog::jakas_funkcja()" :(((

how connect's it??
 
M

Merrill & Michele

klops said:
hi :)

i've something like this

class Klasa1
{
Q_OBJECT
private:
public:
public slots:
void funkcja();
};

class KlasaDialog : public QDialog
{
private:
QDialog *dlg;
QComboBox *box;
public:
KlasaDialog(QWidget *parent)
{
dlg=new QDialog(parent,"nazwa");
box=new QComboBox(dlg,"nazwa_combo");

//important
connect(box,SIGNAL(activated(int)), this, SLOT(jakas_funkcja()));
}
public slots:
int jakas_funkcja();
};

void Klasa1::funkcja1()
{
KlasaDialog dialog(this);
}

and i don't know why when the program runs, it generate error: "No such
slot: QDialog::jakas_funkcja()" :(((

how connect's it??

One is always happy to see new faces enter the forum. Object orientation on
linux has to be a rough road, but I think you'll find better help elsewhere.
MPJ
 
K

Keith Thompson

klops said:
hi :)

i've something like this

class Klasa1
[...]

That's C++, not C. They might be able to help you in comp.lang.c++.

Before you post there, you should make sure your article contains only
printable 7-bit ASCII characters. In my newsreader, your indentation
showed up as strings of '?' characters.
 
F

Flash Gordon

hi :)

i've something like this

class Klasa1
{
Q_OBJECT

Well, since C does not have classes I don't know what you think it has
to do with C.

and i don't know why when the program runs, it generate error: "No
such slot: QDialog::jakas_funkcja()" :(((

how connect's it??

Try asking on a QT group or mailing list. When you have C++ questions
(as opposed to QT questions) ask in comp.lang.c++, but don't bring
either QT or C++ questions here.
 
R

Randy Howard

hi :)

i've something like this

class Klasa1

This is incredibly off-topic for c.l.c. Try the mailing list for QT
programmers, available on the trolltech website.
 
C

Charlie Gordon

klops said:
hi :)

i've something like this

class Klasa1
{ ....
}

Jinx! now I have to clean my keyboard and screen again.
Please don't post C++ code here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,404
Latest member
PerryRutt

Latest Threads

Top