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. windowFlags SplashScreen error on exit
Forum Updated to NodeBB v4.3 + New Features

windowFlags SplashScreen error on exit

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 379 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.
  • BuccaneerB Offline
    BuccaneerB Offline
    Buccaneer
    wrote on last edited by
    #1

    Qt4.8 PyQt4.9 windows7
    Hi everyone!
    I'm using

    windowsFlags(QtCore.Qt.SplashScreen)
    

    for main window of my project, to not showing app in taskbar.
    To close my app I rewrite keyPressEvent:

    def keyPressEvent(self, event):
            if (event.modifiers() == QtCore.Qt.ControlModifier) & (event.key() == QtCore.Qt.Key_Q):
                self.close()
    

    In Ubuntu it works well, but in windows it's not terminate the main process.
    When I press Ctrl+Q it close my app, and gui is disappears but the terminal is still busy. The PyCharm tells me that the process is still running.
    Without flag SplashScreen the app exits well.
    What I'm doing wrong? How to close the app with SplashScreen flag and terminate main process (thread)?

    1 Reply Last reply
    0
    • BuccaneerB Offline
      BuccaneerB Offline
      Buccaneer
      wrote on last edited by
      #2

      I figured out by myself
      I use QApplication.quit and app exits well

      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