Results 1 to 6 of 6

Thread: [QT] Blocked signal while moving window

  1. #1
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default [QT] Blocked signal while moving window

    Hello,

    While all the time I'm moving, resizing my window or opening its menu, a signal emitted by a DLL (including in my project) is not received again. When I stop the action on my window, the signal is received. Does anybody have any idea?

    Thanks.

  2. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] Blocked signal while moving window

    could be anything. you give no specifics, how can we?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [QT] Blocked signal while moving window

    Quote Originally Posted by vinzz38 View Post
    Hello,

    While all the time I'm moving, resizing my window or opening its menu, a signal emitted by a DLL (including in my project) is not received again. When I stop the action on my window, the signal is received. Does anybody have any idea?

    Thanks.
    AFAIK this is a normal behaviour on Windows. The platform supresses events sent to a window while it is being dragged. This could have something to do with compositing, I don't know...
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Mar 2012
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: [QT] Blocked signal while moving window

    In fact , i use the QSerialDevice livrary to communicate with a microcontroller. While all the time I'm moving, resizing my window or opening its menu, i reach to send message but the reception is blockend until i end my action on the window. I try to put the sending and the receiving in a different thread, but it's the same.

    Due to the hardware connection, it's difficicult to post some code.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [QT] Blocked signal while moving window

    My only suggestion is to change the operating system Linux does not experience such behaviour. Other than that, you can delegate the communication to a process that does not have any windows and communicate with that process from within your UI.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Jan 2009
    Location
    Russia
    Posts
    309
    Thanks
    2
    Thanked 43 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: [QT] Blocked signal while moving window

    In fact , i use the QSerialDevice livrary to communicate with a microcontroller.
    QSerialDevice had some shortcomings with the I / O, causing heavy load on the CPU and some of the friezes.
    Now QSerialDevice is deprecated, instead use the QtSerialPort
    maybe it will help

Similar Threads

  1. prevent Window Moving?
    By maybnxtseasn in forum Qt Programming
    Replies: 13
    Last Post: 12th March 2012, 16:40
  2. Moving window
    By Kangs in forum Qwt
    Replies: 3
    Last Post: 13th September 2011, 19:12
  3. Moving window freezes event loop
    By P@u1 in forum Qt Programming
    Replies: 1
    Last Post: 11th July 2011, 16:19
  4. how to resize a window when its moving
    By gegebelzebuth in forum Qt Programming
    Replies: 3
    Last Post: 25th February 2011, 10:46
  5. Stop window moving when clicking LMB
    By steg90 in forum Qt Programming
    Replies: 11
    Last Post: 11th June 2007, 10:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.