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. Generated ui_mainwindow.h file is generated with errors

Generated ui_mainwindow.h file is generated with errors

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 881 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.
  • D Offline
    D Offline
    Dave R
    wrote on 18 Dec 2018, 12:33 last edited by
    #1

    Hello everyone,

    I'm not sure why exactly this is happening but now whenever I edit my .ui file the output ui_mainwindow.h file has a QPalette error as shown below:

    0_1545136298820_qtcreator_2018-12-18_13-26-03.png

    a quick fix is to manually replace QPalette::PlaceholderText with QPalette::Base and then it works fine however the error comes back whenever I make a change to the .ui.

    has anyone had this error before?

    J 1 Reply Last reply 18 Dec 2018, 12:39
    0
    • D Dave R
      18 Dec 2018, 12:33

      Hello everyone,

      I'm not sure why exactly this is happening but now whenever I edit my .ui file the output ui_mainwindow.h file has a QPalette error as shown below:

      0_1545136298820_qtcreator_2018-12-18_13-26-03.png

      a quick fix is to manually replace QPalette::PlaceholderText with QPalette::Base and then it works fine however the error comes back whenever I make a change to the .ui.

      has anyone had this error before?

      J Online
      J Online
      J.Hilk
      Moderators
      wrote on 18 Dec 2018, 12:39 last edited by
      #2

      @Dave-R aparently this will be fixed in the upcoming releases:

      https://bugreports.qt.io/browse/QTBUG-72555


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • D Offline
        D Offline
        Dave R
        wrote on 18 Dec 2018, 12:47 last edited by
        #3

        Okay thanks,

        I wasn't sure if it was me or QT but thank you!

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 18 Dec 2018, 12:51 last edited by
          #4

          You can also update your Qt version you're using to compile your programs to 5.12 (until it is fixed).

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0

          1/4

          18 Dec 2018, 12:33

          • Login

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