A
A
Alexander Sharomet2014-11-17 16:46:56
Programming
Alexander Sharomet, 2014-11-17 16:46:56

How to programmatically add a button in Qt Creator?

Hello. Such a question is how you can programmatically add a button to a form in the qt Creator program.
And even better, does the kavoto have the source code for the Minesweeper game?
Thank you)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Silin, 2014-11-17
@sharomet

In the constructor of the main widget, we create some kind of layout:
We push our button into it:
and set it as the current one:
setLayout(l);

B
bogolt, 2014-11-17
@bogolt

>does kavoto have the source code for the Minesweeper game?
My soul has no rest,
All day long I've been waiting for Cavoto
I meet the dawn without sleep,
And all because of Cavoto Cavoto
is not with me
Oh, where can I find Cavoto?
I can go around the whole world,
To find Kavoto...
To find Kavoto,
I can go around the whole world.
Sorry I couldn't resist.
PS I propose to start a #homework tag on the toaster, where experienced programmers will solve problems day and night for the younger generation of idlers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question