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. Broken text in Qt Creator UI
QtWS25 Last Chance

Broken text in Qt Creator UI

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreatorqtcreator 4.0.2text renderinguser interface
8 Posts 3 Posters 3.1k 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.
  • S Offline
    S Offline
    Stefan Monov76
    wrote on 19 Aug 2016, 16:52 last edited by Stefan Monov76
    #1

    Sometimes (not always), certain text items in the Qt Creator UI are broken:

    Broken text in Qt Creator UI

    Any idea what causes it? Or a workaround?

    Maybe the problem is my cheap video card (an Intel on-board one). This theory is supported by the fact that Creator is probably QML-powered by now, meaning it's running on OpenGL.

    I tried restarting Creator and that fixed it, but after switching between the Welcome and Edit tabs a few times, it happens again.

    I tried making Creator's UI use the software QML renderer, rather than OpenGL, as that might have made it work correctly. I did it by running the following in cmd.exe:

    > set QMLSCENE_DEVICE=softwarecontext
    > qtcreator.exe
    

    But that didn't fix it.

    K 1 Reply Last reply 19 Aug 2016, 19:38
    0
    • J Offline
      J Offline
      Jan-Willem
      wrote on 19 Aug 2016, 18:17 last edited by Jan-Willem
      #2

      From the documentation when building Qt on Windows:

      For Qt Quick 2 to work, a graphics driver that provides OpenGL 2.1 or higher is required. The default driver from Windows is OpenGL 1.1. Qt includes a version of the ANGLE project which is included from the Windows Qt installers. ANGLE implements the OpenGL ES 2.0 API on top of DirectX 11 or DirectX 9. ANGLE requires that the DirectX SDK is installed when building Qt.

      Perhaps you could check which OpenGL driver you have and when needed install a driver for OpenGL 2.1 or higher?

      1 Reply Last reply
      0
      • S Stefan Monov76
        19 Aug 2016, 16:52

        Sometimes (not always), certain text items in the Qt Creator UI are broken:

        Broken text in Qt Creator UI

        Any idea what causes it? Or a workaround?

        Maybe the problem is my cheap video card (an Intel on-board one). This theory is supported by the fact that Creator is probably QML-powered by now, meaning it's running on OpenGL.

        I tried restarting Creator and that fixed it, but after switching between the Welcome and Edit tabs a few times, it happens again.

        I tried making Creator's UI use the software QML renderer, rather than OpenGL, as that might have made it work correctly. I did it by running the following in cmd.exe:

        > set QMLSCENE_DEVICE=softwarecontext
        > qtcreator.exe
        

        But that didn't fix it.

        K Offline
        K Offline
        kshegunov
        Moderators
        wrote on 19 Aug 2016, 19:38 last edited by
        #3

        Hello,
        Do you observe similar behavior for other Qt based applications (if you have any on hand) or is this isolated to Qt Creator?

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jan-Willem
          wrote on 19 Aug 2016, 21:29 last edited by
          #4

          And while you at it, when the text is broken and you minimize and maximize QtCreator (or an other Qt based application), is the text then restored?

          Yeah, sounds silly, but perhaps you are experiencing something similar as I do.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stefan Monov76
            wrote on 20 Aug 2016, 17:09 last edited by
            #5

            @Jan-Willem said:

            Perhaps you could check which OpenGL driver you have and when needed install a driver for OpenGL 2.1 or higher?

            My driver supports exactly OpenGL 2.1 so that shouldn't be the problem. Also I have the latest drivers (although they're from 2012).

            @kshegunov said:

            Do you observe similar behavior for other Qt based applications (if you have any on hand) or is this isolated to Qt Creator?

            Well, I don't know what framework most of my Windows apps use, but I do use VLC Media Player, MuseScore and KWrite.
            VLC and KWrite (Windows version) use Qt4 and not Qt5 though.
            I have observed no such problems in these apps.

            @Jan-Willem said:

            And while you at it, when the text is broken and you minimize and maximize QtCreator (or an other Qt based application), is the text then restored?

            Well, that might fix it, but it will be only a temporary fix so not very useful.

            Thanks guys!

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jan-Willem
              wrote on 20 Aug 2016, 18:46 last edited by
              #6

              Yes, I know that minimizing and maximizing is a temporary fix and not a solution.
              But knowing this behaviour could help in getting to the core of the problem.

              Since you have QtCreator, you could build some of the examples and you can test if other Qt based applications have similar behavior.

              S 1 Reply Last reply 22 Aug 2016, 17:00
              0
              • J Jan-Willem
                20 Aug 2016, 18:46

                Yes, I know that minimizing and maximizing is a temporary fix and not a solution.
                But knowing this behaviour could help in getting to the core of the problem.

                Since you have QtCreator, you could build some of the examples and you can test if other Qt based applications have similar behavior.

                S Offline
                S Offline
                Stefan Monov76
                wrote on 22 Aug 2016, 17:00 last edited by
                #7

                @Jan-Willem: Thank you for the continued help, but I managed to get it fixed so I'm not going to debug it further. I have posted the solution here on StackOverflow. :)

                1 Reply Last reply
                1
                • J Offline
                  J Offline
                  Jan-Willem
                  wrote on 22 Aug 2016, 17:04 last edited by
                  #8

                  Glad to see you have you're problem fixed.

                  1 Reply Last reply
                  0

                  3/8

                  19 Aug 2016, 19:38

                  • Login

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