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. Getting Warning in Every Project.
Forum Update on Monday, May 27th 2025

Getting Warning in Every Project.

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.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.
  • D Offline
    D Offline
    Dev Tyagi
    wrote on last edited by
    #1

    Dear all,
    Getting this warning in every Project How should i solve that?
    Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.

    jsulmJ 1 Reply Last reply
    0
    • D Dev Tyagi

      Dear all,
      Getting this warning in every Project How should i solve that?
      Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Dev-Tyagi Which Qt version?
      Do you get this warning even with a fresh project created using wizard without any additional code from you?

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

      D 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Dev-Tyagi Which Qt version?
        Do you get this warning even with a fresh project created using wizard without any additional code from you?

        D Offline
        D Offline
        Dev Tyagi
        wrote on last edited by
        #3

        @jsulm Qt Design studio 1.2.0 Based on Qt 5.12.3

        Yes ,In fresh Project also it is showing the same warning .

        jsulmJ 1 Reply Last reply
        0
        • D Dev Tyagi

          @jsulm Qt Design studio 1.2.0 Based on Qt 5.12.3

          Yes ,In fresh Project also it is showing the same warning .

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Dev-Tyagi OK, don't know what causes this warning. You can search on Internet for it, maybe you can find more. Also, you could try to update to more recent versions.

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

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Bonnie
            wrote on last edited by
            #5

            I don't know what causes it or how to solve it. Just find out where it comes from:

            void QSurfaceFormat::setDefaultFormat(const QSurfaceFormat &format)
            {
            #ifndef QT_NO_OPENGL
                if (qApp) {
                    QOpenGLContext *globalContext = QOpenGLContext::globalShareContext();
                    if (globalContext && globalContext->isValid()) {
                        qWarning("Warning: Setting a new default format with a different version or profile "
                                 "after the global shared context is created may cause issues with context "
                                 "sharing.");
                    }
                }
            #endif
                *qt_default_surface_format() = format;
            }
            

            Qt Design studio

            Isn't that just for design? So the warning is from the studio itself?

            I've never used that studio by the way, hope others can have some ideas.

            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