Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator Form View problem
QtWS25 Last Chance

Qt Creator Form View problem

Scheduled Pinned Locked Moved Solved General and Desktop
11 Posts 2 Posters 2.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.
  • K Offline
    K Offline
    kajzer
    wrote on 23 Sept 2018, 16:21 last edited by
    #1

    Using Qt Creator 4.6.2 on Linux, Qt version is 5.11.1

    Problem is that for some reason when I try to edit form all I see is a grid instead of a form.
    Used to work fine, I don't know if it's some setting, maybe I pressed something wrong, I'm not sure what happened.
    Any help appreciated.

    0_1537719572336_20180923-181753.png

    J 1 Reply Last reply 24 Sept 2018, 04:22
    0
    • K kajzer
      23 Sept 2018, 16:21

      Using Qt Creator 4.6.2 on Linux, Qt version is 5.11.1

      Problem is that for some reason when I try to edit form all I see is a grid instead of a form.
      Used to work fine, I don't know if it's some setting, maybe I pressed something wrong, I'm not sure what happened.
      Any help appreciated.

      0_1537719572336_20180923-181753.png

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Sept 2018, 04:22 last edited by jsulm
      #2

      @kajzer Your QtCreator isn't in designer mode. The designer mode is disabled for some reason. Check whether designer plug-in is activated. Go to "Help/Plugins..." and see there.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 24 Sept 2018, 09:20
      2
      • J jsulm
        24 Sept 2018, 04:22

        @kajzer Your QtCreator isn't in designer mode. The designer mode is disabled for some reason. Check whether designer plug-in is activated. Go to "Help/Plugins..." and see there.

        K Offline
        K Offline
        kajzer
        wrote on 24 Sept 2018, 09:20 last edited by kajzer
        #3

        @jsulm It's enabled.
        I deleted QtProject folder in .config directory and tried with new config to see what will happen, and now when I double click on .ui file I get "Image format not supported", it doesn't even display grid, it goes back to .cpp editor.
        That made me think that maybe some USE flag isn't enabled, I'm using Gentoo linux, so each package is compiled from source, maybe some feature wasn't compiled, I'm providing screenshot of enabled features (they are in red color) , maybe the problem is there ?
        Again, it used to work fine for a long time, it started to behave like this maybe two months ago, didn't change any of options or something like that.

        0_1537780698044_20180924-110744.png

        0_1537780709083_20180924-111112.png

        0_1537780723253_20180924-111155.png

        J 1 Reply Last reply 24 Sept 2018, 10:46
        0
        • K kajzer
          24 Sept 2018, 09:20

          @jsulm It's enabled.
          I deleted QtProject folder in .config directory and tried with new config to see what will happen, and now when I double click on .ui file I get "Image format not supported", it doesn't even display grid, it goes back to .cpp editor.
          That made me think that maybe some USE flag isn't enabled, I'm using Gentoo linux, so each package is compiled from source, maybe some feature wasn't compiled, I'm providing screenshot of enabled features (they are in red color) , maybe the problem is there ?
          Again, it used to work fine for a long time, it started to behave like this maybe two months ago, didn't change any of options or something like that.

          0_1537780698044_20180924-110744.png

          0_1537780709083_20180924-111112.png

          0_1537780723253_20180924-111155.png

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 24 Sept 2018, 10:46 last edited by
          #4

          @kajzer What happens if you right click on the UI file and select "Open With/Qt Designer"?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply 24 Sept 2018, 20:04
          0
          • J jsulm
            24 Sept 2018, 10:46

            @kajzer What happens if you right click on the UI file and select "Open With/Qt Designer"?

            K Offline
            K Offline
            kajzer
            wrote on 24 Sept 2018, 20:04 last edited by
            #5

            @jsulm It opens with a grid.
            However, I've tried to open it via terminal and now I see error messages when I try to open .ui file

            static Core::EditorManager::EditorFactoryList Core::Internal::EditorManagerPrivate::findFactories(Core::Id, const QString&) unable to determine mime type of /home/kajzer/QT Creator Projects/Testing2/mainwindow.ui/. Falling back to text/plain
            qt.svg: Cannot read file '/home/kajzer/QT Creator Projects/Testing2/mainwindow.ui', because:  (line 2)
            

            Don't know why it sees .ui files as svg, maybe that's normal and how this works, I'll try to investigate more.

            J 1 Reply Last reply 25 Sept 2018, 04:39
            0
            • K kajzer
              24 Sept 2018, 20:04

              @jsulm It opens with a grid.
              However, I've tried to open it via terminal and now I see error messages when I try to open .ui file

              static Core::EditorManager::EditorFactoryList Core::Internal::EditorManagerPrivate::findFactories(Core::Id, const QString&) unable to determine mime type of /home/kajzer/QT Creator Projects/Testing2/mainwindow.ui/. Falling back to text/plain
              qt.svg: Cannot read file '/home/kajzer/QT Creator Projects/Testing2/mainwindow.ui', because:  (line 2)
              

              Don't know why it sees .ui files as svg, maybe that's normal and how this works, I'll try to investigate more.

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 25 Sept 2018, 04:39 last edited by
              #6

              @kajzer This is strange. Maybe you can try to change the mime type for ui in your desktop environment?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply 25 Sept 2018, 06:55
              0
              • J jsulm
                25 Sept 2018, 04:39

                @kajzer This is strange. Maybe you can try to change the mime type for ui in your desktop environment?

                K Offline
                K Offline
                kajzer
                wrote on 25 Sept 2018, 06:55 last edited by
                #7

                @jsulm mime type for ui files is "application/x-designer"
                Default application that opens it is "Qt Creator (org.qt-project.qtcreator)"

                I can change the mime type but to which one ?

                J 1 Reply Last reply 25 Sept 2018, 06:57
                0
                • K kajzer
                  25 Sept 2018, 06:55

                  @jsulm mime type for ui files is "application/x-designer"
                  Default application that opens it is "Qt Creator (org.qt-project.qtcreator)"

                  I can change the mime type but to which one ?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 25 Sept 2018, 06:57 last edited by
                  #8

                  @kajzer Looks correct, I really have no idea what is going on. You could try to reinstall QtCreator.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  K 1 Reply Last reply 25 Sept 2018, 08:44
                  0
                  • J jsulm
                    25 Sept 2018, 06:57

                    @kajzer Looks correct, I really have no idea what is going on. You could try to reinstall QtCreator.

                    K Offline
                    K Offline
                    kajzer
                    wrote on 25 Sept 2018, 08:44 last edited by
                    #9

                    @jsulm Yeah really weird, apart from that everything else is fine, luckily I don't use much Designer but still....
                    Thanks for your interest in this, I will report the solution if I find it.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      kajzer
                      wrote on 25 Sept 2018, 09:09 last edited by kajzer
                      #10

                      Found the exact problem reported here :
                      https://bugs.archlinux.org/task/58312

                      If I understand the solution correctly I need to rebuild QtCreator with Qt 5.11
                      Which I'm going to do and mark this as solved if that's the case.

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kajzer
                        wrote on 26 Sept 2018, 06:05 last edited by
                        #11

                        Rebuilding it solved the problem indeed.

                        1 Reply Last reply
                        1

                        2/11

                        24 Sept 2018, 04:22

                        9 unread
                        • Login

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