Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Launching another Qt app while using QWS
Qt 6.11 is out! See what's new in the release blog

Launching another Qt app while using QWS

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.3k 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.
  • D Offline
    D Offline
    DBoosalis
    wrote on last edited by
    #1

    I am using Qt 4.8 embedded on a arm device. I can launch one app with the -qws option and with the keyboard set as an environment variable. This app I launch is a desktop app with a grid of icons that wne selected I launch via QProcess. Whan I start QProcess I give it the app name with no qws option.

    Now somtimes the second window gets the keyboard focus sometimes it doesn't it is like a race condion. How can I make usre the second window always gets the keyboard focus ?

    In the main process I do register a slot for the signal QWSServer::windowEvent() signal. And right now just do a qDebug there. Maybe there is a way to set the keyboard foucs here, but not sure how.

    Anyhelp much appreciated.

    Thank you
    David

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vittalonline
      wrote on last edited by
      #2

      QWidget::setFocusPolicy() function affects click-to-focus.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DBoosalis
        wrote on last edited by
        #3

        Vittal - thanks for the reply. Not sure if this helps me as I do not have a mouse or touch screen, but only a key pad. Furhtermore not sure how setFocusPolicy helps as each widget is in its own event loop, as they are in their own process.

        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