LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Smarter popups in desktop apps

Posted 05-03-2012 at 12:42 PM by Skaperen

Sometimes when you make some mistake in an app, like forgetting to enter a subject for email, you get these popups warning of the problem. Then you have to click OK to dismiss the popup and correct the error.

What I would like to see is for the app to also be checking the error condition that caused the problem, and if it gets corrected, take the popup down automatically. Of course this also means the app developer would have to learn about multithreading and how to put the popup...
Senior Member
Posted in Uncategorized
Views 351 Comments 0 Skaperen is offline
Old

QT4 Event preemption: mouse click to get object name

Posted 05-03-2012 at 11:30 AM by rainbowsally
Updated 09-04-2013 at 10:09 PM by rainbowsally

See also the experiment to dump properties.
http://www.linuxquestions.org/questi...nal-app-34716/

Now that we have event preemption ability, let's get simple again and create ui application that can tell the name of a widget by clicking on it.

[It's simpler than you think but I have uploaded the sources and makefile in case my description of this process is too complicated or confusing.]
...
Member
Posted in Uncategorized
Views 492 Comments 0 rainbowsally is offline
Old

Integrated KVM connector

Posted 05-02-2012 at 09:09 PM by Skaperen

We need a standardized integrated connector that supports ALL of the following in one connector:

1. Dual DVI data links for video up to 2560x1600
2. Single VGA compatible analog signal likes (as in DVI-A)
3. PS/2 keyboard connection
4. PS/2 mouse connection
5. USB

Then maybe the KVM switch market can get their act together.
Senior Member
Posted in Uncategorized
Views 355 Comments 0 Skaperen is offline
Old

GUI Programming: QT4 Event Preeption Part 2-B (temp)

Posted 05-02-2012 at 08:38 PM by rainbowsally

Here's the code to run the examples and create a subclass of QApplication customized for our event preeption test. (See part 2-A)

file: src/utils.h
Code:
// utils.h

#ifndef utils_h
#define utils_h

#include <QObject>

// See explanation in utils.cpp
int lq_hash32(const char* name);

// See explanation in utils.cpp
typedef struct 
{
  int hashid; // computed once
  const
...
Member
Posted in Uncategorized
Views 297 Comments 0 rainbowsally is offline
Old

GUI Programming: QT4 Event Preeption Part 2-A (temp)

Posted 05-02-2012 at 08:32 PM by rainbowsally
Updated 05-04-2012 at 11:33 AM by rainbowsally (QA check failed ;-))

[Corrected hash algorithm to return -1 for null string (aka "") input. May 4, 2012]

Today's features
  • conditional compilation (OLD_SCHOOL vs. ?)
  • discovery of a potential recursion problem in preemptive event handling (QTextEdit)

This example is complicated enough to be but actually is not quite ready for prime time, but I do want to point out the advantage of creating hash values for speeding up text searches in tables of data. See the utils.cpp implementation...
Member
Posted in Uncategorized
Views 5333 Comments 2 rainbowsally is offline

  



All times are GMT -5. The time now is 06:45 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