How to include private header qxkbcommon_p.h?
-
@eyllanesc said in How to include private header qxkbcommon_p.h?:
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h>Thanks @eyllanesc , almost worked! It correctly includes the private header, sadly now it yells at not knowing qxkbcommon.h from inside of the header (line 59). QT += xkbcommon_support didn't helped :/
@MasterBLB You have to install some dependencies(Read https://wiki.qt.io/Building_Qt_5_from_Git for more information):
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev -
Hey mates
I need the header to be able to use keysymToQtKey() for mapping. Ok, I've added to my .pro file:
QT += gui-private core-privatebut this is still not enough. What I am missing?
@MasterBLB said in How to include private header qxkbcommon_p.h?:
core-private
maybe "base-private"?
-
@MasterBLB said in How to include private header qxkbcommon_p.h?:
core-private
maybe "base-private"?
-
@jsulm said in How to include private header qxkbcommon_p.h?:
maybe "base-private"?
Sadly, no such name like base-private :/
:-1: error: Unknown module(s) in QT: base-private@MasterBLB And you did a complete rebuild of your project after adding
QT += gui-private core-private?
-
Well, my .pro looks like:
QT += core gui core-private gui-private greaterThan(QT_MAJOR_VERSION, 4): QT += widgetsand after adding these private stuff to it I've cleaned all configurations for my project, then recompiled it.
Kinda works, as when I type ex. #include <QtCore/private/<alt+tab stuff here>> Qt Creator hints me some private headers, sadly not the one I'm looking for. -
Hi,
Which version of Qt are you using ?
How did you install it ? -
Did you try:
#include <qpa/qxkbcommon_p.h>?
-
@SGaist said in How to include private header qxkbcommon_p.h?:
Did you try:
#include <qpa/qxkbcommon_p.h>?
No.
Tried it now...sadly, the file has not been found. Although what intellisense showed me looked promising, like qplatformwindow_p.h,
Maybe I should add <something>-private to QT += in .pro file? core-private and gui-private is not it. -
Hey mates
I need the header to be able to use keysymToQtKey() for mapping. Ok, I've added to my .pro file:
QT += gui-private core-privatebut this is still not enough. What I am missing?
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h> -
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h>@eyllanesc said in How to include private header qxkbcommon_p.h?:
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h>Thanks @eyllanesc , almost worked! It correctly includes the private header, sadly now it yells at not knowing qxkbcommon.h from inside of the header (line 59). QT += xkbcommon_support didn't helped :/
-
@eyllanesc said in How to include private header qxkbcommon_p.h?:
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h>Thanks @eyllanesc , almost worked! It correctly includes the private header, sadly now it yells at not knowing qxkbcommon.h from inside of the header (line 59). QT += xkbcommon_support didn't helped :/
-
@eyllanesc said in How to include private header qxkbcommon_p.h?:
@MasterBLB Use
QT += xkbcommon_support-privateand#include <private/qxkbcommon_p.h>Thanks @eyllanesc , almost worked! It correctly includes the private header, sadly now it yells at not knowing qxkbcommon.h from inside of the header (line 59). QT += xkbcommon_support didn't helped :/
@MasterBLB You have to install some dependencies(Read https://wiki.qt.io/Building_Qt_5_from_Git for more information):
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev