[Solved] Connect combobox using signals
-
@Ratzz Because in you have connected the signal
activated
to slotm_combobox
which takes one argument.
connect(combobox,SIGNAL (activated(int)),this,SLOT(m_combobox(int)));
But there is no such slot defined with single argument and thus the connection will fail as it will not be able to find that slot. You have a slotm_combobox()
which takes no arguments. -
@Ratzz pushbutton->move(10,100). See http://doc.qt.io/qt-5/qwidget.html#pos-prop
But as said earlier its best to use Layouts. See using Layouts for more details. -
-
@Ratzz You're Welcome :)
Since you are new here few more forum related reminders:- Always surround the code blocks with ``` (3 backticks) while posting so that it gets nicely formatted and thus more readable for others.
- Mark the post as solved by editing the post title and prepending [Solved]
Happy Qt Coding ...