I have created a scroll area , inside that scroll area added a QToolBox...
And in run time i'm adding pages to QToolBox....
Each page contains a scroll area, inside that scroll area , number of QCheckBoxes are present....
Now i want to get pointer to particular QCheckBox...by passing pagename and CheckBox name...

Is that possible? If so please give some hint...
my ui file
Qt Code:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>FilterColl</class>
  4. <widget class="QDialog" name="FilterColl">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>686</width>
  10. <height>615</height>
  11. </rect>
  12. </property>
  13. <property name="sizePolicy">
  14. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  15. <horstretch>0</horstretch>
  16. <verstretch>0</verstretch>
  17. </sizepolicy>
  18. </property>
  19. <property name="windowTitle">
  20. <string>Dialog</string>
  21. </property>
  22. <layout class="QGridLayout" name="gridLayout">
  23. <item row="0" column="0" colspan="4">
  24. <widget class="QScrollArea" name="scrollArea">
  25. <property name="widgetResizable">
  26. <bool>true</bool>
  27. </property>
  28. <widget class="QWidget" name="scrollAreaWidgetContents">
  29. <property name="geometry">
  30. <rect>
  31. <x>0</x>
  32. <y>0</y>
  33. <width>666</width>
  34. <height>566</height>
  35. </rect>
  36. </property>
  37. <layout class="QGridLayout" name="gridLayout_2">
  38. <item row="0" column="0">
  39. <widget class="QToolBox" name="toolBox">
  40. <property name="sizePolicy">
  41. <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
  42. <horstretch>0</horstretch>
  43. <verstretch>0</verstretch>
  44. </sizepolicy>
  45. </property>
  46. <property name="currentIndex">
  47. <number>0</number>
  48. </property>
  49. <widget class="QWidget" name="page_2">
  50. <property name="geometry">
  51. <rect>
  52. <x>0</x>
  53. <y>0</y>
  54. <width>648</width>
  55. <height>521</height>
  56. </rect>
  57. </property>
  58. <attribute name="label">
  59. <string>STATUS</string>
  60. </attribute>
  61. </widget>
  62. </widget>
  63. </item>
  64. </layout>
  65. </widget>
  66. </widget>
  67. </item>
  68. <item row="1" column="3">
  69. <spacer name="horizontalSpacer">
  70. <property name="orientation">
  71. <enum>Qt::Horizontal</enum>
  72. </property>
  73. <property name="sizeHint" stdset="0">
  74. <size>
  75. <width>40</width>
  76. <height>20</height>
  77. </size>
  78. </property>
  79. </spacer>
  80. </item>
  81. <item row="1" column="1">
  82. <widget class="QPushButton" name="pushButton_OK">
  83. <property name="text">
  84. <string>OK</string>
  85. </property>
  86. </widget>
  87. </item>
  88. <item row="1" column="2">
  89. <widget class="QPushButton" name="pushButton_CANCEL">
  90. <property name="text">
  91. <string>CANCEL</string>
  92. </property>
  93. </widget>
  94. </item>
  95. <item row="1" column="0">
  96. <spacer name="horizontalSpacer_2">
  97. <property name="orientation">
  98. <enum>Qt::Horizontal</enum>
  99. </property>
  100. <property name="sizeHint" stdset="0">
  101. <size>
  102. <width>40</width>
  103. <height>20</height>
  104. </size>
  105. </property>
  106. </spacer>
  107. </item>
  108. </layout>
  109. </widget>
  110. <resources/>
  111. <connections/>
  112. </ui>
To copy to clipboard, switch view to plain text mode