qx11info qt5

*nix specific usage questions

qx11info qt5

Postby chozabu » Sun Mar 08, 2015 1:36 pm

Hey guys!
As anyone here who knows me may have guessed, I'm a little out of the loop.

RS0.6 is looking groovy, compiles fine with qt4 - but with qt5, I get the old complaint about a problem with
Code: Select all
#include <QX11Info>


I had a poke around - it seems qt5 now supports qx11info! Great, I installed relevant packages (using apt in kubuntu 14.04) and replaced that line with:

Code: Select all
#include <qt5/QtX11Extras/QX11Info>
#include <qt5/QtX11Extras/QtX11Extras>


This now includes fine, but I get the errors

Code: Select all
/home/chozabu/git/RetroShareqt5/retroshare-gui/src/idle/idle_platform.cpp:-1: In member function 'bool IdlePlatform::init()':
/home/chozabu/git/RetroShareqt5/retroshare-gui/src/idle/idle_platform.cpp:78: error: 'class QWidget' has no member named 'x11Info'
  if(XScreenSaverQueryExtension(QApplication::desktop()->screen()->x11Info().display(), &event_base, &error_base)) {

/home/chozabu/git/RetroShareqt5/retroshare-gui/src/idle/idle_platform.cpp:-1: In member function 'int IdlePlatform::secondsIdle()':
/home/chozabu/git/RetroShareqt5/retroshare-gui/src/idle/idle_platform.cpp:89: error: 'class QWidget' has no member named 'x11Info'
  if(!XScreenSaverQueryInfo(QApplication::desktop()->screen()->x11Info().display(), QX11Info::appRootWindow(), d->ss_info))


I'm aware I can just use qt4, or disable the few relevant lines, but it feels like I am missing a trick, can anyone point me in the right direction?

Thanks!
chozabu
 
Posts: 5
Joined: Tue Oct 01, 2013 11:23 pm

Return to RetroShare for Linux and friends

Who is online

Users browsing this forum: No registered users and 1 guest