Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [PyQt] Designer, mutiple main windows, lions, and tigers. Oh, my!
Forum Updated to NodeBB v4.3 + New Features

[PyQt] Designer, mutiple main windows, lions, and tigers. Oh, my!

Scheduled Pinned Locked Moved Language Bindings
3 Posts 1 Posters 3.0k 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.
  • B Offline
    B Offline
    Bryan
    wrote on last edited by
    #1

    Hello PyQt gurus,

    I have a fairly simple question. Using designer I have created a mainwindow with a menu bar plus four additional interactive form windows. I have the slots defined and the classes created to display the form windows.

    I am able to display the main window and interact with the menu but am stumped on how to

    1. save the current display
    2. bring up my data entry form
    3. return back to the saved display once the form has been submitted.

    I have looked at ~20 different examples and none do quite what I am attempting to do. If anyone has advice or a pointer to sample code please let me know.

    I am running Python 2.7, PtQt 4, and Designer 4.8.0.

    Much obliged!

    -Bryan

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bryan
      wrote on last edited by
      #2

      As a follow-up. When I call the second main window it causes two windows to be displayed - one over the top of the other. What I want is the content of the new window to appear inside the working area of the main window.

      Should I be using a widget rather than a second main window?

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bryan
        wrote on last edited by
        #3

        After digging around more I suspect I need to set centralwidget to the new window object to keep everything in the same main window context.

        Advice still welcome ;-)

        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