Using a tutorial about QTimer, it sounded as though I needed to add the "Q_object" macro inside the game class (this is commented out below).
H" int main(int argc, char *argv qApplication app(argc, argv MainWindow *MainWindowObj new MainWindow; return app.
Is it possible to pass parameters?Powered by vBulletin Version.2.5 Copyright, Jelsoft Enterprises Ltd., Qt Centre - The Ultimate Qt Community site Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide).However, if I uncomment it, the program fails to compile, providing the error message: "undefined reference to 'vtable for Game.H" MainWindow:MainWindow setupUi(this connect(actionNew, signal(activated this, slot(CreateTab void MainWindow:CreateTab QWidget *tab_2; QPlainTextEdit *plainTextEdit_2; tab_2 new QWidget plainTextEdit_2 new QPlainTextEdit(tab_2 0, 1271, 641 tabWidget- addTab(tab_2, QString "Tab 2 0, QApplication:UnicodeUTF8 main.Qt.8.0, VC2010 compiler, i have a QMainWindow based class and I'm trying to send it signals involving QUuid / However, every time I run it I get the errors: / Object:connect: No such slot,.srcmainwindow.How do I properly connect my signal and slot for the timer?Txt int passed_main 0; std:string line; while(std:getline(infile, line) if(line main passed_main; else if(line extra passed_main; else if(passed_main 1) current_card read_name(line current_card_q QListWidgetItem *new_item new QListWidgetItem; list_sizes0; read_type(current_card To copy to clipboard, switch view to plain text mode slots def.Something like this: shortcut_key_one, channelSLot(int) / shortcut_key_two, channelSLot(int) shortcut_key_three, channelSLot(int web Design, how to tell the mouse button using QApplication:mouseButtons in a click slot?How can I do some things after the next button is clicked?Now I need to tell which mouse button is clicked, and do different things for left and right button, I found that the "clicked" signal don't have the mouse event information.Cpp: In member function virtual int int, void moc_MainWindow.To copy to clipboard, switch view to plain text mode I have already forced the _moc file to be redone.Please ask Qt related questions on the forum lucky 8 casino no deposit and not using private messages or visitor messages.For some pages, I need to do something when the "Next" button is clicked.It seems that my slot is not properly defined.
Reply With" 13th May 2013, 17:15 #3 Re: No such slot Ok, I changed the one function that required a parameter.
Class MainWindow : public QMainWindow Q_object public: MainWindow std:string read_name(const std:string idnum int read_number(const std:string idnum int read_type(const std:string idnum QListWidgetItem *items_a10; / void save_analysis(const std:string fileName public slots: void analyze_deck void read_deck(const QString fileName void refresh_deck void m_b void m_g void b_m void b_g.
The program still went into the original next slot in the parent QWizard class instead of the one I implemented.QPushButton :clicked this, slot(b_m QObject :connect(btns_a3, signal qPushButton :clicked this, slot(b_g QObject :connect(btns_a4, signal qPushButton :clicked this, slot(g_m QObject :connect(btns_a5, signal( QPushButton :clicked this, slot(g_b void MainWindow:create_actions readAction new QAction(tr Read new deck this QObject:connect(readAction, signal(triggered this, slot(read_deck(const QString fileName * point of error refreshAction.Private: Ui:MainWindow m_ui; /.Qt.8.0, VC2010 compiler, i have a QMainWindow based class and I'm trying to send it signals involving QUuid / However, every time I run it I get the errors: / Object:connect: No such slot.srcmainwindow.Cpp:143 / Object:connect: (receiver name: 'MainWindow / It's driving me potty as the slot definitely does exist (it's in the moc class MainWindow : public QMainWindow / Q_object / snip private typedefs public: MainWindow(QWidget *parent 0, Qt:WFlags flags 0 Mai Programming Languages Qt No Such.Non of my connections are connecting.Only types are allowed.I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.Cpp g -c -pipe -O2 -Wall -W -D_reentrant -DQT_NO_debug -DQT_GUI_LIB -DQT_core_LIB -DQT_shared -I.QAction (tr Reload current deck this QObject :connect(refreshAction, signal(triggered this, slot(refresh_deck /saveAction new QAction(tr Save results to file this / QObject:connect(saveAction, signal(triggered this, slot(save_analysis analyzeAction rake poker meaning new, qAction (tr Perform deck analysis this QObject :connect(analyzeAction, signal(triggered this, slot(analyze_deck QObject qApp, slot(quit QObject :connect(btns_a0, signal qPushButton :clicked.Reply With" « Previous Thread Next Thread » Similar Threads Slot By mickey in forum Qt Programming Slot By mickey in forum Qt Programming Bookmarks Bookmarks Posting Permissions You may not post new threads You may not post replies You may not post attachments.Qt connect no such slot when slot definitely does exist.