kde

Linux GUI development

I have a large GUI project that I'd like to port to Linux. What is the best framework to use for GUI programming in Linux? Should KDE / Gnome frameworks be used? Or can I use something more generic other than X? I feel like if I chose one of Gnome or KDE, I'm closing the market out for a chunk of the Linux market who have chosen one ov...

How to set my application's desktop icon for Linux: KDE, Gnome etc?

I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don't know how to make have one for my Linux build. Is there a standard format for KDE, Gnome etc. or will I have to do something special for each one? My app is in c++ and distributed as source so the end user will compile it...

configure knotify to execute a custom command

on KDE, there's a possibility to execute a command when some event happen. for example one can execute a script when kmail receives a mail or when a akregator fetches a new feed. I want to execute the script on a way I can retrieve the mail/feed subject in my script. is there a possibility to specify the program to execute: myprogram <...

How do I force/get to use GTKLookAndFeel in Java on KDE?

Hello First of all, using gnome is not an option (but it is possible to install its libraries). I need to know what is necessary to display a Java Swing desktop application using the current installed KDE look and feel of KDE. Ideally, the solution should allow me to apply a look and feel that looks like the underlying windowing system...

Disable Ctrl-Alt-L in KDE

The IntelliJ IDEA short-cut to reformat source code is Ctrl-Alt-L. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence? ...

embedding an application (in this case a terminal) within a QT application

Hello folks, I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...). I've been trying with: - QX11EmbedContainer placed into the QLayout of my QDialog - QProcess for the program I want to excecute I expect the QProcess running within the QX11Emb...

What is the widget name of the Kde bar used in program like Kate? (image inside)

What is the object name of the Kde bar that provide buttons to hide/unhide widgets? I can't find on kde official API references. It's used in program like Kate, Kdevelop. Here the screenshot of the bar of Kate bottom: http://emilio.plugs.it/bar.png ...

I can't connect KAction to slot on KMainWindow

I have a KMainWindow: //file.h class MainWindow: public KMainWindow { public: MainWindow(QWidget *parent = 0); ... ... ... private slots: void removeClick(); //file.cpp MainWindow::MainWindow(QWidget *parent) : KMainWindow(parent) {} void MainWindow::removeClick() { std::cout << "Remove" << std::endl; } I can c...

How to know a QTreeWidget selected item?

I have a class that inherits by QTreeWidget, how can I know the actually selected row? I explain, usually we connect signals to slots by this way: connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick())); I can't find nothing to similar for QTreeWidget->QTreeWidgetItem. The only way I found is this: redefining the mousePressE...

Can I use Python to intercept global keystrokes in KDE?

I want to make a simple app, ideally in Python, that would run in the background on KDE, listening to all keystrokes being done by the user, so that the app goes to the foreground if a specific combination of keys is pressed. Is that doable? Can anyone point me to such resource? ...

How to access to parent widget on qt?

I have an inherited QTreeWidget (called PackList) class and its parent is a KXmlGuiWindow. How can I access to the parent's slots? I've tried getParent()->mySlot() from the QTreeWidget class but I've got error: no matching function for call to 'PackList::mySlot()' Does anybody know the correct way? Thanks ...

Getting data from a QTreeWidgetItem inherited class

I have a class which inherits from QTreeWidgetItem and I intercept the click event. I need to get another object from inside MY QTreeWidgetItem when I click the tree row, how can I do that?? ...

Changing terminalinterface command after showing it on qt/kdelibs app

I have this terminal on my qt/kde application KLibFactory* factory = KLibLoader::self()->factory("libkonsolepart"); KParts::Part* p = static_cast<KParts::Part*> (factory->create(this,"terminal",QStringList() << "terminal")); assert(p); TerminalInterface* terminalInterface= qobject_cast<TerminalInterface*> (p); terminalInterface->showShe...

(QT/kdelib) how to know the end of a command in KTerminalInterface?

I have a KTerminalInterface (from kparts) in my qt/kdelib app, and I run a command within it. The problem is: how can I know if the program is terminated? I need to know it because at its end I must reset some variable. Does anyone got a similar problem?!? ...

How to load default settings with KConfig on kdelib?

I've a question about KConfig usage. I'm able to write and read settings in my .kde4/share/config/_appname_rc configuration file like that KConfig basicconf; KConfigGroup conf = KConfigGroup(basicconf.group("Settings")); conf.writeEntry("filepath",QString("/path/")); basicconf.sync(); But I don't understand how to use a "default" ...

install EventFilter on QWidget (qt4.4.3/kde4)

I have a K* window, and within it, a widget which needs the events filtered. For example I do not want the possibility of clicking it... How can I do that? Have I to use eventfilters? In this case, what's the best way? ...

Window placement: WinSplit Revolution -like application for Linux (KDE)?

Hello Everyone, What is the WinSplit Revolution -like application for Linux (KDE)? Or maybe there is a functionality in KDE I am missing? Thanks and Happy New Year! ...

Problem with QVariant/QTreeWidgetItem/iterator on qt4.4.3

Hello, here's my problem: In my qt app I have this object, filled before setting up my QTreeWidget's content: QList<QTreeWidgetItem*> items; I fill the QList by this way: QVariant qv; // I need this for "attaching" to the item my linuxPackage object qv.setValue(linuxPackage); packRow->setData(1, Qt::UserRole,qv); // packRow is m...

Removing rows from QTreeWidget (qt programming)

what's the best way to remove a row (QTreeWidgetItem) from a QTreeWidget? The QTreeWidget content has been set by: myQTreeWidget->insertTopLevelItems(0, items); // items = QList<QTreeWidgetItem*> then I remove an item from my QList "items" and I try to clear/reset the QTreeWidget packList->clear(); packList->insertTopLevelItems(...

Using KDE4 localization mechanisms in pure QT4 application

Hi! I'm writing an application that is currently a pure QT4 app. It is designed to run cleanly on both Linux and Windows. However I plan to integrate it a bit into KDE in future and here come the problems with localization/translations. QT4 uses its own tr()/tr().arg().arg() mechanism and .ts/.qm files. KDE4 uses gettext and i18n/i18n...