Results 1 to 2 of 2

Thread: Segmentation error in run

  1. #1
    Join Date
    Mar 2011
    Posts
    24
    Thanks
    1
    Thanked 3 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Segmentation error in run

    Hi i have this weird error ........


    here is my ui file and the uic generated header file.

    addMovie.ui
    Qt Code:
    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <ui version="4.0">
    3. <class>addMovie</class>
    4. <widget class="QWidget" name="addMovie">
    5. <property name="geometry">
    6. <rect>
    7. <x>0</x>
    8. <y>0</y>
    9. <width>552</width>
    10. <height>443</height>
    11. </rect>
    12. </property>
    13. <property name="windowTitle">
    14. <string>Form</string>
    15. </property>
    16. <layout class="QGridLayout" name="gridLayout">
    17. <item row="0" column="0">
    18. <widget class="QLabel" name="label">
    19. <property name="text">
    20. <string>Movie Name:</string>
    21. </property>
    22. </widget>
    23. </item>
    24. <item row="0" column="1">
    25. <widget class="QLineEdit" name="editMovieName"/>
    26. </item>
    27. <item row="0" column="2" rowspan="7">
    28. <layout class="QVBoxLayout" name="verticalLayout">
    29. <item>
    30. <widget class="QLabel" name="labelPhoto">
    31. <property name="sizePolicy">
    32. <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
    33. <horstretch>0</horstretch>
    34. <verstretch>0</verstretch>
    35. </sizepolicy>
    36. </property>
    37. <property name="minimumSize">
    38. <size>
    39. <width>150</width>
    40. <height>150</height>
    41. </size>
    42. </property>
    43. <property name="frameShape">
    44. <enum>QFrame::StyledPanel</enum>
    45. </property>
    46. <property name="frameShadow">
    47. <enum>QFrame::Sunken</enum>
    48. </property>
    49. <property name="text">
    50. <string/>
    51. </property>
    52. <property name="alignment">
    53. <set>Qt::AlignCenter</set>
    54. </property>
    55. </widget>
    56. </item>
    57. <item>
    58. <widget class="QPushButton" name="btnPhoto">
    59. <property name="text">
    60. <string>Change Photo</string>
    61. </property>
    62. </widget>
    63. </item>
    64. </layout>
    65. </item>
    66. <item row="1" column="0">
    67. <widget class="QLabel" name="label_3">
    68. <property name="text">
    69. <string>Actor:</string>
    70. </property>
    71. </widget>
    72. </item>
    73. <item row="1" column="1">
    74. <widget class="QLineEdit" name="editActorName"/>
    75. </item>
    76. <item row="2" column="0">
    77. <widget class="QLabel" name="label_4">
    78. <property name="text">
    79. <string>Actoress:</string>
    80. </property>
    81. </widget>
    82. </item>
    83. <item row="2" column="1">
    84. <widget class="QLineEdit" name="editActoressName"/>
    85. </item>
    86. <item row="3" column="0">
    87. <widget class="QLabel" name="label_5">
    88. <property name="text">
    89. <string>Language:</string>
    90. </property>
    91. </widget>
    92. </item>
    93. <item row="3" column="1">
    94. <widget class="QLineEdit" name="editLanguageName"/>
    95. </item>
    96. <item row="4" column="0">
    97. <widget class="QLabel" name="label_6">
    98. <property name="text">
    99. <string>Director:</string>
    100. </property>
    101. </widget>
    102. </item>
    103. <item row="4" column="1">
    104. <widget class="QLineEdit" name="editDirectorName"/>
    105. </item>
    106. <item row="5" column="0">
    107. <widget class="QLabel" name="label_7">
    108. <property name="text">
    109. <string>Release Date:</string>
    110. </property>
    111. </widget>
    112. </item>
    113. <item row="5" column="1">
    114. <layout class="QHBoxLayout" name="horizontalLayout_2">
    115. <item>
    116. <widget class="QLineEdit" name="editReleasedate">
    117. <property name="sizePolicy">
    118. <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
    119. <horstretch>0</horstretch>
    120. <verstretch>0</verstretch>
    121. </sizepolicy>
    122. </property>
    123. </widget>
    124. </item>
    125. <item>
    126. <widget class="QPushButton" name="calenderButton">
    127. <property name="sizePolicy">
    128. <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
    129. <horstretch>0</horstretch>
    130. <verstretch>0</verstretch>
    131. </sizepolicy>
    132. </property>
    133. <property name="minimumSize">
    134. <size>
    135. <width>0</width>
    136. <height>0</height>
    137. </size>
    138. </property>
    139. <property name="text">
    140. <string/>
    141. </property>
    142. </widget>
    143. </item>
    144. </layout>
    145. </item>
    146. <item row="6" column="0">
    147. <widget class="QLabel" name="label_8">
    148. <property name="text">
    149. <string>Downloaded:</string>
    150. </property>
    151. </widget>
    152. </item>
    153. <item row="6" column="1">
    154. <layout class="QHBoxLayout" name="horizontalLayout">
    155. <item>
    156. <widget class="QRadioButton" name="rbYes">
    157. <property name="text">
    158. <string>No</string>
    159. </property>
    160. </widget>
    161. </item>
    162. <item>
    163. <widget class="QRadioButton" name="rbNo">
    164. <property name="text">
    165. <string>Yes</string>
    166. </property>
    167. </widget>
    168. </item>
    169. </layout>
    170. </item>
    171. <item row="10" column="0">
    172. <widget class="QLabel" name="label_2">
    173. <property name="text">
    174. <string>Location:</string>
    175. </property>
    176. </widget>
    177. </item>
    178. <item row="10" column="1">
    179. <widget class="QLineEdit" name="editLocation"/>
    180. </item>
    181. <item row="11" column="1">
    182. <spacer name="verticalSpacer">
    183. <property name="orientation">
    184. <enum>Qt::Vertical</enum>
    185. </property>
    186. <property name="sizeHint" stdset="0">
    187. <size>
    188. <width>20</width>
    189. <height>40</height>
    190. </size>
    191. </property>
    192. </spacer>
    193. </item>
    194. <item row="12" column="2">
    195. <layout class="QHBoxLayout" name="horizontalLayout_3">
    196. <item>
    197. <widget class="QPushButton" name="btnAdd">
    198. <property name="text">
    199. <string>Add</string>
    200. </property>
    201. </widget>
    202. </item>
    203. <item>
    204. <widget class="QPushButton" name="btnClear">
    205. <property name="text">
    206. <string>Clear</string>
    207. </property>
    208. </widget>
    209. </item>
    210. </layout>
    211. </item>
    212. </layout>
    213. </widget>
    214. <resources/>
    215. <connections/>
    216. </ui>
    To copy to clipboard, switch view to plain text mode 

    and i called this from a cpp file

    ui->setupUi(this);

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Segmentation error in run

    So is ui a valid pointer?

Similar Threads

  1. QT 4.6.0 with threads - UIC segmentation error
    By edmondo1984 in forum Installation and Deployment
    Replies: 5
    Last Post: 15th November 2010, 18:56
  2. building error: Segmentation fault
    By kaycee1 in forum Installation and Deployment
    Replies: 2
    Last Post: 21st October 2010, 10:08
  3. Segmentation Fault error on all Qt examples/demos
    By slscripters in forum Newbie
    Replies: 4
    Last Post: 26th April 2010, 11:00
  4. segmentation fault error
    By sagi in forum Installation and Deployment
    Replies: 2
    Last Post: 25th July 2008, 05:37
  5. Replies: 9
    Last Post: 6th September 2007, 08:13

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.