LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

"Old Style" Callbacks In QT4 (commandline tester)

Posted 12-12-2012 at 08:25 AM by rainbowsally

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

A stand-alone TextDisplay widget in QT

Posted 12-10-2012 at 02:47 PM by rainbowsally

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

Playing with the blog.

Posted 04-02-2010 at 12:09 PM by squirrel-the-tire
Tags c++

Here's a hello world C++ program to test the formatting:

#include <iostream>
using namespace std;
int main()
{
cout<<"Hello, World!\n";
cin.get();
}

Quote:
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello, World!\n";
cin.get();
}
LQ Newbie
Posted in Uncategorized
Views 803 Comments 3 squirrel-the-tire is offline
Old

memory allocation

Posted 03-30-2010 at 12:01 AM by amused

How do we allocate memory of struct?

what i did was

Code:
int main()
struct amp
{
    string z;
    char y;
    float x;
    int w;
};

cout <<"The size of 'struct' is"<< sizeof(struct amp)<<"and it is located at"<<struct amp*s = malloc(sizeof(struct amp))<<endl;
it gives me an error---

In funtion 'int main()':
...
LQ Newbie
Posted in Uncategorized
Views 634 Comments 1 amused is offline

  



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

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