<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[luols的专栏]]></title><description><![CDATA[不积跬步，无以至千里；不积小流，无以成江海。]]></description><link>https://blog.csdn.net/luols</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; luols]]></copyright><item><title><![CDATA[[Qt]界面显示效果之卷轴]]></title><link>https://blog.csdn.net/luols/article/details/50498077</link><guid>https://blog.csdn.net/luols/article/details/50498077</guid><author>luols</author><pubDate>Mon, 11 Jan 2016 17:04:44 +0800</pubDate><description><![CDATA[Qt界面的淡入淡出效果大家可能都有所接触，不过能不能以“卷轴”的形式慢慢呈现出来呢，我这里先呈上两个效果

展开过程


定格的时候


上源代码，如果不需要就直接略过哈
头文件：
#ifndef QREELWIDGET_H
#define QREELWIDGET_H

#include 
#include 
#include 

class QReelWidget : pub]]></description><category></category></item><item><title><![CDATA[[Qt]自定义控件之开关控件]]></title><link>https://blog.csdn.net/luols/article/details/50246319</link><guid>https://blog.csdn.net/luols/article/details/50246319</guid><author>luols</author><pubDate>Thu, 10 Dec 2015 10:41:09 +0800</pubDate><description><![CDATA[最近在Qt自定义一个开关控件，支持滑动，留存备用

源代码：
#include "switchcontrol.h"

SwitchControl::SwitchControl(QWidget *parent): QWidget(parent)
{
    setMouseTracking(true);
    //OFF背景色
    m_offbkcolor1		= QColor(227,]]></description><category></category></item><item><title><![CDATA[[Qt]新增UAC功能之requireAdministrator]]></title><link>https://blog.csdn.net/luols/article/details/49996369</link><guid>https://blog.csdn.net/luols/article/details/49996369</guid><author>luols</author><pubDate>Mon, 23 Nov 2015 16:31:05 +0800</pubDate><description><![CDATA[我们知道， win7及以上的系统权限控制的非常严格，普通用户在系统目录下没有写的权限，软件经常要写一些配置文件之类的功能就无法操作，
其实特定目录没有写的权限，但软件会运行的好好的，表面没有任何问题，它会自己重定向到C:\Users\当前登录用户名\AppData\Local\VirtualStore\类似这样的文件夹下
而且也能顺利的读取写进去的数据，win7及以上的系统有这样的重定向机制，]]></description><category></category></item><item><title><![CDATA[[C#]光标（cur/ani）转图片（Image）]]></title><link>https://blog.csdn.net/luols/article/details/49585975</link><guid>https://blog.csdn.net/luols/article/details/49585975</guid><author>luols</author><pubDate>Mon, 02 Nov 2015 14:25:59 +0800</pubDate><description><![CDATA[光标转图片用C#方法做个记录：
            System.Drawing.Icon icon = System.Drawing.Icon.ExtractAssociatedIcon("***.cur");
            Image img = Image.FromHbitmap(icon.ToBitmap().GetHbitmap());]]></description><category></category></item><item><title><![CDATA[[Qt]调用外部执行程序（Windows & Mac）]]></title><link>https://blog.csdn.net/luols/article/details/49279661</link><guid>https://blog.csdn.net/luols/article/details/49279661</guid><author>luols</author><pubDate>Tue, 20 Oct 2015 17:24:55 +0800</pubDate><description><![CDATA[Qt本身是一个跨平台开发工具，对于不同平台的外部程序又该如何调用呢


    QStringList args;  //如果需要启动参数的话
#ifdef Q_OS_WIN
    QProcess::startDetached("***.exe", args);
#elif Q_OS_MACX
    QProcess proc;
    proc.start("***.app]]></description><category></category></item><item><title><![CDATA[[Qt]导入导出Excel]]></title><link>https://blog.csdn.net/luols/article/details/48781075</link><guid>https://blog.csdn.net/luols/article/details/48781075</guid><author>luols</author><pubDate>Mon, 28 Sep 2015 10:03:21 +0800</pubDate><description><![CDATA[Qt对Excel的导入导出，有备无患

void onImportExcel(QString filePath)
{
    QAxObject excel("Excel.Application");
    excel.setProperty("Visible", false);
    QAxObject *work_books = excel.querySubObject("Wo]]></description><category></category></item><item><title><![CDATA[[Qt]不带标题栏（FramelessWindowHint）的窗体移动及调整大小]]></title><link>https://blog.csdn.net/luols/article/details/48733721</link><guid>https://blog.csdn.net/luols/article/details/48733721</guid><author>luols</author><pubDate>Fri, 25 Sep 2015 16:01:07 +0800</pubDate><description><![CDATA[Qt窗体若设置了
setWindowFlags (Qt::FramelessWindowHint);



运行后该窗体是无法进行移动和调整大小的，那要如何才能让它和普通窗体一样进行移动和调整其大小的呢？方案如下：


void QFramelessWindow::mousePressEvent(QMouseEvent *event)
{
    if (event->butt]]></description><category></category></item><item><title><![CDATA[[Qt]获取Mac系统的有效网卡和序列号及硬件ID等信息（]]></title><link>https://blog.csdn.net/luols/article/details/45579365</link><guid>https://blog.csdn.net/luols/article/details/45579365</guid><author>luols</author><pubDate>Fri, 08 May 2015 14:41:42 +0800</pubDate><description><![CDATA[Qt是一个挺不错的跨平台开发工具，可有时候想获取一些系统（特别是Mac系统）基本信息却并不是那么手到擒来
比如本文想获取Mac，序列号等信息就花费了好一番工夫，特记录于此以备不时之需。
说明：以下代码经Qt 5.3测试通过
        //获取序列号
        QProcess proc;
        QStringList args;
        args  "-c]]></description><category></category></item><item><title><![CDATA[FlowLayoutPanel内用户控件通过上下移动进行顺序调整]]></title><link>https://blog.csdn.net/luols/article/details/43704855</link><guid>https://blog.csdn.net/luols/article/details/43704855</guid><author>luols</author><pubDate>Tue, 10 Feb 2015 16:46:42 +0800</pubDate><description><![CDATA[我觉得FlowLayoutPanel容器真心是一个很好用的容器，尤其对其里面的控件有位置要求的时候，任意删除其中一个控件，后面的控件会自动上移，这很好的满足了本文所要阐述的需求要点：控制控件的顺序。样图如下：

用户控件源代码：
using System;
using System.Windows.Forms;

namespace Demo
{
    public partial cla]]></description><category></category></item><item><title><![CDATA[水晶报表无法编辑公式字段]]></title><link>https://blog.csdn.net/luols/article/details/40740475</link><guid>https://blog.csdn.net/luols/article/details/40740475</guid><author>luols</author><pubDate>Mon, 03 Nov 2014 14:30:57 +0800</pubDate><description><![CDATA[这个问题实在太诡异，编辑公式字段，导致整个vs不能用，看似vs“死”掉，但通过任务管理器可以看出vs并没“死”，很正常的处于运行状态。用这么多年的水晶报表，从没出现这样的问题，即使新建一份rpt或者新建工程都无济于事，让人百思不得其解！
最后找到这篇文章Edit Formula Field Hangs VS 2008
才知道当vs“死”掉的时候可以通过【Alt + 空格】调出菜单，选择最大化即]]></description><category></category></item><item><title><![CDATA[[C#]使用mciSendString播放背景音乐并控制音量（wav等）]]></title><link>https://blog.csdn.net/luols/article/details/38750907</link><guid>https://blog.csdn.net/luols/article/details/38750907</guid><author>luols</author><pubDate>Fri, 22 Aug 2014 10:05:10 +0800</pubDate><description><![CDATA[C# 播放音乐有很多方法，比如API的PlaySound，但是这个没法控制]]></description><category></category></item><item><title><![CDATA[C#导出到Excel或PDF]]></title><link>https://blog.csdn.net/luols/article/details/27177559</link><guid>https://blog.csdn.net/luols/article/details/27177559</guid><author>luols</author><pubDate>Tue, 27 May 2014 10:22:52 +0800</pubDate><description><![CDATA[C#导出到Excel和前文：Excel画斜线以及Excel宏的利用]]></description><category></category></item><item><title><![CDATA[Qt共享库及其调用（Window&Linux&Mac）]]></title><link>https://blog.csdn.net/luols/article/details/25625691</link><guid>https://blog.csdn.net/luols/article/details/25625691</guid><author>luols</author><pubDate>Mon, 12 May 2014 15:32:02 +0800</pubDate><description><![CDATA[1、Qt新建库工程DemoDll
其中DemoDll头文件：
#ifndef DEMODLL_H
#define DEMODLL_H

#include "demodll_global.h"

/* 下面这段class没啥用，可以直接删掉
class DEMODLLSHARED_EXPORT DemoDll
{
    
public:
    DemoDll();
};]]></description><category></category></item><item><title><![CDATA[[C#]桌面模式下GDI绘制（全透明背景）]]></title><link>https://blog.csdn.net/luols/article/details/23861761</link><guid>https://blog.csdn.net/luols/article/details/23861761</guid><author>luols</author><pubDate>Wed, 16 Apr 2014 17:25:21 +0800</pubDate><description><![CDATA[有时候我们需要这样的需求：在桌面模式下当画板用，在上面写写画画，添加一些批注等。
很自然我们会想到用GDI绘制，可是用GDI，免不了要有一块“板”绘制，也就是免不了窗体，既然要在桌面模式下，那现在的问题就转到如何把窗体设置成全透明模式。透明，很容易想到窗体的Opacity属性，可是若把这个设成全透明，那完全没效果，根本找不到窗体在哪，运行就跟没运行一样，更不用说获得窗体焦点了，可见这条路是行不通]]></description><category></category></item><item><title><![CDATA[[C#]Excel画斜线以及Excel宏的利用]]></title><link>https://blog.csdn.net/luols/article/details/22948737</link><guid>https://blog.csdn.net/luols/article/details/22948737</guid><author>luols</author><pubDate>Fri, 04 Apr 2014 17:21:00 +0800</pubDate><description><![CDATA[我们经常需要把数据导出到Excel，导出过程中很可能需要对导出后的Excel格式进行控制，这里我谨以简单的画斜线为例对C#如何导出Excel&&Excel格式进行简单控制做一个简单的记录
首先我一开始并不知道如何在C#代码在Excel中画斜线，而Excel里面自带的宏帮了我大忙，我们可以充分利用这个宏来记录下操作的源代码，首先录制宏，然后在Excel中做自己需要的动作（我这里就做了画斜线），停止]]></description><category></category></item><item><title><![CDATA[CheckedListBox至少保留一个勾选项]]></title><link>https://blog.csdn.net/luols/article/details/22853009</link><guid>https://blog.csdn.net/luols/article/details/22853009</guid><author>luols</author><pubDate>Thu, 03 Apr 2014 10:26:07 +0800</pubDate><description><![CDATA[有时我们需要这样的需求，CheckedListBox至少得保留一个勾选项，不允许全部不选，特此记录以备不时之需
       void mCheckedListBox_ItemCheck(object sender, ItemCheckEventArgs e)
        {
            if (mCheckedListBox.CheckedIndices.Count == 1 ]]></description><category></category></item><item><title><![CDATA[[C#]多个TrackBar控件联动设置百分比]]></title><link>https://blog.csdn.net/luols/article/details/22782929</link><guid>https://blog.csdn.net/luols/article/details/22782929</guid><author>luols</author><pubDate>Wed, 02 Apr 2014 10:21:56 +0800</pubDate><description><![CDATA[我们有时候需要设计一个比重设置，当然几个比重合计之和肯定要100%，就这么一个简单的需求，换成是你，你会如何设计？个数不确定，另一个则是要保证100%。设计这样的方案困扰了我好几天，最开始设计了几个下拉框，但因操作不方便被痛批好几次，我不知道有没现成的资源可用，山穷水尽后想到TrackBar控件，虽然不能说这是最好的，但起码操作起来还算方便，多个TrackBar联动控制最大的难点在于如何保证几个T]]></description><category></category></item><item><title><![CDATA[Qt容器（QMap/QHash etc）遍历]]></title><link>https://blog.csdn.net/luols/article/details/18266857</link><guid>https://blog.csdn.net/luols/article/details/18266857</guid><author>luols</author><pubDate>Tue, 14 Jan 2014 16:57:11 +0800</pubDate><description><![CDATA[Qt 的容器类提供了两种风格的遍历器：Java 风格和 STL 风格。



Java 风格的遍历器

Java 风格的遍历器是在 Qt4 首先引入的，是 Qt 应用程序首先推荐使用的形式。这种风格比起 STL 风格的遍历器更方便。方便的代价就是不如后者高效。
Java 风格的遍历器指向的是两个元素之间的位置，而不是指向元素本身。因此，它们可能会指向集合第一个元素之前的位置，也可能指]]></description><category></category></item><item><title><![CDATA[Qt圆角窗体+半透明背景+右下角显示（移除窗体标题栏+置顶+不在任务栏显示）]]></title><link>https://blog.csdn.net/luols/article/details/18220001</link><guid>https://blog.csdn.net/luols/article/details/18220001</guid><author>luols</author><pubDate>Mon, 13 Jan 2014 14:17:06 +0800</pubDate><description><![CDATA[现在转到Qt这块，很多东西使用起来确实像是到了另一个世界，特别是一些错误起初让人百思不得其解，比如bool类型的全局变量，你如果不先给它初始化一下，后面会出现一些非常莫名其妙的问题，别想当然的认为bool值默认就是false
最近刚好用到了如何对窗体设置圆角，如何设置透明背景，注意这边的透明只影响到窗体的背景，不影响窗体上的控件，还有如何让窗体在屏幕右下角显示，在此做个记录以备后用
    s]]></description><category></category></item><item><title><![CDATA[关闭Win2003开机提示“上次意外关机”对话框]]></title><link>https://blog.csdn.net/luols/article/details/17554271</link><guid>https://blog.csdn.net/luols/article/details/17554271</guid><author>luols</author><pubDate>Wed, 25 Dec 2013 14:18:34 +0800</pubDate><description><![CDATA[很多人在使用win2003服务器（特别是vps）的时候，都会意外关机，然后出现开机提示“上次意外关机”对话框，如果不及时发现，会影响到使用该服务器的网站，所以必须把这提示关闭，方法如下：
开始菜单-->运行-->输入gpedit，确定，进入组策略编辑器。
依此进入“计算机配置”—>“管理模板”—>“系统”—>显示“关闭事件跟踪程序”—>将属性改为“已禁用”即可。






转载]]></description><category></category></item></channel></rss>