Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to include private header qxkbcommon_p.h?
Forum Updated to NodeBB v4.3 + New Features

How to include private header qxkbcommon_p.h?

Scheduled Pinned Locked Moved Solved General and Desktop
private header
14 Posts 4 Posters 2.1k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MasterBLBM MasterBLB

    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-private
    

    but this is still not enough. What I am missing?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #2

    @MasterBLB said in How to include private header qxkbcommon_p.h?:

    core-private

    maybe "base-private"?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    MasterBLBM 1 Reply Last reply
    0
    • jsulmJ jsulm

      @MasterBLB said in How to include private header qxkbcommon_p.h?:

      core-private

      maybe "base-private"?

      MasterBLBM Offline
      MasterBLBM Offline
      MasterBLB
      wrote on last edited by
      #3

      @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
      
      jsulmJ 1 Reply Last reply
      0
      • MasterBLBM MasterBLB

        @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
        
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        @MasterBLB And you did a complete rebuild of your project after adding

        QT += gui-private core-private
        

        ?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • MasterBLBM Offline
          MasterBLBM Offline
          MasterBLB
          wrote on last edited by
          #5

          Well, my .pro looks like:

          QT += core gui core-private gui-private
          greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
          

          and 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.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            Hi,

            Which version of Qt are you using ?
            How did you install it ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • MasterBLBM Offline
              MasterBLBM Offline
              MasterBLB
              wrote on last edited by
              #7

              5.15.5 commercial, installed via online installer on Ubuntu.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Did you try:

                #include <qpa/qxkbcommon_p.h>
                

                ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                MasterBLBM 1 Reply Last reply
                0
                • SGaistS SGaist

                  Did you try:

                  #include <qpa/qxkbcommon_p.h>
                  

                  ?

                  MasterBLBM Offline
                  MasterBLBM Offline
                  MasterBLB
                  wrote on last edited by
                  #9

                  @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.

                  1 Reply Last reply
                  0
                  • MasterBLBM MasterBLB

                    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-private
                    

                    but this is still not enough. What I am missing?

                    eyllanescE Offline
                    eyllanescE Offline
                    eyllanesc
                    wrote on last edited by
                    #10

                    @MasterBLB Use QT += xkbcommon_support-private and #include <private/qxkbcommon_p.h>

                    MasterBLBM 1 Reply Last reply
                    3
                    • eyllanescE eyllanesc

                      @MasterBLB Use QT += xkbcommon_support-private and #include <private/qxkbcommon_p.h>

                      MasterBLBM Offline
                      MasterBLBM Offline
                      MasterBLB
                      wrote on last edited by
                      #11

                      @eyllanesc said in How to include private header qxkbcommon_p.h?:

                      @MasterBLB Use QT += xkbcommon_support-private and #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 :/

                      eyllanescE 2 Replies Last reply
                      0
                      • MasterBLBM MasterBLB

                        @eyllanesc said in How to include private header qxkbcommon_p.h?:

                        @MasterBLB Use QT += xkbcommon_support-private and #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 :/

                        eyllanescE Offline
                        eyllanescE Offline
                        eyllanesc
                        wrote on last edited by
                        #12
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • MasterBLBM MasterBLB

                          @eyllanesc said in How to include private header qxkbcommon_p.h?:

                          @MasterBLB Use QT += xkbcommon_support-private and #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 :/

                          eyllanescE Offline
                          eyllanescE Offline
                          eyllanesc
                          wrote on last edited by
                          #13

                          @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
                          
                          1 Reply Last reply
                          3
                          • MasterBLBM Offline
                            MasterBLBM Offline
                            MasterBLB
                            wrote on last edited by
                            #14

                            Thanks mate, now it works perfectly :)

                            1 Reply Last reply
                            0

                            • Login

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • Users
                            • Groups
                            • Search
                            • Get Qt Extensions
                            • Unsolved