| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
What would be involved in creating a generic callback that we could control ourselves, rather than using QTs rather complicated system?
How about a windows style system with a windproc to handle messages?
QT's API is better than windows in that you can see how things are done, especially if you have the C++ sources. It's as visible as you can stand! ;-)
The Windows API is better than QT's only in one respect, and that is that the type safety is somewhat...
|
Member
|
|
Views 418
Comments 0
|
 |
The sources are in the qt4 demos and you can use the pro file if you like, but here's example of how to use the EXT_ALL target in an mc2.def.
This also applies to makefiles in general, but it's much easier to work through an intermediate system such as mc2.
It is also a great demo for using dialogs, and you can choose native or QT built-in styles for them, which makes a big difference for the file and color selection dialogs.
I particularly like the file...
|
Member
|
|
Views 412
Comments 0
|
 |
A stand-alone TextDisplay widget in QT
Skip this part if you know about mc2 (makefile creator, the second generation)
--------------------
Before we start, if you haven't tried mc2 yet, don't be put off by the installation location. The Computer Mad Science Team uses 4 levels of installation for various kinds of apps.
The most basic type is the HOME/bin sandbox. This allows instantly running applications because that folder is usually in the...
|
Member
|
|
Views 409
Comments 0
|
 |
|
Views 568
Comments 0
|
 |
Today's Features: - Center a non-dialog window in qt4.
If you have mc2, 'mc2 -fetch qt4' for the Makefile, otherwise, do whatever you do to get this rolling.
Here are the files for this demo/test.
file: src/main.cpp
Code:
// generic C++ source template created by new.main
#include <stdio.h> // printf(), FILE*, etc.
#include <malloc.h> // malloc(), free()
#include <string.h> // strcpy(), memcpy(), etc.
...
|
Member
|
|
Views 664
Comments 0
|
All times are GMT -5. The time now is 08:27 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|