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. [SOLVED] [Moved] Close Application
QtWS25 Last Chance

[SOLVED] [Moved] Close Application

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 10.4k 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.
  • V Offline
    V Offline
    Vetryaspa
    wrote on last edited by
    #1

    Hi all,
    sorry form my "Stupid Question" but i can't find the metod to Close main tread and close my application.

    Can explain me the solution?

    Tnx e regard

    1 Reply Last reply
    0
    • BilbonSacquetB Offline
      BilbonSacquetB Offline
      BilbonSacquet
      wrote on last edited by
      #2

      qApp->exit()

      1 Reply Last reply
      0
      • V Offline
        V Offline
        Vetryaspa
        wrote on last edited by
        #3

        but I have to import some FW?

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          Your question is rather general. Did you use "Qt Creator":http://doc.qt.nokia.com/qtcreator-2.3/creator-getting-started.html to generate a project using one of it's wizards?

          What is FW in your dictionary?

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • R Offline
            R Offline
            rokemoon
            wrote on last edited by
            #5

            You need to inlude this
            @#include <QApplication>@
            and call "qApp":http://doc.qt.nokia.com/latest/qapplication.html#qApp -> "quit()":http://doc.qt.nokia.com/latest/qcoreapplication.html#quit

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vetryaspa
              wrote on last edited by
              #6

              :) tnx rokemoon

              tnx to all :)

              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