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. JObs with QMdiSubWindow!
Forum Updated to NodeBB v4.3 + New Features

JObs with QMdiSubWindow!

Scheduled Pinned Locked Moved General and Desktop
11 Posts 5 Posters 5.5k 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.
  • I Offline
    I Offline
    iunknwn
    wrote on last edited by
    #2

    I see problem on line 78. Where is 3rd agrument: Receiver?

    Vista x64 with Qt 4.8.2 and VS2010

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #3

      The receiver is "this". It's an overload of "QObject::connect()":http://doc.qt.nokia.com/4.7/qobject.html#connect-2

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luca
        wrote on last edited by
        #4

        I don't understand very well your problem... Can you describe it better?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbynet
          wrote on last edited by
          #5

          [quote author="Luca" date="1289586569"]I don't understand very well your problem... Can you describe it better?
          [/quote]

          I create three windows. Creates at once a window №1, after pressing in the first window of the button - the window №2 is created, after button pressing in a window №2 - the window №3 is created. When I close a window №3 the window №2 is closed also. But if I close a window №2 window №3 together it is not closed. It would be necessary to me that when I close a window №3 window №2 wasn't closed together. Help!

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Franzk
            wrote on last edited by
            #6

            Can you post the full source code (in a .zip or .tar.*) so people can test themselves?

            "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mbynet
              wrote on last edited by
              #7

              "Full source code":http://www27.zippyshare.com/v/80867820/file.html
              Press Журналы -> Накладные, then + , field Получатель button [...], and close last window.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #8

                You have at least two MDI areas that are nested - one should be enough for a single application. Also, you set QMainWindows into the QMdiSubWindows, which seems not to be a good idea. It also does not make any sense, as you only have one main window with an MDI application.

                I'd suggest cleaning up these issues before going any further.

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  mbynet
                  wrote on last edited by
                  #9

                  ок!

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mbynet
                    wrote on last edited by
                    #10

                    can u give me advice or maybe show an example

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      goetz
                      wrote on last edited by
                      #11

                      There is an "MDI Example":http://doc.qt.nokia.com/4.7/mainwindows-mdi.html in the Qt docs.

                      You should have an MDI area in your "main" MainWindow. If you need to instantiate sub windows from another subwindow you should do this via methods in the main window class. At least it is strange to have another MDI area an an MDI subwindow.

                      http://www.catb.org/~esr/faqs/smart-questions.html

                      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