Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator keep crashing when opening *.ui file
QtWS25 Last Chance

Qt Creator keep crashing when opening *.ui file

Scheduled Pinned Locked Moved Qt Creator and other tools
27 Posts 8 Posters 16.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pohdes
    wrote on 29 Dec 2010, 07:14 last edited by
    #1

    Hi all,
    I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
    I'm using Windows Vista Home Basic 32-bit. Please help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stukdev
      wrote on 29 Dec 2010, 08:16 last edited by
      #2

      Strange, can you post your ui file?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        sfilippidis
        wrote on 29 Dec 2010, 08:31 last edited by
        #3

        [quote author="pohdes" date="1293606852"]Hi all,
        I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
        I'm using Windows Vista Home Basic 32-bit. Please help.[/quote]

        Can you try the same ui file with the installation of QtSDK 2010.05 at another O/S, such as Windows XP?

        https://www.filippidis.name/

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kamalakshantv
          wrote on 29 Dec 2010, 08:33 last edited by
          #4

          Never faced such an issue with Qt SDK version 2010.05. Does this happen with any particular .ui file. Or crashes with any .ui file.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            pohdes
            wrote on 29 Dec 2010, 09:05 last edited by
            #5

            Below is the ui file:
            @<ui version="4.0">
            <class>TestGUI</class>
            <widget class="QWidget" name="TestGUI" >
            <property name="geometry" >
            <rect>
            <x>0</x>
            <y>0</y>
            <width>400</width>
            <height>300</height>
            </rect>
            </property>
            <property name="windowTitle" >
            <string>TestGUI</string>
            </property>
            </widget>
            <layoutDefault spacing="6" margin="11" />
            <pixmapfunction></pixmapfunction>
            <resources/>
            <connections/>
            </ui>
            @

            Qtk: Yes, it crash with any ui file.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              stukdev
              wrote on 29 Dec 2010, 09:09 last edited by
              #6

              With that ui file qt creator crash for me!
              I'm Win Xp Sp3

              But in your ui file there isn't a
              @
              <?xml version="1.0" encoding="UTF-8"?>@
              in the first line.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pohdes
                wrote on 29 Dec 2010, 09:19 last edited by
                #7

                stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kamalakshantv
                  wrote on 29 Dec 2010, 09:35 last edited by
                  #8

                  [quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]

                  No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    stukdev
                    wrote on 29 Dec 2010, 09:57 last edited by
                    #9

                    This is strange because for me, create a new project create the same ui posted but view in qt creator add the xml version, but only in qt creator! in the source code of the ui there isn't that code!

                    [quote author="QtK" date="1293615321"]
                    [quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]

                    No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.

                    [/quote]

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kamalakshantv
                      wrote on 29 Dec 2010, 10:24 last edited by
                      #10

                      In my case the source code has it. But when I modified the .ui to the one provided above. The editor in Qt Creator doesn't show this line.

                      @<pixmapfunction></pixmapfunction>@

                      but if I open it in any other text editor, it is shown there.

                      1 Reply Last reply
                      0
                      • V Offline
                        V Offline
                        vsorokin
                        wrote on 29 Dec 2010, 12:09 last edited by
                        #11

                        Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?

                        --
                        Vasiliy

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          sfilippidis
                          wrote on 29 Dec 2010, 12:13 last edited by
                          #12

                          [quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]

                          I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)

                          https://www.filippidis.name/

                          1 Reply Last reply
                          0
                          • K Offline
                            K Offline
                            kamalakshantv
                            wrote on 29 Dec 2010, 12:17 last edited by
                            #13

                            [quote author="Stavros Filippidis" date="1293624815"]
                            [quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]

                            I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)[/quote]

                            Right Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1.

                            1 Reply Last reply
                            0
                            • V Offline
                              V Offline
                              vsorokin
                              wrote on 29 Dec 2010, 13:02 last edited by
                              #14

                              Stavros Filippidis IMHO using unstable Qt Creator is not a problem. It's no high load server with millions users. Release candidate is enough stable for using and includes many new features, such as QML Designer.

                              --
                              Vasiliy

                              1 Reply Last reply
                              0
                              • K Offline
                                K Offline
                                kamalakshantv
                                wrote on 29 Dec 2010, 13:07 last edited by
                                #15

                                That's right. But in this case only pohdes is facing this problem. Will have to wait till he replies back.

                                1 Reply Last reply
                                0
                                • S Offline
                                  S Offline
                                  sfilippidis
                                  wrote on 29 Dec 2010, 13:07 last edited by
                                  #16

                                  [quote author="Vass" date="1293627745"]Stavros Filippidis IMHO using unstable Qt Creator is not a problem. It's no high load server with millions users. Release candidate is enough stable for using and includes many new features, such as QML Designer.[/quote]

                                  Generally speaking, I don't disagree with this! My point was that the version included in Qt SDK 2010.05 is NOT deprecated, but instead it is the current official and stable version provided. So, I would make the hypothesis that the initial poster's crashes do NOT have to do with the Qt Creator's version. ;)

                                  https://www.filippidis.name/

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    stukdev
                                    wrote on 29 Dec 2010, 15:14 last edited by
                                    #17

                                    I agree with Stavros, 2010.05 is not a deprecated, but is the last stable sdk version. And sometimes only for a debug is useful test new 'unstable' version.
                                    I remember the first 'beta' version of creator where it crash many times :P

                                    1 Reply Last reply
                                    0
                                    • V Offline
                                      V Offline
                                      vsorokin
                                      wrote on 29 Dec 2010, 16:03 last edited by
                                      #18

                                      [quote author="stuk" date="1293635649"]I remember the first 'beta' version of creator where it crash many times :P[/quote]

                                      stuk It's not true now :)

                                      --
                                      Vasiliy

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        stukdev
                                        wrote on 29 Dec 2010, 16:08 last edited by
                                        #19

                                        I hope :P

                                        [quote author="Vass" date="1293638612"][quote author="stuk" date="1293635649"]I remember the first 'beta' version of creator where it crash many times :P[/quote]

                                        stuk It's not true now :)[/quote]

                                        1 Reply Last reply
                                        0
                                        • P Offline
                                          P Offline
                                          pohdes
                                          wrote on 30 Dec 2010, 01:31 last edited by
                                          #20

                                          I check the memory usage, it seems like QtCreator use up all my machine's memory (2GB) during opening the ui file and then it crash...could this be a vista problem?

                                          1 Reply Last reply
                                          0

                                          3/27

                                          29 Dec 2010, 08:31

                                          24 unread
                                          • Login

                                          • Login or register to search.
                                          3 out of 27
                                          • First post
                                            3/27
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved