Problem z gra. Client-server lan
-
Witam, mam maly problem, znalazlem sobie gierke kolko krzyzyk zrobiana w qt z wykorzystaniem sieci lan, jednak nieumiem sobie poradzic z bledami, ktore wychodza przy kompilacji. Posiadam qt w wersji 5.5. Sa to bledy takie jak:
no matching function for call to 'ConnectDialog::connect(QDialogButtonBox*&, const char*, ConnectDialog*, const char*)'
connect(m_buttonBox, SIGNAL(accepted()), this, SLOT(accept()));
^(wskazuje na ostatni nawias)
inny: no type named 'Object' in 'struct QtPrivate::FunctionPointer<const char*>'Czy jakbym przeslal dokumentacje, pomoglby ktos?
Nie znam sie na tym, a chcialbym sie nauczyc czegos o client-server z wykorzystaniem gry lub chatu przez siec lan. -
#ifndef CONNECTDIALOG_H #define CONNECTDIALOG_H #include <qdialog.h> #include <QString> class QLabel; class QDialogButtonBox; class QLineEdit; class QGridLayout; class QVBoxLayout; class QSpinBox; class ConnectDialog : public QDialog { Q_OBJECT public: ConnectDialog(QWidget * = 0); QString host(); quint16 port(); protected: virtual void setupUi(); private: QDialogButtonBox *m_buttonBox; QLabel *m_ipLabel; QLabel *m_portLabel; QLineEdit *m_ipLineEdit; QSpinBox *m_portSpinBox; QGridLayout *m_topLayout; QVBoxLayout *m_mainLayout; QString m_host; quint16 m_port; private slots: void setData(); }; #endif
Wydaje mi sie ze kody zrodlowe aplikacji byly pisane na starej wersji QT.