Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Bei schließen Dialog mit Button Abbrechen, MainWindow mit schließen! C++
Forum Updated to NodeBB v4.3 + New Features

Bei schließen Dialog mit Button Abbrechen, MainWindow mit schließen! C++

Scheduled Pinned Locked Moved Unsolved German
3 Posts 2 Posters 536 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.
  • G Offline
    G Offline
    gerasifbesmumu
    wrote on last edited by
    #1

    Hallo ich brauche schnell Hlfe!

    Ich habe ein Dialog "Login", der mit dem MainWindow zusammen offnet!
    Das Offnen von Dialog "Login" starter in Datei "main.ccp" mit code

    einloggen Einlogen;
    Einlogen.setModal(true);
    Einlogen.exec();
    

    Ich will das bei drücken Button "Abbrechen" in Dialog "Login",
    Mainwindow mit schließt!

    danke Vorraus!!

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @gerasifbesmumu said in Bei schließen Dialog mit Button Abbrechen, MainWindow mit schließen! C++:

      Einlogen.exec();

      Diese Funktion gibt einen Rückgabewert zurück. Damit kannst Du dann entweder das Programm beenden oder MainWindow anzeigen.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • G Offline
        G Offline
        gerasifbesmumu
        wrote on last edited by
        #3

        JA, OK dann mit !

        QApplication::quit();
        
        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