Results 1 to 4 of 4

Thread: No matching signal for on_treeWidget_customContextMenuRequested(QPoint)

  1. #1
    Join Date
    Nov 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default No matching signal for on_treeWidget_customContextMenuRequested(QPoint)

    I am trying to build Gui for geophysics software.
    http://geo-metronix.de/mtxgeo/index....are/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 databaseut of memory Error opening database
    What should I do?I am on Ubuntu 14.04 64bit.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: No matching signal for on_treeWidget_customContextMenuRequested(QPoint)

    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,
    _

  3. #3
    Join Date
    Nov 2014
    Posts
    2
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Re: No matching signal for on_treeWidget_customContextMenuRequested(QPoint)

    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
    Last edited by Milenko; 26th November 2014 at 16:46.

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: No matching signal for on_treeWidget_customContextMenuRequested(QPoint)

    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,
    _

Similar Threads

  1. Replies: 7
    Last Post: 28th November 2013, 06:03
  2. Replies: 15
    Last Post: 18th September 2013, 15:03
  3. QtScript QPoint
    By bunjee in forum Qt Programming
    Replies: 2
    Last Post: 27th May 2009, 10:33
  4. Replies: 2
    Last Post: 8th November 2007, 21:23
  5. Confusion with QPoint
    By therealjag in forum Qt Programming
    Replies: 9
    Last Post: 14th February 2006, 18:31

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.