Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QWebEngineProcess and Windows Installers
QtWS25 Last Chance

QWebEngineProcess and Windows Installers

Scheduled Pinned Locked Moved Unsolved QtWebEngine
wmendsessionwindowsqwebengineview
2 Posts 1 Posters 402 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.
  • J Offline
    J Offline
    jds21
    wrote on 22 Aug 2023, 19:01 last edited by
    #1

    Hello,
    tl;dr; Does QWebEngineProcess handle WM_QUERYENDSESSION and WM_ENDSESSION events on Windows?

    I have an application that uses a QWebEngineView as a top level window, but I'm running into problems with application updates using as msi installer (I'm using Wix). I would like users to be able to run the installer while the app is running and the app to be closed automatically as part of the update, but it's not working (the process isn't stopped, the updater demands a reboot to complete). It seems that the msi installer detects both the main application and a process called "Qt QWebEngineProcess" as running independently (sometimes). I understand that the main Qt app processes the necessary events (WM_QUERYENDSESSION and WM_ENDSESSION), but I'm wondering if the QWebEngineProcess does not? Can anyone shine any light on this please?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jds21
      wrote on 27 Aug 2023, 18:48 last edited by
      #2

      I think I found the issue - it was because I the app uses a tray icon and WM_CLOSE doesn't fully close the app. This appears to play badly with the Windows restart manager. The solution was to use a custom script to terminate the app during update / removal.

      1 Reply Last reply
      0

      2/2

      27 Aug 2023, 18:48

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved