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. I encountered a problem about monitoring multi-monitor access and disconnect, I do not know if you have encountered

I encountered a problem about monitoring multi-monitor access and disconnect, I do not know if you have encountered

Scheduled Pinned Locked Moved Unsolved Language Bindings
3 Posts 2 Posters 738 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.
  • guardG Offline
    guardG Offline
    guard
    wrote on last edited by
    #1

    void QDesktopWidget::screenCountChanged(int newCount);
    void QGuiApplication::screenAdded(QScreen *screen);
    void QGuiApplication::screenRemoved(QScreen *screen);

    I have successively used the three interfaces and found that when there are two monitors, the signal can be sent normally, but when there are three monitors, the signal cannot be sent accurately.I don't know if you've encountered this problem before

    jsulmJ 1 Reply Last reply
    0
    • guardG guard

      void QDesktopWidget::screenCountChanged(int newCount);
      void QGuiApplication::screenAdded(QScreen *screen);
      void QGuiApplication::screenRemoved(QScreen *screen);

      I have successively used the three interfaces and found that when there are two monitors, the signal can be sent normally, but when there are three monitors, the signal cannot be sent accurately.I don't know if you've encountered this problem before

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @guard said in I encountered a problem about monitoring multi-monitor access and disconnect, I do not know if you have encountered:

      but when there are three monitors, the signal cannot be sent accurately.I don't know if you've encountered this problem before

      Do you mean if there are 3 monitors connected and you connect a fourth one you do not get these signals?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • guardG Offline
        guardG Offline
        guard
        wrote on last edited by
        #3

        No, there are three monitors, and if I disconnect one of them, I get a signal, and if I plug it back in, I get a signal, but if I disconnect it again, I don't get a signal.

        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