Home > Back-end >  Qt dynamic control
Qt dynamic control

Time:12-04

Very common one function, also done in the questionnaire, is to enter a numeric value in a box, then below correspond to generate several label, such as I type 5, finally generate 5 label below

CodePudding user response:

This is not just a for loop + a new fix things?
It is not necessary to use any other controls?

According to the form it is good to set up each label location;
If the label is very much, more than the screen, you can set the label of the parent to a QScrollArea?

CodePudding user response:

Directly binding the textChanged signal a change in the input box label number slot function.

CodePudding user response:

Then how to write, I am a novice, meng, change the label number slot function is what

CodePudding user response:

And then change the figures to be automatically generated in digital control
  • Related