LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

QT4 dialog & using MC2 EXT_ALL target examples

Posted 12-11-2012 at 12:45 AM by rainbowsally

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
Posted in Uncategorized
Views 594 Comments 0 rainbowsally is offline
Old

new mc2 - creates makefiles from a source tree

Posted 12-07-2012 at 11:17 PM by rainbowsally
Updated 09-04-2013 at 10:04 PM by rainbowsally

Fixed a bug in mc2 noticed here.
Where It Crashed: http://rainbowsally.net/rainbowsally....4.1-rs.tar.xz

The large number of files listed in the mc2.def was overloading the parser so Parser (and the string list file and pipe reader) got a heftier buffer.

The file above is a java application. Not a great one but it shows one way mc2 can even generate makefiles for java applications using EXT_ALL as a target and some other tricks.
...
Member
Posted in Uncategorized
Views 574 Comments 0 rainbowsally is offline
Old

QT giac (qtgiac) and new lib lq/mc2 v. 3.03

Posted 06-05-2012 at 07:58 AM by rainbowsally
Updated 09-04-2013 at 10:06 PM by rainbowsally

[If you have had trouble compiling qtgiac, this might help.]

http://rainbowsally.net/rainbowsally...giac-rs.tar.gz (about 2 megs)

This qtgiac build currently works with the following version of libLQ/mc2 (and also with later builds of the mc2 v. 2x). If you need this to work for sure AND you want to mess with the makefiles, get this version of the libLQ/mc2 as well to make the job a little easier.

http://rainbowsally.net/rainbowsally...x-3.0.3.tar.gz...
Member
Posted in Uncategorized
Views 710 Comments 0 rainbowsally is offline
Old

QT4 Interactive: qt4-info utility to list methods and properties

Posted 05-29-2012 at 09:31 AM by rainbowsally
Updated 06-01-2012 at 12:12 PM by rainbowsally (correction in error msg)

CHANGELOG: 6/1/2001
Corrected argv[<value>] in error msg at line 102 of file: src/qt4-info.cpp.

[If you work with qt4, this is well worth the exercise. You might be surprised at how much we do with so little code. -rs]

Care for a bit of Ye Olde Computer Mad Science? This one is kind of fun.

Todays Features:
  • Look up all QT4 classes and list properties or meta object method calls.

[This is part of the QT Interactive project, because...
Member
Posted in Uncategorized
Views 677 Comments 0 rainbowsally is offline
Old

QT4 GUI Programming: Center Window

Posted 05-28-2012 at 12:50 AM by rainbowsally

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
Posted in Uncategorized
Views 860 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration