Hi,

I have the following code:

Qt Code:
  1. Window {
  2. id: window
  3. visible: true
  4. width: 640
  5. height: 480
  6. title: qsTr("Hello World")
  7.  
  8. GroupBox {
  9. id: groupBox
  10. width: label1.width + comboBox.width + label2.width +25
  11.  
  12. height: comboBox.height * 3 + 25
  13. font.pointSize: 14
  14. anchors.horizontalCenter: parent.horizontalCenter
  15. anchors.verticalCenter: parent.verticalCenter
  16. title: qsTr("DDM")
  17.  
  18. Label {
  19. id: label
  20. text: qsTr("Limits centered on")
  21. anchors.rightMargin: 5
  22. anchors.right: comboBox.left
  23. anchors.verticalCenter: comboBox.verticalCenter
  24. }
  25.  
  26. SpinBox {
  27. id: spinBox
  28. width: 200
  29. editable: true
  30. value: 100
  31. to: 200
  32. anchors.top: comboBox.bottom
  33. anchors.topMargin: 5
  34. anchors.left: comboBox.left
  35. }
  36.  
  37. ComboBox {
  38. id: comboBox
  39. x: label1.width
  40. width: 200
  41. font.pointSize: 14
  42. model: ["DDM 0", "Mean value"]
  43. delegate: ItemDelegate {
  44. contentItem: Text {
  45. font.pixelSize: 22
  46. text: modelData
  47. horizontalAlignment: Text.horizontalCenter
  48. }
  49. }
  50. }
  51.  
  52. Label {
  53. id: label1
  54. text: qsTr("Reduced ICAO limits")
  55. anchors.rightMargin: 5
  56. anchors.right: spinBox.left
  57. anchors.verticalCenter: spinBox.verticalCenter
  58. }
  59.  
  60. Label {
  61. id: label2
  62. text: qsTr("%")
  63. anchors.leftMargin: 5
  64. anchors.left: spinBox.right
  65. anchors.verticalCenter: spinBox.verticalCenter
  66.  
  67. }
  68. }
  69. }
To copy to clipboard, switch view to plain text mode 

I would like to center the text. How can I do?
A secondary question is:
I have set in the combobox font.pointSize: 14
Bust I have to set font.pointSize: 22 in the delegate to get the same size of the text. Why?

Thank you