Results 1 to 15 of 15

Thread: connect() problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: connect() problem

    In your constructor you create a local variable which is destroyed when the constructor has finished.

    Why not use the reference you already have?

    Secondly, the class declaration should be in a seperate header file to the definition so it can be easily compiled by the meta object compiler.

  2. The following user says thank you to squidge for this useful post:

    harmodrew (4th August 2010)

Similar Threads

  1. PyQT connect problem
    By di_zou in forum Newbie
    Replies: 1
    Last Post: 6th November 2009, 17:03
  2. Connect Problem
    By nrabara in forum Newbie
    Replies: 3
    Last Post: 4th May 2009, 12:19
  3. connect problem
    By liengen in forum Newbie
    Replies: 2
    Last Post: 22nd October 2008, 16:21
  4. Problem with connect()
    By mrnor3 in forum Qt Programming
    Replies: 3
    Last Post: 23rd July 2008, 14:05
  5. connect problem QDialog
    By Zergi in forum Newbie
    Replies: 1
    Last Post: 1st January 2008, 13:36

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.