Trolltech Home | Qt-jambi-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-jambi-interest Archive, April 2007
jambi and ncurses


Message 1 in thread

Hello!

We are at the verge of starting of some development of instrument
simulation involving GUIs that need look like dos windows. ncurses seems
to be the most acknowleded API for such situations.

Any ideas on how to mix ncurses with jambi/qt, or do any of you have
some others suggestions for frameworks that would integrate with jambi.

Another option is of course to make our own windowing system painting
directly on widgets/graphics items.

Helge F.


Message 2 in thread

Helge Fredriksen wrote:
> Hello!
> 
> We are at the verge of starting of some development of instrument
> simulation involving GUIs that need look like dos windows. ncurses seems
> to be the most acknowledged API for such situations.
 >
> Any ideas on how to mix ncurses with jambi/qt, or do any of you have
> some others suggestions for frameworks that would integrate with jambi.

I'm not aware of any integration between ncurses and Qt. Although there 
has been thought of putting a version of Qt that runs on top of ncurses, 
we would loose quite a lot of features because of the low-resolution 
output, lack of fonts, graphics (although a QPainter producing ASCII art 
would be interesting ;-)

> Another option is of course to make our own windowing system painting
> directly on widgets/graphics items.

Where do these requirements come from? Is this a limitation on the 
device you're running on or is this merely a style requirement for a 
desktop app?

To achieve a dos-like look with Qt I'd go for a custom style and then 
tweak the fonts, colors and layouts accordingly. For top level windows 
you can change the title bar and the window frame to match the desired 
look as well..

-
Gunnar




Message 3 in thread

>
> Where do these requirements come from? Is this a limitation on the
> device you're running on or is this merely a style requirement for a
> desktop app?
Yes, this is indeed a limitation of part of an instrument that we are
going to make a simulation of. This particular instrument only has an
interface with dos like terminal-windows.
>
> To achieve a dos-like look with Qt I'd go for a custom style and then
> tweak the fonts, colors and layouts accordingly. For top level windows
> you can change the title bar and the window frame to match the desired
> look as well..
Nice hint. Is it possible to change style on a particular QGraphicsItem
that exists together with other QGraphicsItems on a Scene?

Helge


Message 4 in thread

Helge Fredriksen wrote:

>> Where do these requirements come from? Is this a limitation on the
>> device you're running on or is this merely a style requirement for a
>> desktop app?
> Yes, this is indeed a limitation of part of an instrument that we are
> going to make a simulation of. This particular instrument only has an
> interface with dos like terminal-windows.

But your software is a "plain desktop app", right? So for you its just a 
matter of making the software look like the device, hence its just a 
style requirement.

>> To achieve a dos-like look with Qt I'd go for a custom style and then
>> tweak the fonts, colors and layouts accordingly. For top level windows
>> you can change the title bar and the window frame to match the desired
>> look as well..
> Nice hint. Is it possible to change style on a particular QGraphicsItem
> that exists together with other QGraphicsItems on a Scene?

What do you mean here? QGraphicsItems does not have a QStyle. My hint 
above was for widgets.

best regards,
Gunnar