Results 1 to 10 of 10

Thread: Problem passing QVector containing QPointF through signal-slot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2014
    Posts
    11
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: Problem passing QVector containing QPointF through signal-slot

    Quote Originally Posted by wysota View Post
    Based on the first error posted, seems a missing #include <QPointF>
    Finally was able to solve the problem! It turns out that I was looking in the wrong file, I had QpointF included in my samplingthread.cpp but I had forgot to include it in my samplingthread.h file!

    You know why I had to include QpointF when Qvector in the header file? I'm just curious... :P

    Quote Originally Posted by wysota View Post
    You are using it for QVector<int> and not QVector<QPointF>.
    I was using QVector<QPointF> in the registermetatype but the error was in the header file as I just discovered.

    Thanks for all the help guys, problem solved and I'm happy to move on!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Problem passing QVector containing QPointF through signal-slot

    Quote Originally Posted by Mindstormer View Post
    You know why I had to include QpointF when Qvector in the header file? I'm just curious... :P
    Because you had a declaration of a QVector<QPointF> object in the header file.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 3rd September 2011, 00:11
  2. Passing data via signal/slot
    By gib in forum Qt Programming
    Replies: 4
    Last Post: 1st November 2010, 06:49
  3. Problem with passing Pointers to a Slot
    By Basti300 in forum Newbie
    Replies: 2
    Last Post: 26th May 2010, 15:45
  4. signal-slot problem with QVector
    By stefan in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2008, 14:58
  5. Passing a pointer in Signal/Slot Connection
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 6th November 2007, 20:04

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
  •  
Qt is a trademark of The Qt Company.