kde

Native KDE look for Qt 5 app

。_饼干妹妹 提交于 2019-12-10 01:10:27
问题 I installed Qt5 along with Qt4 on my Kubuntu 12.10 linux machine and noticed the following: Program compiled with Qt4 has native KDE look and feel. I use default KDE's Oxygen theme and so does my program (note smooth gradient with title and blue selection of focused widget); But when recompiled with Qt5 without any changes to code , it uses different style (seems like it is called Fusion ) and it looks awkward and out-of-place (see right pic) What I want is pretty straitforward: I want my app

How can I find the selected item in a QTreeWidget?

自闭症网瘾萝莉.ら 提交于 2019-12-09 13:15:43
问题 I have a class that inherits QTreeWidget. How can I find the currently selected row? Usually I connect signals to slots this way: connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick())); However, I can't find anything similar for QTreeWidget->QTreeWidgetItem . The only way I found is to redefine the mousePressEvent of the QTreeWidget class like this: void MyQTreeWidget::mousePressEvent(QMouseEvent *e){ QTreeView::mousePressEvent(e); const QModelIndex index = indexAt(e->pos()); if (

How can we parse HTTP response header fields using Qt/C++?

我们两清 提交于 2019-12-08 00:44:57
问题 I am writing a piece of software that uses Qt/KDE libs. The objective is to parse the HTTP header response fields into different fields of a struct. So far the HTTP header response is contained in a QString. It looks something like this: "HTTP/1.1 302 Found date: Tue, 05 Jun 2012 07:40:16 GMT server: Apache/2.2.22 (Linux/SUSE) x-prefix: 49.244.80.0/21 x-as: 23752 x-mirrorbrain-mirror: mirror.averse.net x-mirrorbrain-realm: region link: <http://download.services.openoffice.org/files/du.list

KDE neon 安装

余生颓废 提交于 2019-12-06 23:23:24
系统漂亮,新特性多,KDE Neon 作为 KDE 官方亲儿子,在 Kubuntu 团队加入后最近几乎几天一个版本,迭代极快。 当然注意如果有什么问题,需要搜索 KDE neon,如果直接搜 neon 是几乎找不到结果的。 前置 rufus,系统盘制作软件,可以用 UltralISO 替代,但是免费和收费的优越就不说了。 rufus下载地址 neon 下载 镜像可以在官网找到,进入 KDE neon 官网 ,选择下载即可。 如果网速过慢,可以在 中科大开源镜像站 ,上面选择 /kde-application/neon/images 找到镜像下载,里面包含的 LTS 类型和 user 类型皆可。 制作启动盘 由于我的系统为老旧系统,选择使用 rufus 制 大专栏 KDE neon 安装 作系统盘,选择镜像后使用 DD 模式即可让电脑识别。 安装 安装的其他过程就可以忽略,注意一定要安装第三方工具,我第一次没有安装,导致系统在进入了 boot 后一直处于黑屏状态。 在分区的时候选择自定义分区,这里常用文档系统格式有两种:Ext4 和 Btrfs: Ext4,可以体验 systemd 的休眠功能,即把内存挂载到硬盘实现快速关机开机,并保留关机前的操作会话。 Btrfs,提供自动备份功能,快照可以快速恢复系统。 这里虽然我们是双硬盘,但是我们并不使用 20G 的固态,太小了

How can we parse HTTP response header fields using Qt/C++?

戏子无情 提交于 2019-12-06 05:20:32
I am writing a piece of software that uses Qt/KDE libs. The objective is to parse the HTTP header response fields into different fields of a struct. So far the HTTP header response is contained in a QString. It looks something like this: "HTTP/1.1 302 Found date: Tue, 05 Jun 2012 07:40:16 GMT server: Apache/2.2.22 (Linux/SUSE) x-prefix: 49.244.80.0/21 x-as: 23752 x-mirrorbrain-mirror: mirror.averse.net x-mirrorbrain-realm: region link: <http://download.services.openoffice.org/files/du.list.meta4>; rel=describedby; type="application/metalink4+xml" link: <http://download.services.openoffice.org

How does the *NIX GUI work?

旧时模样 提交于 2019-12-06 01:34:13
问题 I would like to know more about what makes the GUI on *NIX systems work, but not quite sure where to begin the research. From my understanding, the X server is what makes all the visuals possible, and atop that there are the various UI environments like KDE, Gnome and others. But, for instance, I have always thought that running under certain UI environments restricted you to programs that utilize that environment, until I realized I'm able to use KDE utilities and software under Gnome and

QDialog - How to remove the minimize button

寵の児 提交于 2019-12-05 22:07:23
Qt 4.8 based, application - Issue with QDialog, minimize button Windows and Gnome (linux) The modal dialog appears with the close button on the right top, and the minimize button is nonexistent . The minimize option are grayed out in every dialog. This makes sense, since the QDialog is modal - if you minimize it, the whole application will be blocked. But here comes the issue: in KDE (linux) the minimize-maximize button appears. It seems that this is a platform dependent feature - I am not quite sure on what do do. Any ideas...? (I tried already with a few windowsFlags but could not find the

在Ubuntu上通过命令行安装Elisa KDE音乐播放器

╄→гoц情女王★ 提交于 2019-12-05 21:51:43
我们已经测试了不同的 Linux 音乐播放器,以创建最佳列表。 而Elisa也属于开源类别的优秀音乐播放器,以及良好的界面和Plasma桌面完整性。 我们可以使用Flatpak框架轻松地在Ubuntu中安装Elisa。 音乐播放器的界面非常现代,可以在曲目,专辑和艺术家的基础上显示音乐列表。 因此,如果有人想尝试KDE音乐播放器Elisa,这里的教程是:如何在Ubuntu中安装KDE Elisa音乐播放器。 转到Linux Ubuntu操作系统。 现在运行命令终端。 您可以使用键盘快捷键CTRL + ALT + T来访问终端。 首先在Ubuntu终端中,使用以下命令安装Flatpak软件部署或包管理工具。 linuxidc@linuxidc:~$ sudo add-apt-repository ppa:alexlarsson/flatpak [sudo] linuxidc 的密码: Linux application sandboxing and distribution framework (formerly xdg-app) 更多信息: https://launchpad.net/~alexlarsson/+archive/ubuntu/flatpak 按 [ENTER] 继续或 Ctrl-c 取消安装。 sudo apt update sudo apt-get install

Renaming a Konsole session from commandline after ssh

倾然丶 夕夏残阳落幕 提交于 2019-12-05 17:57:40
I use dcop to rename a Konsole session, such as dcop $KONSOLE_DCOP_SESSION renameSession "whatever" However, when I ssh to a server and from there, I issue this command, it does not work and gives error: ERROR: Couldn't attach to DCOP server! Is there a way using dcop or otherwise to rename the Konsole session, even though I have ssh 'ed to another computer. The remote server appears not be running dcop and even if it were, that's not the instance you want to be communicating with (dcopserver on the remote host vs dcop on your local host). You can use XTerm escape sequences to change the title

ArchLinux简明安装教程

∥☆過路亽.° 提交于 2019-12-05 13:52:22
ArchLinux是一个十分优秀的发行版,定制性极高,同时不像Gentoo那样花那么多时间编译。安装ArchLinux无疑是对Linux发行版架构的一次熟悉和学习。目前,网上的相关教程基本已经过期,同时官方wiki上对于相关软件的搭配也没有仔细的描述。 按照本文的步骤做,最终你将得到一个KDE环境的ArchLinux。不过我并没有配置打印机,具体请大家wiki cups。 安装可以分为三大部分: 基本系统的安装 驱动安装 桌面环境的安装 ‍ ‍ 注:最新的教程已经移至我的独立博客,此篇不再更新, 点击进入 。 ‍ ‍ 更新了GPT以及UEFI等相关内容。 1.基本系统的安装 硬盘分区 这里的方案比较多,如果是新手,那么你可以只分一个区,我的方案是/boot,/,/home三个分区由于我的笔记本内存有8GB,因此不用swap。 fdisk /dev/sda #/boot为sda1,/为sda2,/home为sda3 安装文件系统 在sda{1,2,3}安装ext4文件系统 mkfs.ext4 /dev/sda1 mkfs.ext4 /dev/sda2 mkfs.ext4 /dev/sda3 挂载分区 #挂载/ mount /dev/sda2 /mnt #创建boot和home以挂载sda1和sda3 cd /mnt mkdir boot mkdir home mount /dev