Results 1 to 3 of 3

Thread: Memory error reading class attribute from private slot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Memory error reading class attribute from private slot

    Quote Originally Posted by simonx86
    AirportSelectDialog::AirportSelectDialog( ... )
    {
    ...
    QComboBox *airportBox = new QComboBox(this); // in this line you declare a new, local airportBox variable
    ...
    }
    Try:
    Qt Code:
    1. airportBox = new QComboBox(this);
    To copy to clipboard, switch view to plain text mode 

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

    simonx86 (4th May 2006)

  3. #2
    Join Date
    May 2006
    Location
    Bristol, UK
    Posts
    2
    Thanks
    1
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Memory error reading class attribute from private slot

    Quote Originally Posted by jacek
    Try:
    Qt Code:
    1. airportBox = new QComboBox(this);
    To copy to clipboard, switch view to plain text mode 
    Thanks jacek, I feel like such a fool!

    I appreciate you looking at it, and taking the time to respond.

Similar Threads

  1. Replies: 12
    Last Post: 18th September 2008, 15: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.