Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor
Forum Updated to NodeBB v4.3 + New Features

Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 3 Posters 603 Views 2 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.
  • S Offline
    S Offline
    Scopes
    wrote on last edited by
    #1

    I'm trying to update to Qt 5.14 and having a lot of trouble with the change made to QColor. Code I had that compiled in 5.13 fails when referencing QColor.h:

    For example:
    In file included from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qpalette.h:45:0,
    from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/qwidget.h:48,
    from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/qdialog.h:44,
    from /opt/Qt5.14.0/5.14.0/gcc_64/include/QtWidgets/QDialog:1,
    from ../myproject/myclass.h:27,
    from ../myproject/myclass.cpp:23:
    /opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qcolor.h: In constructor ‘constexpr QColor::QColor(int, int, int, int)’:
    /opt/Qt5.14.0/5.14.0/gcc_64/include/QtGui/qcolor.h:79:18: sorry, unimplemented: use of the value of the object being constructed in a constant expression

    This happens with many of my source files.

    Is this a known issue? I see that in the 5.14 Release Notes/Desktop Platforms, the stated reference configuration is "GCC 5.3.1 via devtoolset-4". Does this mean that since GCC 4.8.5 is the latest available for CentOS 7, I am stuck at Qt 5.13?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      @Scopes said in Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor:

      sorry, unimplemented: use of the value of the object being constructed in a constant expression

      Hi
      It has been reported and for 4.9
      https://bugreports.qt.io/browse/QTBUG-80997

      1 Reply Last reply
      4
      • S Offline
        S Offline
        Scopes
        wrote on last edited by
        #3

        Thanks. I'll watch that bug. I have investigated devtoolset a little, but haven't been able to get it to work with QtCreator yet.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Scopes said in Code that worked in 5.13 won't compile in 5.14, Linux, CentOS 7, gcc4.8.5, QColor:

          Thanks. I'll watch that bu

          There is already a patch available which you may apply locally.

          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
          1
          • S Offline
            S Offline
            Scopes
            wrote on last edited by
            #5

            Thanks. I'll look in to installing the patch.

            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