Home > Mobile >  Qt database how many rows of data displayed in the label or in the widget
Qt database how many rows of data displayed in the label or in the widget

Time:10-23



I think in a page stackedwidget multiple line shows the database columns of data, now what to write:
For example:

Each piece of this is a widget, are dynamically generated,
Ask who help me

CodePudding user response:

By '\ n' various data of a string, and then into the label, such as: a QString text=book_name + "\ n the author:" + author + the type_name "\ n type:" + + "\ n the heat:" + isbn

CodePudding user response:

I get out now, but I created a horizontal layout and widget is put inside, put n the label widget, but I think a page six figure in the block, with the horizontal layout, what all don't know how to solve
  •  Tags:  
  • Qt
  • Related