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

Qt Creator keep crashing when opening *.ui file

Scheduled Pinned Locked Moved Qt Creator and other tools
27 Posts 8 Posters 20.7k Views 1 Watching
  • 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
                                  • T Offline
                                    T Offline
                                    tobias.hunger
                                    wrote on last edited by
                                    #21

                                    pohdes: Did you file a bug report in our "issue tracker":http://bugreports.qt.nokia.com/?

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      mohsen
                                      wrote on last edited by
                                      #22

                                      Which anti-virus you've installed on your system? lol
                                      have you tried your QtCreator with "Run as administrator" mode?

                                      1 Reply Last reply
                                      0
                                      • P Offline
                                        P Offline
                                        pohdes
                                        wrote on last edited by
                                        #23

                                        Tobias: No, I didn't file yet as I want to confirm it is really a bug first.

                                        mohsen: I try everything, run as admin, start with window XP SP2 compatibility mode, all the same.

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          mohsen
                                          wrote on last edited by
                                          #24

                                          Create new windows user and try there.

                                          1 Reply Last reply
                                          0

                                          • Login

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