Results 1 to 3 of 3

Thread: problems using kwindowsystem.h class

  1. #1
    Join Date
    Mar 2011
    Location
    Havana, Cuba
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default problems using kwindowsystem.h class

    Hello,

    I have a problem when I include kwindowsystem.h file into a new project, The message error says "No such file or directory". I am using Kubuntu 10.10 and developing on QtCreator 2.1.0. I think that the problem is because I have to install some kde library and add it to my Makefile, but I don't know which library is and neither how to add it to my Makefile.

    Please somebody help me with this problem

    Thanks very much

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,004 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: problems using kwindowsystem.h class

    Hi,

    search for *-dev packages, install them, use 'find' to locate the header files if you don't know where they are getting installed and then read the part about dynamic libraries in the Qt Documentation. (LIBS and INCLUDEPATH)

  3. The following user says thank you to Lykurg for this useful post:

    saimel (11th April 2011)

  4. #3
    Join Date
    Mar 2011
    Location
    Havana, Cuba
    Posts
    17
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: problems using kwindowsystem.h class

    Hi,

    thanks very much for your help, it really works, I only had to install kdelibs5-dev and the header file appear in /usr/include, now am going to continue with the developing


    Added after 1 36 minutes:


    well, as I said in the previous post, it compile fine, but the problems start when I called a function of KWindowSystem class, this is the code:

    #include <kwindowsystem.h>
    #include <netwm.h>

    ... Other functions

    void Test::showInTaskbar() {

    KWindowSystem::setState( winId(), NET::SkipTaskbar );

    }

    the error message is this bellow:

    /home/saez/qt/taskbar/test.cc:-1: error: undefined reference to `KWindowSystem::setState(unsigned long, unsigned long)'

    I saw that code in Knotes code for hide the taskbar entry of the application, that is all that I want to do

    can somebody help me ???
    Last edited by saimel; 11th April 2011 at 22:23.

Similar Threads

  1. accessing static member variables of one class in another class
    By jasonknight in forum General Programming
    Replies: 5
    Last Post: 6th September 2010, 15:53
  2. problems when using QSystemTrayIcon class
    By Raul in forum Qt Programming
    Replies: 3
    Last Post: 10th June 2010, 13:20
  3. Replies: 3
    Last Post: 27th December 2008, 20:34
  4. Replies: 3
    Last Post: 16th May 2007, 12:07
  5. Problems calling C function in C++/Qt class
    By Rayven in forum General Programming
    Replies: 2
    Last Post: 2nd June 2006, 22:32

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.