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. Buttons and Windows
Qt 6.11 is out! See what's new in the release blog

Buttons and Windows

Scheduled Pinned Locked Moved Unsolved Qt for Python
15 Posts 3 Posters 2.8k Views 1 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 sashup

    @SGaist

    TypeError: addPage(self, QWizardPage): argument 1 has unexpected type 'MainWindow'

    What does It means?

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

    @sashup
    You can add a QWizardPage to a QWizard. You are apparently attempting to add one to MainWindow, which is probably a QMainWindow, not a QWizard.

    S 1 Reply Last reply
    0
    • JonBJ JonB

      @sashup
      You can add a QWizardPage to a QWizard. You are apparently attempting to add one to MainWindow, which is probably a QMainWindow, not a QWizard.

      S Offline
      S Offline
      sashup
      wrote on last edited by
      #7

      @JonB I tried everything. Nothig works

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

        Did you take a look at one of the examples to see how it works ?

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

        S 1 Reply Last reply
        1
        • SGaistS SGaist

          Did you take a look at one of the examples to see how it works ?

          S Offline
          S Offline
          sashup
          wrote on last edited by
          #9

          @SGaist I try it but I have a mistake

          class ClassWizard : public QWizard
          ^
          SyntaxError: invalid syntax

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

            It's a C++ example, you have to translate it in Python.

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

            S 1 Reply Last reply
            0
            • SGaistS SGaist

              It's a C++ example, you have to translate it in Python.

              S Offline
              S Offline
              sashup
              wrote on last edited by
              #11

              @SGaist It is difficult if you dont know python...

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

                Another reason to learn it properly.

                Here you have an example of a wizard. Take care to read the comments.

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

                S 2 Replies Last reply
                0
                • SGaistS SGaist

                  Another reason to learn it properly.

                  Here you have an example of a wizard. Take care to read the comments.

                  S Offline
                  S Offline
                  sashup
                  wrote on last edited by
                  #13

                  @SGaist Thank, I will try it

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Another reason to learn it properly.

                    Here you have an example of a wizard. Take care to read the comments.

                    S Offline
                    S Offline
                    sashup
                    wrote on last edited by
                    #14

                    @SGaist Can I maximize all windows here? I use showMaximized(). But area with the text and buttons dont maximize

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

                      What code are you using ?

                      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
                      0

                      • Login

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