Results 1 to 2 of 2

Thread: probleme with anchors between syhmbian belle and belle FP1

  1. #1
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Lightbulb probleme with anchors between syhmbian belle and belle FP1

    I work on application using TabBar and TabGroup it works perfectly on Symbian belle but when i try it on Symbian belle FP1 I have anchors problem the top of the tabGroup don't anchors with the bottom of the TabBar This is my code

    Qt Code:
    1. Page
    2. {
    3. id:root
    4. property Menu menu
    5.  
    6.  
    7. StatusBar{
    8. id:stat
    9. anchors.top: parent.top
    10. }
    11.  
    12. property PageStackWindow currentTabPageStack: annoncestack
    13.  
    14. Image{
    15. id:fondgris
    16. source: "images/foninter.png"
    17. anchors.top: stat.bottom
    18. width: root.width
    19. }
    20.  
    21. Image{
    22. id:logo
    23. source: "images/logo.png"
    24. anchors.top: stat.bottom
    25. anchors.horizontalCenter: parent.horizontalCenter
    26. anchors.topMargin: 8
    27. }
    28.  
    29. Text {
    30. id: txtrub
    31. text: "Annonces"
    32. font.pointSize: 6.5
    33. color:"#383a4b"
    34. anchors.horizontalCenter: parent.horizontalCenter
    35. anchors.top: logo.bottom
    36. anchors.topMargin: 8
    37. }
    38.  
    39. TabBar {
    40. id: tabBar
    41. z: 1
    42. platformInverted: true
    43. height: 60
    44. anchors { left: parent.left; right: parent.right; top: fondgris.bottom; }
    45.  
    46. TabButton {
    47. tab: annoncestack;
    48.  
    49. platformInverted: true
    50. Image{
    51. anchors.verticalCenterOffset: -13
    52. anchors.horizontalCenter: parent.horizontalCenter
    53. anchors.verticalCenter: parent.verticalCenter
    54. source: "images/star.png"
    55. }
    56. Text {
    57. id:txt
    58. text: "tab1"
    59. anchors.verticalCenterOffset: 17
    60. anchors.verticalCenter: parent.verticalCenter
    61. anchors.horizontalCenter: parent.horizontalCenter
    62. font.pixelSize: 13
    63. color: "#59595a"
    64. }
    65. onClicked: {
    66. currentTabPageStack.pageStack.pop(currentTabPageStack.initialPage)
    67. }
    68. }
    69. TabButton {
    70. tab: recherchestack;
    71. platformInverted: true
    72. Image{
    73. anchors.verticalCenterOffset: -13
    74. anchors.horizontalCenter: parent.horizontalCenter
    75. anchors.verticalCenter: parent.verticalCenter
    76. source: "images/zoom.png"
    77. }
    78. Text {
    79. text: "tab2"
    80. anchors.verticalCenterOffset: 17
    81. anchors.verticalCenter: parent.verticalCenter
    82. anchors.horizontalCenter: parent.horizontalCenter
    83. font.pixelSize: 13
    84. color: "#59595a"
    85. }
    86. onClicked: {
    87. currentTabPageStack.pageStack.pop(currentTabPageStack.initialPage)
    88. }
    89. }
    90. TabButton {
    91. tab: deposerstack;
    92. platformInverted: true
    93. Image{
    94. anchors.verticalCenterOffset: -13
    95. anchors.horizontalCenter: parent.horizontalCenter
    96. anchors.verticalCenter: parent.verticalCenter
    97. source: "images/add.png"
    98. }
    99. Text {
    100. text: "tab3"
    101. anchors.verticalCenterOffset: 17
    102. anchors.verticalCenter: parent.verticalCenter
    103. anchors.horizontalCenter: parent.horizontalCenter
    104. font.pixelSize: 13
    105. color: "#59595a"
    106. }
    107. onClicked: {
    108. currentTabPageStack.pageStack.pop(currentTabPageStack.initialPage)
    109. }
    110. }
    111. TabButton {
    112. tab: favoristack;
    113. platformInverted: true
    114. Image{
    115. anchors.verticalCenterOffset: -13
    116. anchors.horizontalCenter: parent.horizontalCenter
    117. anchors.verticalCenter: parent.verticalCenter
    118. source: "images/hearTab.png"
    119. }
    120. Text {
    121. text: "tab4"
    122. anchors.verticalCenterOffset: 17
    123. anchors.verticalCenter: parent.verticalCenter
    124. anchors.horizontalCenter: parent.horizontalCenter
    125. font.pixelSize: 13
    126. color: "#59595a"
    127. }
    128. onClicked: {
    129. currentTabPageStack.pageStack.pop(currentTabPageStack.initialPage)
    130. }
    131. }
    132.  
    133. }
    134.  
    135.  
    136. TabGroup {
    137. id: tabGroup
    138. anchors { left: parent.left; right: parent.right;top:tabBar.bottom;bottom: parent.bottom }
    139.  
    140.  
    141. PageStackWindow{
    142. id: annoncestack
    143.  
    144. showToolBar: false
    145. showStatusBar: false
    146. platformInverted: true
    147. initialPage: ann
    148. }
    149.  
    150. PageStackWindow{
    151. id: recherchestack
    152.  
    153. showToolBar: false
    154. showStatusBar: false
    155. platformInverted: true
    156. initialPage: rech
    157. }
    158.  
    159. PageStackWindow{
    160. id: deposerstack
    161.  
    162. showToolBar: false
    163. showStatusBar: false
    164. platformInverted: true
    165. initialPage: depo
    166. }
    167.  
    168. PageStackWindow{
    169. id: favoristack
    170.  
    171. showToolBar: false
    172. showStatusBar: false
    173. platformInverted: true
    174. initialPage: fav
    175. }
    176.  
    177. onCurrentTabChanged: {
    178. currentTabPageStack = currentTab
    179.  
    180. favoristack.pageStack.currentPage.addListe();
    181. console.log("ana hena");
    182. }
    183. }
    184.  
    185.  
    186. PageA{
    187. id:depo
    188. }
    189. PageB{
    190. id:rech
    191. }
    192. PageC{
    193. id:fav
    194. }
    195.  
    196. Page{
    197. id:ann
    198. property Menu menu
    199. width: root.width
    200.  
    201. Flickable{
    202. width: root.width
    203. contentHeight: column.height
    204. clip: true
    205. // anchors.top:parent.top
    206. // anchors.bottom: footer.top
    207. anchors.fill:parent
    208.  
    209. Column{
    210. id:column
    211. anchors.fill: parent
    212. Repeater{
    213. id:rep
    214. model:Con.tabRubriqueAcceuil.length
    215. ListItem {
    216. id: listItem1
    217. platformInverted: true
    218. subItemIndicator: true
    219. Column {
    220. id: column1
    221. x:16
    222. y:16
    223. ListItemText {
    224. id: titleText
    225. mode: listItem1.mode
    226. role: "Title"
    227. text: Con.tabRubriqueAcceuil[index]
    228. platformInverted: true
    229. }
    230.  
    231. }
    232. onClicked:
    233. {
    234. Trait.rub=index
    235. Trait.rubrique=Con.tabRubriqueAcceuil[index]
    236. if(Trait.rubrique=="Toutes les rubriques")
    237. Con.tabCategorieAcceuil=Con.getCategorie("");
    238. else
    239. Con.tabCategorieAcceuil=Con.getCategorie(Trait.rubrique);
    240. currentTabPageStack.pageStack.push(Qt.resolvedUrl("Categories.qml"));
    241. }
    242. }
    243. }
    244. }
    245. }
    246.  
    247. Item
    248. {
    249. id:footer
    250. height: toolBar.height
    251. width: toolBar.width
    252. anchors.bottom: parent.bottom
    253.  
    254. ToolBar {
    255. id: toolBar
    256. platformInverted: true
    257.  
    258. tools: ToolBarLayout {
    259. id: toolBarlayout
    260. opacity: 1
    261.  
    262. //button retour
    263. ToolButton {
    264. platformInverted: true
    265. iconSource: "images/close_stop_wb.png"
    266. onClicked: Qt.quit()
    267. }
    268.  
    269. //button menu
    270. ToolButton {
    271. iconSource: "toolbar-menu"
    272. platformInverted: true
    273. onClicked: {
    274. if (!menu)
    275. menu = menuComponent.createObject(root)
    276. menu.open()
    277. }
    278. }
    279. }
    280. }
    281.  
    282. Component {
    283. id: menuComponent
    284. //menu du pied de page
    285. Menu {
    286. id: theMenu
    287. platformInverted: true
    288.  
    289. content: MenuLayout {
    290. MenuItem {
    291. text: "A propos"
    292. platformInverted: true
    293. }
    294. }
    295. }
    296. }
    297.  
    298. }
    299.  
    300. }
    301.  
    302. }
    To copy to clipboard, switch view to plain text mode 

    thanks for your help
    Last edited by boumacmilan; 15th July 2012 at 20:20.

  2. #2
    Join Date
    Jul 2012
    Posts
    4
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: probleme with anchors between syhmbian belle and belle FP1

    i manage to solve the problem i change the pagestackwindow to pagestack and it works great
    thanks

Similar Threads

  1. Positioning problem, anchors not allowed
    By kornicameister in forum Qt Quick
    Replies: 0
    Last Post: 26th August 2011, 09:35
  2. QPlainTextEdit and anchors
    By bear101 in forum Qt Programming
    Replies: 2
    Last Post: 13th December 2009, 18:10
  3. Probleme d'execution Qt/XML
    By fhorizon in forum General Programming
    Replies: 2
    Last Post: 11th May 2009, 10:00
  4. Replies: 2
    Last Post: 1st April 2009, 23:52
  5. Probleme mit QT4
    By ensacom1 in forum Qt Programming
    Replies: 2
    Last Post: 9th January 2007, 20:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.