kde

how to use default icons with qt

瘦欲@ 提交于 2019-12-12 15:42:41
问题 I'm using only Qt (though PyQt) and I don't get icons when I call e.g. QMessageBox.warning(). Is there a way to use the platform's default icons? Currently I'm using the more complete QMessageBox constructor and calling setIconPixmap. 回答1: http://doc.qt.io/qt-5/qmessagebox.html from the above link: QMessageBox supports four predefined message severity levels, or message types, which really only differ in the predefined icon they each show. Specify one of the four predefined message types by

How to choose the graphic toolkit for PyQt

半城伤御伤魂 提交于 2019-12-12 09:43:22
问题 I'm developing an PyQt application for my clients. The problem is that my default graphical is Gnome and my client KDE. So there is some difference I can not contrôle. How can I force the pyQt to choose the good graphical system (Gnome) instead of the default system (KDE)? 回答1: Use QApplication::setStyle ( QStyle * style ) with one of these values as parameter: plastique cde motif sgi windows cleanlooks mac 回答2: app.setStyle(QStyleFactory.create("plastique")) is the way to go 来源: https:/

Starting with KDE Frameworks 5 and Qt Creator

二次信任 提交于 2019-12-12 02:09:27
问题 I've installed fresh QtCreator and Qt 5.8 to my system. As I understand there are 2 Qt toolchains right now on my PC: One in ~/Qt/5.8 (default path) and one is in usr/lib/x86_64-linux-gnu/qt5/bin where KDE stores it for own purposes. The one in /usr/lib/x86_64-linux-gnu/qt5/bin is version 5.7. Ok, If I create a dummy project in Qt Creator then it'll allow me to choose only Qt 5.8 Kit. And if I do so I'll get Project ERROR: Unknown module(s) in QT: KF5DBusAddons on any KDE Frameworks module I

Kde SVN2Git tags not fetched completely

牧云@^-^@ 提交于 2019-12-11 14:09:39
问题 After running Kde svn2git for migrating a single svn repo (with over 26,000 revisions) into several git repos, the tags were not completely fetched. In this case the names of the tags are the same as the name of the branches. After finished the migration step some of the new git repositories contain a few of the original tags and some of them none of the them. There are not errors thrown. Among the aproaches I tried to solve the problem there are: Created a rule with one of the tags that are

dimensions of kde object from ks package, R

一世执手 提交于 2019-12-11 08:31:10
问题 I am using the ks package from R to estimate 2d space utilization using distance and depth information. What I would like to do is to use the 95% contour output to get the maximum vertical and horizontal distance. So essentially, I want to be able to get the dimensions or measurements of the resulting 95% contour. Here is a piece of code with as an example, require(ks) dist<-c(1650,1300,3713,3718) depth<-c(22,19.5,20.5,8.60) dd<-data.frame(cbind(dist,depth)) ## auto bandwidth selection H.pi2<

Mono/C#: A good GUI toolkit ? looks good on KDE?

萝らか妹 提交于 2019-12-11 04:05:01
问题 i am trying to get into developing for linux and i am a .net developer so i decided to give Mono a try. THe problem is that i am having problems trying to find a good gui toolkit. I have chosen KDE over GNOME because its a little bit more pleasing on the eye. I have looked here http://www.mono-project.com/Gui_Toolkits I get the sense GTK# is a good toolkit but its for GNOME. I know you can still run GNOME apps on KDE - but do they look nice ? probably not?? I would really appreciated any

Way to force KDE to not allow minimization of Java JDialog elements?

喜夏-厌秋 提交于 2019-12-11 01:44:01
问题 I have a Java application that uses JDialog boxes for displaying certain information. The JDialog boxes are not minimizable (and shouldn't be), but we've run into a problem specific to Linux KDE desktop (4.3.5, but I believe it probably applies to 4.x). KDE window decorators appear to be overriding Java's and are allowing minimization of JDialog boxes. Windows/Solaris/Linux (GNOME desktops) do not allow minimization of JDialog boxes, it appears to only be KDE. Is there an attribute that I am

How to use KDE Okular's document view widget in a Python Qt app?

前提是你 提交于 2019-12-10 23:12:17
问题 I am writing a desktop application in Python (3.4) on Linux using Qt (4.8) and PyQt. Is there a way to use/import Okular's pdf view functionality as a widget? If yes, how? 回答1: This works for me: import sys from PyKDE4.kdecore import ki18n, KAboutData, KCmdLineArgs from PyKDE4.kdecore import KLibLoader as ll from PyKDE4.kdeui import KApplication import PyKDE4.kparts as kp appName = "KApplication" catalog = "" programName = ki18n ("KApplication") version = "1.0" description = ki18n (

Move application windows on desktop programmatically in Gnome or KDE

我们两清 提交于 2019-12-10 18:26:28
问题 I want to reposition a application window on the desktop using a c++ program . How should i go about doing that , i need solution for both situations . When i have the source of the application which want to move . Move windows of other application by Writing an external program. 回答1: External Bash script: xdotool search --onlyvisible --class dolphin windowmove 13 37 # ^ ^ ^ # window class X & Y coordinates For more information about this, use xdotool search , xdotool windowmove and man

linux clipboard read/write in C

白昼怎懂夜的黑 提交于 2019-12-10 14:54:28
问题 I done lots of googling but I am still unsure on how to proceed. What's the most common way of reading/write to the clipboard under Linux? I want both support for Gnome & KDE desktops. Updated : do I take there isn't an easy solution and one must "aggregate" together multiple sources (gnome, kde) in order to craft a solution? 回答1: Maybe you can look at xclip and see how they have done it. It provides an interface to X selections ("the clipboard") from the command line. It can read data from