By Bryan Wu, on 六月 10th, 2009, Category: C++ Programming
Tags: C++, cross platform, FLTK, GUI, LGPL, Programming, Qt, wxWidgets
By Bryan Wu, on 六月 9th, 2009, Category: wxWidgets
Tags: Java, Layout, Programming, Qt, Sizer, wxWidgets, 布局, 编程
Many Windows applications specify absolute position and absolute sizes when they lay out controls in the parent window. This strategy has some drawbacks: The created windows cannot be resized, changes are difficult and creation of good looking windows is time consuming.
Another way which is very common in cross platform frameworks (wxWidgets, QT, Java …) is to use layout algorithm. A layout algorithm determines the size and position of its controls based on its policy. Although every control can provide its preferences about its size, position and alignment, the layout algorithm can ignore these preferences if they are against its layout policy.
Continue reading wxWidget Layout Algorithm Demo - BoxPlanner - 全文阅读
By Bryan Wu, on 六月 5th, 2009, Category: Open Source, wxWidgets
Tags: C++, Linux, Programming, Qt, Sizer, UI, windows, wxWidgets, 界面设计, 编程
个人感觉在wxWidgets UI编程时,一开始最难于理解和使用的就是Sizer,尤其是在与各种控件、Panel嵌套搭配的时候,包括对控件间隙以及父窗口大小发生改变时各个控件的变化定义等。在网上发现这篇文章非常详细的总结了Sizer, Frame和Panel的关系并通过简单的实例深入浅出地讲解了这一部分,转载在此供大家参考,如果你有相关技术问题或者开发心得也可以发评论参加讨论。
[原文如下] 最近在研究跨平台的C/C++ GUI库,基本说来功能强大,稳定且开源的库就是QT和wxWidgets了,关于他们之间具体的比较详见《WxWidgets Compared To Other Toolkits》。 N年以前研究过一段时间QT的代码,不过主要因为其在Windows开发商用软件还是要一定的license费用,所以不能说是真正的免费跨平台。 wxWidgets则是一套免费开源的跨平台C++ GUI库,它的一个特点就是可以转换为native 的api图形界面。就是说用同样的代码,在windows平台看起来就是window风格的,在X Windows平台看起来就是linux风格的。
Continue reading wxWidgets Programming: Sizer, Frame and Panel - 全文阅读
By Bryan Wu, on 五月 26th, 2009, Category: Code::Blocks, Open Source
Tags: code blocks, cross platform, embedded, MinGW, qmake, Qt, sourceforge, UI
再转载一篇关于QT安装和在Code Blocks中使用的文章,含有详细的步骤。关于QT的介绍:
Qt is a cross-platform application and UI framework. Using Qt, you can write applications once and deploy them across many desktop and embedded operating systems without rewriting the source code. Develop applications and user interfaces once, and deploy them across Windows, Mac, Linux/X11, embedded Linux, Windows CE and S60 (coming soon) without rewriting the source code. - qtsoftware.com
Continue reading QT4+MinGW+Code::Blocks IDE集成 - 全文阅读
By Bryan Wu, on 五月 11th, 2009, Category: Code::Blocks
Tags: boost, compiler, MinGW, qmake, Qt, STL
转载这一篇文章,QT开发的程序员可以参考。其中包括了编译Boost,还有Qt的详细设置步骤。
今天写一篇编程日志。
使用VC编译STL以及boost总是会发觉n多warnning,于是决定换一个编译器,结果就找到了gcc for windows版本MinGW.
安装很容易,要么自己download,要么使用官方网提供的工具,把Get Started 或者Manual 或者Reference之类的看一下,然后三下两下就搞定安装。 安装好了,还缺少一个MinGW的IDE,这样可以减少敲命令的繁琐。在Unix下那是万不得已。在Windows下,当然要找个IDE来,于是找到了Code::Blocks安装也很方便。其实它本身就已经附带了gcc安装包,安装完毕以后,在其目录下面就会有一个MinGW目录,那就是gcc编译器的的窝。 近来闲来无聊之时,便拿它们练起了boost和Qt。 总得感觉,gcc编译能力比vc还是要强悍很多。 编译boost时,要添加环境变量设置:
Continue reading Code::Blocks + Qt体验 - 全文阅读
|
|
|