Results 1 to 6 of 6

Thread: Qt objects which requires X11 server

  1. #1
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qt objects which requires X11 server

    Hello everyone!

    I'm currently building an API for a software which can be launched on a Console.
    This API use some part of code which is used in the GUI version, and the API fails sometimes because it needs an X11 server.
    My question is: Which Qt libraries/objects needs an X11 server ?

    For example, I changed all QPixmap objects into QImage because QImage does not need an X11 server.
    Do you know if a list of these objects exists ?

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt objects which requires X11 server

    The documentation of each class specifies to which module the class belongs. Alternatively, you can get a list of all Qt classes by module. For a console application, stay clear of every GUI-related module, such as GUI, Widgets, QtQuick, etc. As long as you RTFM of each class you use, it will be easy to sort them out.

  3. #3
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt objects which requires X11 server

    Thanks for your reply.

    I was searching in the documentation before create this topic.
    I thought that there was a cheat sheet on this subject, but I am wrong.

  4. #4
    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: Qt objects which requires X11 server

    Classes from QtCore never need any graphics system resources.
    Classes from QtGui might.
    With Qt5 one can also use a platform plugin that does not use X11 and then use almost all of QtGui

    Cheers,
    _

  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt objects which requires X11 server

    If all else fails you can fake an X server with Xvfb, but that requires some external fooling about.

  6. #6
    Join Date
    Dec 2015
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt objects which requires X11 server

    Thanks for your replies, I will continue check documentation and test Xvfb.

Similar Threads

  1. makeqpf via command line requires X server?
    By dbaker in forum Qt Tools
    Replies: 4
    Last Post: 29th April 2015, 14:05
  2. Detect whether a server requires SSL connection
    By mentalmushroom in forum Qt Programming
    Replies: 0
    Last Post: 24th May 2012, 12:40
  3. QT HTTP Post issue when server requires cookies
    By shadyabhi in forum Qt Programming
    Replies: 0
    Last Post: 22nd December 2010, 13:10
  4. Replies: 7
    Last Post: 7th June 2010, 14:13
  5. Replies: 7
    Last Post: 18th July 2006, 21:33

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