Solved

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

Posted on 2013-01-30
9
420 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
ID: 38835688
'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
ID: 38835781
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
ID: 38835939
I suggest you download Qt library or QtSdk to get all tools together before start developing. KDE version of things are little different.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:panJames
ID: 38835952
So if I develop my application using this component and run it on Linux without KDE it will not work?
0
 
LVL 7

Assisted Solution

by:irfan_omair
irfan_omair earned 213 total points
ID: 38835960
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
ID: 38835967
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
ID: 38835974
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
ID: 38842886
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
ID: 38844487
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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