Solved

kcolorbutton -> #include "kcolorbutton.h" <- cannot find this file

Posted on 2013-01-30
9
409 Views
Last Modified: 2013-02-01
Hello Experts!

This is my first attempt to use QT.

I dragged and dropped kcolorbutton component.

Now I cannot compile, compiler cannot find "kcolorbutton.h" file.

What should I do?

Thank you

panJames
0
Comment
Question by:panJames
  • 4
  • 3
  • 2
9 Comments
 
LVL 86

Assisted Solution

by:jkr
jkr earned 287 total points
Comment Utility
'kcolorbutton.h' is not part of Qt, at least not for the Windows version - it actually belongs to KDE.
0
 
LVL 86

Assisted Solution

by:jkr
jkr earned 287 total points
Comment Utility
Oh, BTW - if you are in fact compiling on Linux, installing the KDE development environment should work (see http://techbase.kde.org/Development or better the Packet Manager of your choice).
0
 
LVL 7

Assisted Solution

by:irfan_omair
irfan_omair earned 213 total points
Comment Utility
I suggest you download Qt library or QtSdk to get all tools together before start developing. KDE version of things are little different.
0
 

Author Comment

by:panJames
Comment Utility
So if I develop my application using this component and run it on Linux without KDE it will not work?
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 7

Assisted Solution

by:irfan_omair
irfan_omair earned 213 total points
Comment Utility
True if you dont run on KDE, because you need those Library
0
 
LVL 7

Assisted Solution

by:irfan_omair
irfan_omair earned 213 total points
Comment Utility
why dont you download actual Qt library from here:
http://qt-project.org/downloads
0
 
LVL 86

Assisted Solution

by:jkr
jkr earned 287 total points
Comment Utility
No, it wouldn't work without KDE, e.g. Gnome would fail - they're simply not compatible. That's the price you have to pay when being able to choose between different desktop environments.
0
 

Author Comment

by:panJames
Comment Utility
Are there any components (like drop down menus etc) which I may use with QT and would work on any Ubuntu/ Fedora PCs?

Thank you

panJames
0
 
LVL 86

Accepted Solution

by:
jkr earned 287 total points
Comment Utility
All will work - given that you install the necessary KDE libs ;o)

If you are into a platform-independent alternative, take a look at http://wxwidgets.org/
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now