+ Reply to Thread
Results 1 to 7 of 7

Thread: Qt without x11

  1. #1
    Join Date
    Apr 2017
    Posts
    5
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded

    Default Qt without x11

    I would like to use Qt without x11 in ubuntu 16.
    Can anyone please suggest me possible solutions?

    Thanks in advance
    Last edited by Amrutha; 21st April 2017 at 16:39.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    3,411
    Thanks
    200
    Thanked 530 Times in 520 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Qt without x11

    X11 is required for Qt on linux platforms as far as I know. All of Qt's GUI goes through the platform abstraction layer into the X11 drivers.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,317
    Thanks
    3
    Thanked 4,999 Times in 4,779 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: Qt without x11

    Depends what you want to use. Qt GUI apps on Linux by default use xcb (aka X11) platform plugin, but:
    1. If you don't need GUI at all, disable QtGui module (QT -= gui) in your project
    2. If you need GUI but not X11 (e.g. when using wayland), use a different platform plugin (e.g. add -platform wayland to command line arguments for your app)
    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. The following 2 users say thank you to wysota for this useful post:

    Amrutha (24th April 2017), d_stranz (22nd April 2017)

  5. #4
    Join Date
    Apr 2017
    Posts
    5
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded

    Default Re: Qt without x11

    i need to use qt for displaying to a touch screen using rasberry without x11..before implementing in rasberry pi i wanted to try in ubuntu..
    I would be really grateful if anyone could guide me properly for displaying in a rasberry pi using qt without x11..

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

    Default Re: Qt without x11

    Quote Originally Posted by Amrutha View Post
    i need to use qt for displaying to a touch screen using rasberry without x11..
    In that case run your app with -platform eglfs. Just make sure Pi is not running X11 at that time.

    before implementing in rasberry pi i wanted to try in ubuntu..
    On Ubuntu you can use the default QPA X11 plugin.
    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.


  7. The following user says thank you to wysota for this useful post:

    Amrutha (24th April 2017)

  8. #6
    Join Date
    Apr 2017
    Posts
    5
    Thanks
    2
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded

    Default Re: Qt without x11

    Quote Originally Posted by wysota View Post
    In that case run your app with -platform eglfs. Just make sure Pi is not running X11 at that time.


    On Ubuntu you can use the default QPA X11 plugin.
    when i am trying to run with platform eglfs i am getting an error in config file.
    it is showing as configure cannot be found
    I am new to qt..
    can you please guide me how to configure in qt?
    when i checked i am not having configure.exe in my folder..configure.prf is present..is it a problem?
    Last edited by Amrutha; 24th April 2017 at 12:48.

  9. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,317
    Thanks
    3
    Thanked 4,999 Times in 4,779 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Blog Entries
    4
    Wiki edits
    10

    Default Re: Qt without x11

    "-platform eglfs" is a runtime option for an application you want to execute on Raspberry Pi. Configure has nothing to do with this.

    You can follow e.g. this tutorial to get Qt running on Pi: https://www.ics.com/blog/configuring...r-raspberry-pi
    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.


+ Reply to Thread

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