Guest User

Untitled

a guest
May 9th, 2012
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Segfault on destructor
  2. #include <QWidget>
  3.  
  4. class VLocationDropDowns : public QWidget
  5. {
  6. Q_OBJECT
  7. public:
  8. VLocationDropDowns(QString activeText, QWidget *parent = 0);
  9. ~VLocationDropDowns();
  10. };
  11.  
  12. VLocationDropDowns::VLocationDropDowns(QString activeText, QWidget *parent) :
  13. QWidget()//I've also had this as QWidget(parent, Qt::Widget)
  14. {
  15. }
  16.  
  17. VLocationDropDowns::~VLocationDropDowns()
  18. {
  19. }
  20.  
  21. locationDropDowns = new VLocationDropDowns(randomString, this);
Advertisement
Add Comment
Please, Sign In to add comment