Results 1 to 2 of 2

Thread: choose screen where to show MainWindow

  1. #1
    Join Date
    Apr 2016
    Posts
    2
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default choose screen where to show MainWindow

    Hey,

    I've installed Qt natively on Raspberry Pi. Now, I opened a remote desktop to the pi, wherein I started qt creator. When I press the run button, the output (MainWindow) also goes to the remote desktop.

    I have connected a 3,5" Touchscreen via spi to the pi. The screen itself is working fine, since I can see the raspian desktop on it. Now, the question is how can I force Qt to show the MainWindow on the hardware screen instead of my remote desktop?

    Any ideas?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: choose screen where to show MainWindow

    Assuming you run and X server on the device, find the content of the DISPLAY environment variable and set that in the environment used for running the application in creator.

    Most likely ":0.0"

    Cheers,
    _

Similar Threads

  1. how to show window in the center of the screen?
    By lovelypp in forum Qt Programming
    Replies: 5
    Last Post: 18th March 2014, 21:43
  2. Replies: 3
    Last Post: 10th February 2011, 11:07
  3. Show dialog in screen center
    By mourad in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2008, 13:41
  4. how to show Dialog as drawer on the bottom of the parent screen?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 7th March 2008, 08:00
  5. hide/show screen update problem
    By SkripT in forum Qt Programming
    Replies: 2
    Last Post: 6th February 2006, 17:49

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.