Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved MainWindow's instant disappearence problem :c

    Game Development
    2
    3
    674
    Loading More Posts
    • 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.
    • W
      Walux last edited by

      I have a QWidget Class and a QMainWindow Class , designed with Qt Designer .
      In the main , i called the widget to show , no problem , and i connected one button to show the MainWindow , but when i click the button , the main window appears in a flash then disappears .

      I'll be grateful for your help.

      Taking things from beginning to end : That's my entertainment !

      1 Reply Last reply Reply Quote 0
      • W
        Walux last edited by

        It's alright , i fixed it .
        All i had to do was add a private instance of my mainWindow class in my widget's header .

        But i'll still b happy to know the reason why it worked now , and didn't work before :)

        Taking things from beginning to end : That's my entertainment !

        1 Reply Last reply Reply Quote 0
        • kshegunov
          kshegunov Moderators last edited by kshegunov

          Hello,
          Please don't double post in multiple forums.

          Kind regards.

          [Topic closed as duplicate of https://forum.qt.io/topic/68396/simple-mainwindow-problem]

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply Reply Quote 1
          • First post
            Last post