Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Block external screen through Qt app

    General and Desktop
    2
    2
    434
    Loading More Posts
    • 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.
    • N
      nikit last edited by

      Hi,
      I have one built in display monitor and an external monitor.
      I want to disable external monitor when I run my app.
      Is there any way to disable?

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        Not sure there is a portable Qt way.
        you can however use windows API
        http://stackoverflow.com/questions/19643985/how-to-disable-a-secondary-monitor-with-changedisplaysettingsex
        https://msdn.microsoft.com/en-us/library/ms812499.aspx

        1 Reply Last reply Reply Quote 0
        • First post
          Last post