New window open from a click of a button (Cmake)
-
Hi all.
I'm very new to this. I'm making a GUI using Cmake.
I need to open one window with click of a button. Very silly but my apologies as a beginner.Kindly help me how to open a new window (which is again editable) from a click of a button.
Thanks for your kindness.
Kind regards,
Rashed. -
Hi all.
I'm very new to this. I'm making a GUI using Cmake.
I need to open one window with click of a button. Very silly but my apologies as a beginner.Kindly help me how to open a new window (which is again editable) from a click of a button.
Thanks for your kindness.
Kind regards,
Rashed.@Rashed
cmake is not relevant. That is just for building your project.Start by reading Signals & Slots, you need to understand this concept before you can achieve anything in Qt.
Then
connect()
your QPushButton::clicked signal to a slot you write, or an inbuilt slot on a Qt widget, which opens a new window, e.g. some kind of QWidget::show().a new window (which is again editable)
"Windows" are not "editable". Depends what you really mean here.