Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. [Mainwindow doesn't appear]
Forum Updated to NodeBB v4.3 + New Features

[Mainwindow doesn't appear]

Scheduled Pinned Locked Moved Unsolved Qt 6
7 Posts 3 Posters 879 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.
  • A Offline
    A Offline
    appdev
    wrote on last edited by
    #1

    Hello,

    I installed Qt6 and tried to run an example (cube example). At first, the mainwindow appeared, everything works fine ;I could see the cube and I could rotate it using my mouse.

    But then I needed to install and link some libraries to Qt including glut and freeGlut.
    The second day, I run the cube example but the mainwindow didn't even appear although I didn't modify the code.

    Can someone tell me how to fix this ?

    jsulmJ 1 Reply Last reply
    0
    • A appdev

      Hello,

      I installed Qt6 and tried to run an example (cube example). At first, the mainwindow appeared, everything works fine ;I could see the cube and I could rotate it using my mouse.

      But then I needed to install and link some libraries to Qt including glut and freeGlut.
      The second day, I run the cube example but the mainwindow didn't even appear although I didn't modify the code.

      Can someone tell me how to fix this ?

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

      @appdev said in [Mainwindow doesn't appear]:

      But then I needed to install and link some libraries to Qt including glut and freeGlut

      You mean link to the example app? Please explain better.

      If the example app does not work anymore then please run it through debugger and see what happens.

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

      1 Reply Last reply
      0
      • A Offline
        A Offline
        appdev
        wrote on last edited by
        #3

        Hello,

        Well, I didn't link it to that example because I was developping another application and I wanted to link the library to that one and not the cube example.

        I don't remember modifying the cube example but when I run it, nothing appears and the compilation shows no errors.

        jsulmJ 1 Reply Last reply
        0
        • A appdev

          Hello,

          Well, I didn't link it to that example because I was developping another application and I wanted to link the library to that one and not the cube example.

          I don't remember modifying the cube example but when I run it, nothing appears and the compilation shows no errors.

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

          @appdev said in [Mainwindow doesn't appear]:

          but when I run it, nothing appears and the compilation shows no errors

          As suggested before: run it through debugger.

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

          1 Reply Last reply
          0
          • A Offline
            A Offline
            appdev
            wrote on last edited by
            #5

            Okay, I did that and this is where my application stops. The problem is that I wasn't the one who wrote qopenglfunctions.h.

            erreur.PNG

            I don't have any idea how to fix this or what it means.

            JonBJ 1 Reply Last reply
            0
            • A appdev

              Okay, I did that and this is where my application stops. The problem is that I wasn't the one who wrote qopenglfunctions.h.

              erreur.PNG

              I don't have any idea how to fix this or what it means.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #6

              @appdev
              The Q_ASSERT() is finding the QOpenGLFunctions is not initialised. What initialisation did you do prior to this call?

              1 Reply Last reply
              2
              • A Offline
                A Offline
                appdev
                wrote on last edited by
                #7

                Owh okay, I got it, I had to add initializeOpenGLFunctions(); in my glwidget::initialize()

                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