PDA

View Full Version : No matching signal for on_treeWidget_customContextMenuRequested(QPoint)



Milenko
26th November 2014, 12:57
I am trying to build Gui for geophysics software.
http://geo-metronix.de/mtxgeo/index.php/wiki-software/119-procmt
I have exported PATH and LD_LIBRARY_PATH.Gui appears but also in terminal I got:
milenko@milenko-HP-Compaq-6830s:~/proc_mt/bin$ ./ProcMTGui
QMetaObject::connectSlotsByName: No matching signal for on_treeWidget_customContextMenuRequested(QPoint)
Also in gui:
Can't open XML file for reading:/home/milenko/proc_mt/bin/db/database:xml:No such file or directory Failed to open local database:out of memory Error opening database
What should I do?I am on Ubuntu 14.04 64bit.

anda_skoa
26th November 2014, 14:56
Does your .ui contain a QTreeWidget with the name treeWidget?

A good example why using a real connect is way safer than relying on names :)

As for the read error: have you verifyied that the file exists and is readable?

Cheers,
_

Milenko
26th November 2014, 16:46
I am new to Qt,how to check this,QTreeWidget?
Cheers

Added after 47 minutes:

milenko@milenko-HP-Compaq-6830s:~/Qt$ locate QTreeWidget
/home/milenko/Qt/5.3/android_armv7/include/QtWidgets/QTreeWidget
/home/milenko/Qt/5.3/android_armv7/include/QtWidgets/QTreeWidgetItem
/home/milenko/Qt/5.3/android_armv7/include/QtWidgets/QTreeWidgetItemIterator
/home/milenko/Qt/5.3/gcc_64/include/QtWidgets/QTreeWidget
/home/milenko/Qt/5.3/gcc_64/include/QtWidgets/QTreeWidgetItem
/home/milenko/Qt/5.3/gcc_64/include/QtWidgets/QTreeWidgetItemIterator
/usr/include/qt4/QtGui/QTreeWidget
/usr/include/qt4/QtGui/QTreeWidgetItem
/usr/include/qt4/QtGui/QTreeWidgetItemIterator
/usr/include/qt5/QtWidgets/QTreeWidget
/usr/include/qt5/QtWidgets/QTreeWidgetItem
/usr/include/qt5/QtWidgets/QTreeWidgetItemIterator

anda_skoa
26th November 2014, 17:52
The connect-by-name usually comes from UI that was created by QtCreator's widget designer.
But you will know better, it is you creation, you know where you added the tree widget.

Cheers,
_