Re: Accessing combo box text



You only connect the signal handler that does the print, if the Builder returned a non-null pointer. Have you checked whether the Builder actually returns a non-null pointer, i.e. successfully looks up the widget with name Product_Combo to m_combo!?

I would recommend, as always, assert()ing that all points are non-nullptr before dereferencing them, and if possible compiling with UBsan so that it can often catch that if you don't.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]