Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [SOLVED ]All focus, all the time
Forum Update on Monday, May 27th 2025

[SOLVED ]All focus, all the time

Scheduled Pinned Locked Moved Language Bindings
1 Posts 1 Posters 2.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.
  • R Offline
    R Offline
    Raschko
    wrote on last edited by
    #1

    PySide

    The issue being, I want a transparent tope level window to have total focus until right mouse click.

    However with the flag: QtCore.Qt.WA_TranslucentBackground
    Focus is lost on mouse down.

    The point of the application is to display a transparent QImage over the desktop, with lines drawn by the user.
    Sort of an annotation, while working.

    I;ve read on grabMouse and Keyboard, but focus is still lost.


    HAHA! solved it a minute after posting.
    The trick is in the transparency of the objects displayed in the window.
    If I set the QImage's alpha value to 1 (Which you do not notice on screen) windows focus is always kept.

    tricky tricky!!!

    Shop smart, shop "S"mart!

    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