12 2019 档案

摘要:转自:https://jingyan.baidu.com/article/8275fc8645343646a03cf6c2.html 对于Qt输入中文的问题一直为人所诟病。 默认Qt携带了IBUS的插件,所以一般情况下使用ibus的输入法那是没什么问题的。 但是使用fcitx就麻烦了,Qt不支持fc 阅读全文
posted @ 2019-12-31 09:14 狂奔~ 编辑
摘要:Qt更新组件出现(“要继续此操作,至少需要一个有效且已启用的储存库”) 目的: 原文:https://www.cnblogs.com/schips/p/11537158.html 当时在安装Qt时,有些组件暂时没用着,然后过一段时间后,需要用到某些该组件时,不用删掉重新再安装。 操作: Window 阅读全文
posted @ 2019-12-25 15:52 狂奔~ 编辑
摘要:https://www.jianshu.com/p/7dad1a4483bd 1)安装 Qt: 第一步:到官网http://download.qt.io/archive/qt/下载 Qt 安装包,此处本人安装的是 qt-opensource-linux-x64-5.7.0.run; 第二步:打开终端 阅读全文
posted @ 2019-12-25 14:57 狂奔~ 编辑
摘要:转自:https://blog.51cto.com/9291927/category19.html Qt高级——QMake用户指南 本文翻译自Qt 4.8官方文档。 一、QMake使用 QMake提供了一个用于管理应用程序、库、其它组件的构建过程的面向工程系统。QMake扩展了每个工程文件的信息,生 阅读全文
posted @ 2019-12-25 11:56 狂奔~ 编辑
摘要:原文:https://www.cnblogs.com/vkang/articles/10237033.html https://www.iteye.com/blog/wan-2004-1258380 qmake的pro文件中有这个变量QMAKE_EXTRA_TARGETS 这个可以理解为额外编译目标 阅读全文
posted @ 2019-12-25 10:45 狂奔~ 编辑
摘要:解决方法: 终端命令:sudo apt-get install libqt4-dev sudo apt-get install libgstreamer0.10-dev sudo apt-get install libgstreamer-plugins-base0.10-dev 解决方案:1)wge 阅读全文
posted @ 2019-12-24 15:25 狂奔~ 编辑
摘要:https://learnopengl-cn.github.io/02%20Lighting/04%20Lighting%20maps/ https://www.jianshu.com/p/855ce8d81849 #include "widget.h" #include <QDebug> #inc 阅读全文
posted @ 2019-12-24 10:03 狂奔~ 编辑
摘要:https://learnopengl-cn.github.io/02%20Lighting/03%20Materials/ https://www.jianshu.com/p/855ce8d81849 #include "QtFunctionWidget.h" #include <QDebug> 阅读全文
posted @ 2019-12-24 09:22 狂奔~ 编辑
摘要:https://www.jianshu.com/p/bc40f5bd60f3 https://learnopengl-cn.github.io/02%20Lighting/01%20Colors/ #include "lightwidget.h" #include <QDebug> #include 阅读全文
posted @ 2019-12-23 15:24 狂奔~ 编辑
摘要:https://learnopengl-cn.github.io/01%20Getting%20started/09%20Camera/#_8 https://www.jianshu.com/p/003b1fb8d6d3 #include "ACamera.h" #include <QDebug> 阅读全文
posted @ 2019-12-23 13:51 狂奔~ 编辑
摘要:原文:https://www.jianshu.com/p/45122bdaae77 opengl核心函数版 #include "corefunctionwidget.h" #include <QDebug> #include <QTimer> static GLuint VAO,VBO,textur 阅读全文
posted @ 2019-12-21 09:08 狂奔~ 编辑
摘要:https://learnopengl-cn.github.io/ 阅读全文
posted @ 2019-12-20 16:21 狂奔~ 编辑
摘要:原文:https://www.jianshu.com/p/62fb681df39c Qt中有对应的QMatrix4x4处理4维矩阵 使用OpenGL函数版 #include "widget.h" #include "ui_widget.h" #include <QTImer> #include <Q 阅读全文
posted @ 2019-12-20 15:42 狂奔~ 编辑
摘要:float timeValue = glfwGetTime(); float greenValue = (sin(timeValue) / 2.0f) + 0.5f; int vertexColorLocation = glGetUniformLocation(shaderProgram, "our 阅读全文
posted @ 2019-12-19 15:38 狂奔~ 编辑
摘要:着色器: //#include <iostream> //#include "Display.h" // //int main() //{ // std::string title("LearnOpenGL"); // Display window(800,600, title); // // // 阅读全文
posted @ 2019-12-18 17:51 狂奔~ 编辑
摘要:http://download.qt.io/archive/qt/ http://download.qt.io/new_archive/qt/5.7/5.7.1/ https://mirrors.ustc.edu.cn/qtproject/archive/ http://download.qt.io 阅读全文
posted @ 2019-12-18 09:20 狂奔~ 编辑
摘要:#include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> void framebuffer_size_callback(GLFWwindow* window, int width, int height) { glViewp 阅读全文
posted @ 2019-12-17 16:19 狂奔~ 编辑
摘要:原文地址https://www.cnblogs.com/smiler/p/4575052.html OpenGL,绘制图形的时候,如果不进行设置,运行的时候会先出现黑窗口再出现Windows窗口。 其实要去除控制台窗口非常简单,只需要修改工程设置,把子系统改成Windows,程序的入口点改成main 阅读全文
posted @ 2019-12-17 15:50 狂奔~ 编辑
摘要:原文地址:https://www.cnblogs.com/wiessharling/p/3750461.html 近期在学习QT时遇到了很多问题这也是其中一个,个人通过在各种书籍和网络上的查阅找到了一些关于这方面的答案,希望能给大家一些帮助。 首先,在QT中对于窗口显示常用的有这么几个方法可以调用: 阅读全文
posted @ 2019-12-17 08:49 狂奔~ 编辑
摘要:proc介绍 https://www.cnblogs.com/dongzhuangdian/p/11366910.html https://blog.csdn.net/majianting/article/details/84843073 free命令 free 命令显示系统内存的使用情况,包括物理 阅读全文
posted @ 2019-12-13 13:25 狂奔~ 编辑
摘要:#!/bin/bash #统计当前文件夹(包括子文件夹)下.sh脚本有效代码行数,不包括注释,和空行 #所有行 MY_LIST_VAR=`egrep -c -h -R --include="*.sh" ^.*$` #echo $MY_VAR MY_ALL_COUNT=0 #所有空行 MY_LIST_ 阅读全文
posted @ 2019-12-09 12:29 狂奔~ 编辑
摘要:#!/bin/bash #expr MY_VAR1=12 MY_VAR2=3 #expr 是命令 MY_VAR3=`expr $MY_VAR1 + $MY_VAR2` MY_VAR4=`expr $MY_VAR1 \* $MY_VAR2` MY_VAR5="$MY_VAR1 + $MY_VAR2" 阅读全文
posted @ 2019-12-06 14:02 狂奔~ 编辑
摘要:cat hold_file.c #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <string.h> #include <strings.h> #include <err 阅读全文
posted @ 2019-12-05 10:37 狂奔~ 编辑
摘要:ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signa 阅读全文
posted @ 2019-12-01 22:00 狂奔~ 编辑

点击右上角即可分享
微信分享提示