Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Spyder is not launching : Error at command prompt is 'QWidget :must construct QApplication before Qwidget,
QtWS25 Last Chance

Spyder is not launching : Error at command prompt is 'QWidget :must construct QApplication before Qwidget,

Scheduled Pinned Locked Moved Unsolved Qt for Python
qt for python
6 Posts 3 Posters 1.4k 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.
  • Y Offline
    Y Offline
    Yash_iitb
    wrote on last edited by
    #1

    error desktop.png

    jsulmJ 1 Reply Last reply
    0
    • Y Yash_iitb

      error desktop.png

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

      @Yash_iitb The error tells you what the problem is: before constructing any QWidget based objects you have to construct a QApplication object.

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

      Y 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Yash_iitb The error tells you what the problem is: before constructing any QWidget based objects you have to construct a QApplication object.

        Y Offline
        Y Offline
        Yash_iitb
        wrote on last edited by Yash_iitb
        #3

        @jsulm I tried to read it.. But I couldn't understand what exactly I should do.. Can you help with it. Basically I need to launch Spyder

        jsulmJ 1 Reply Last reply
        0
        • Y Yash_iitb

          @jsulm I tried to read it.. But I couldn't understand what exactly I should do.. Can you help with it. Basically I need to launch Spyder

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

          @Yash_iitb You are creating a QWidget based class instance somewhere in your code before creating QApplication instance. Since I don't have your code I can't help. Post at least your main.cpp file content.

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

          Y 1 Reply Last reply
          2
          • jsulmJ jsulm

            @Yash_iitb You are creating a QWidget based class instance somewhere in your code before creating QApplication instance. Since I don't have your code I can't help. Post at least your main.cpp file content.

            Y Offline
            Y Offline
            Yash_iitb
            wrote on last edited by
            #5

            @jsulm I am not creating any special QWidget based class. I am just launching Spyder. Initially, It was working but now it is showing a problem In launching it. If you want I can share the spyder launching code.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Then it's something you should bring that to the spyder developers.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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