LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Unread

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

Posted Yesterday at 09:31 AM by rainbowsally

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 it uses the QT system itself (i.e., the libs, not the docs) to generate the information in a format that runs quickly, and displays just enough to jog your memory or pique your curisoty, in which case the docs can be checked for greater detail when needed.]...
Member
Posted in Uncategorized
Views 23 Comments 0 Go to first new comment rainbowsally is offline
Unread

Hmmm..

Posted 05-28-2012 at 12:36 PM by peonuser

Seems awful convenient that with the alleged hard drive shortage, that prices for drives will go even higher. Sometimes I get the sense that with the price of drives of going up, there is no incentive to retool and produce more drives. There is less cost from having less factories and with more profit per drive becase of demand, therefore there is a doubly wider profit margin. With people addicted to having to have media warehouses to put it nicely, makes the hard drive manufacturers even more greedy....
Member
Posted in Uncategorized
Views 40 Comments 0 Go to first new comment peonuser is offline
Unread

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 49 Comments 0 Go to first new comment rainbowsally is offline
Unread

qt type id test/demo

Posted 05-27-2012 at 09:38 PM by rainbowsally
Updated 05-27-2012 at 09:40 PM by rainbowsally

Today's features:
  • Use C++ typeid's to compare or check types.
  • Share base64 encoded compressed file/dir data in message forums (example).

The typeid(obj) doesn't require QT, but it also works with it. Here's a simple makefile and a widget to show some type ids and how to compare
them.

After running this you should have a folder named typeid-test. Type 'make' inside that folder to create the 'main' executable.

Requires base64, QT4, make, gcc, and all that...
Member
Posted in Uncategorized
Views 43 Comments 0 Go to first new comment rainbowsally is offline
Unread

libLQ-qt-mc2 with qt4 support

Posted 05-27-2012 at 09:22 PM by rainbowsally

libLQ-qt-mc2 v. 3.0 (with qt4 support)

We're working on building some support for QT widgets in the LQ library now. This project might self destruct at some time in the future, but for now while working on the qt-interactive project (interpreter, and hopefully a somewhat sane byte-code compiler -- which it currently is no) it looks like there may be a few things that could go into a library for reuse in other apps.

Here's a screenshot of the help display (replacing...
Member
Posted in Uncategorized
Views 54 Comments 0 Go to first new comment rainbowsally is offline

  



All times are GMT -5. The time now is 09:09 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration