QTermWidget
Qt Widgets
Score 69%
Description:

QT4 widget for terminal emulation. It is based on KDE4 Konsole code, which was rewritten entirely, and now it requires QT4 only (no KDE at all).

Package provides the widget library and a sample application.

The best way to get actual source code for QTermWidget is to use CVS (see project page). File releases can be seriously outdated.
Last changelog:

9 years ago

21.03.2009
Decided to change status from alpha to beta. The status will be changed to stable in a month or two, in case of absence of new serious bugreports.

20.09.2008
Added cmake support

01.08.2008
Some internal changes.
Version number updated - now it`s 0.1 (was 0.0.1)

16.07.2008
Added optional scrollbar

06.06.2008
Added color schemes.

26.05.2008
Created "stable" 0.0.1 file release.

11.05.2008
Initial CVS import. Version 0.0.1

AlexBSnet

5 years ago

[code]g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DHAVE_POSIX_OPENPT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.0/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/include -I../.moc -F/usr/local/Cellar/qt/4.8.0/lib -o ../.objs/Pty.o Pty.cpp
g++ -c -pipe -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -Wall -W -DHAVE_POSIX_OPENPT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.0/mkspecs/macx-g++ -I. -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/lib/QtGui.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.0/include -I../.moc -F/usr/local/Cellar/qt/4.8.0/lib -o ../.objs/kpty.o kpty.cpp
kpty.cpp: In member function ‘void KPty::login(const char*, const char*)’:
kpty.cpp:431: warning: ‘utmp’ is deprecated (declared at /usr/include/utmp.h:96)
kpty.cpp:488: error: ‘utmpname’ was not declared in this scope
kpty.cpp:489: error: ‘setutent’ was not declared in this scope
kpty.cpp:490: error: ‘pututline’ was not declared in this scope
kpty.cpp:491: error: ‘endutent’ was not declared in this scope
kpty.cpp:492: error: ‘updwtmp’ was not declared in this scope
kpty.cpp: In member function ‘void KPty::logout()’:
kpty.cpp:527: warning: ‘utmp’ is deprecated (declared at /usr/include/utmp.h:96)
kpty.cpp:527: warning: ‘utmp’ is deprecated (declared at /usr/include/utmp.h:96)
kpty.cpp:538: error: ‘utmpname’ was not declared in this scope
kpty.cpp:539: error: ‘setutent’ was not declared in this scope
kpty.cpp:540: error: ‘getutline’ was not declared in this scope
kpty.cpp:557: error: ‘pututline’ was not declared in this scope
kpty.cpp:559: error: ‘endutent’ was not declared in this scope
make[2]: *** [../.objs/kpty.o] Error 1
make[1]: *** [release-all] Error 2
make: *** [sub-lib-make_default] Error 2
alexim:qtermwidget alex$
[/code]

Report

sunil21

6 years ago

Hi guys,

I am a new bee to Qt. Plz help me in below issue.
I am facing issues with autocomplete functionality of tab key in QtEmbedded-4.7.3 while its working fine on desktop enviorment, but fails to work on the target enviornment.

Does anyone knows the reason behind that?
I had investigated a lot on why it is not woking but cant figure it out.

Thanks,
Sunil

Report

momesana

6 years ago

AFAIK, Konsole is based on the kpart module.

Report

C

un-defined

6 years ago

Q != K
All kde-specific code was rewritten or thrown away.

Report

momesana

6 years ago

Hi,
is the project still alive? Seems like it hasn't been updated since 2008 which is a tremendously long time in the FOSS universe. :-)
Is there a chance you'll bring the stuff in sync with the latest KPart terminal module?

Regards
- Mehdi

Report

C

un-defined

6 years ago

Project is not dead, definitely. Though not so alive as I'd like to.
It's even being updated in cvs from time to time and has a couple of more alive forks.
I cannot promise KParts at all - I have no such needs.. and I already don't remember how it can be done. If you could provide relevant code patch, I would add it to project

Report

momesana

6 years ago

But isn't the stuff already based on kparts? So it shouldn't be that much hassle to update those files you have already taken from KParts. I'll take a look at it later on since I need a Qt based terminal emulator for MeeGo.

Regards
- Mehdi

Report

C

un-defined

6 years ago

Code is based on Konsole

Report

andyyeng

7 years ago

How to mark input command after terminal display data.

Some list data be change when use senText() function.

how can mark Keyevent data ?

Report

goertzen

7 years ago

Off the top of your head, do you think this thing will work on Windows? In other words, are there are any blatant couplings to unix?

Thanks,
Dan.

Report

C

un-defined

7 years ago

I think that this won't work on Windows. Maybe somehow it could be compiled on cygwin, but I'm not sure.

Report

MrEchoes

7 years ago

I've tried with QT-Creator: no way :-(
too much unsatisfied dependencies

Report

ElecCham

7 years ago

I've been trying to get QTerminal running in my "embedded" environment - it's actually a fairly standard Linux/x86 environment, but that it's running Qt/E instead of the standard Qt.

The thing I've run into is that it seems to behave badly upon first opening or when the window loses and regains focus - at those times, it's impossible to activate the window (the cursor remains an open square and you cannot type into the window). I've tried hacking at the code a fair bit, but the only way I could change that behaviour was to put in a delay before the first tab is created.

The only other issue I came across is that the application exits whenever the first tab's shell is exited.

Report

C

un-defined

7 years ago

Did you try to run not QTerminal, but the QTermWidget test app?

Report

ElecCham

7 years ago

Sorry, please ignore the bit about tabs - that was meant to refer to another app using QTermWidget...

If I run either ./consoleq -qws or ./consoleq_d -qws, I have no ability to activate the window so that I may type into it. The only action I can take which has any effect is to close the terminal window.

Report

C

un-defined

7 years ago

It seems that the widget cannot obtain the focus. Maybe there is any special behavior in qt/embedded? try to check src/main.cpp first

Report

ElecCham

7 years ago

I did spend quite a few hours trying to fix this, to no avail...

I have managed a workaround by adding the following line to QTermWidget::init() -

Quote:QTimer::singleShot(0, this, SLOT(setFocus()));

I suspect that this really is a hack though, since I don't understand why I can't focus it in the first place. It's good enough for me to use for the moment though :)

Report

zhangfq7112

7 years ago

I come across the same error, do you find a good solution? In my project, the qtermwidget cannnot open a pseduo teletype and cannot set terminal attributes.

Report

andyyeng

8 years ago

how to get workdir when terminalDisplay change workdir?

Report

ivanhoe

8 years ago

While compiling a project with included qtermwidget.h I get following error:

qtermwidget/lib/kpty.cpp:231:3: Fehler: #error No method to open a PTY master detected.

What is going wrong?

Report

C

un-defined

8 years ago

Add HAVE_POSIX_OPENPT or HAVE_GETPT
to defines (depending on your system pseuduterminal parameters), as in .pro file.


Report

carusonr

4 years ago

"While compiling a project with included qtermwidget.h I get following error:

qtermwidget/lib/kpty.cpp:231:3: Fehler: #error No method to open a PTY master detected.

What is going wrong?"


Re: No method to open a PTY master
by un-defined on: Mar 21 2009

"Add HAVE_POSIX_OPENPT or HAVE_GETPT
to defines (depending on your system pseuduterminal parameters), as in .pro file."

I am receiving the same error while compiling QTermWidget 0.1 for an ARM Cortex-A8 (Freescale Semiconductor i.MX51 SoC, specifically Digi ConnectCore Wi-i.MX51). In the QTermWidget project that includes qtermwidget.h I get following error in qtermwidget/lib/kpty.cpp, line 236:

"qtermwidget/lib/kpty.cpp:236:3: error: #error No method to open a PTY master detected."

I tried to add HAVE_POSIX_OPENPT and/or HAVE_GETPT
to Defines to the lib.pro file but I still had the same error. Does anybody know how the correct Defines? Are there other options to try? Where would I find the system pseudo terminal parameters?

Thanks!

Report

andyyeng

8 years ago

tcgetattr() and tcsetattr()
cound not use on solaris 8,
any one can help to check this ?

Report

andyyeng

8 years ago

Compile Error on solaris 8
kpty.cpp: In member function `bool KPty::open()':

kpty.cpp:347: error: `I_PUSH' was not declared in this scope

kpty.cpp: In member function `void KPty::login(const char*, const char*)':

kpty.cpp:440: error: 'struct utmp' has no member named 'ut_host'

kpty.cpp:440: error: 'struct utmp' has no member named 'ut_host'

kpty.cpp:488: error: `_PATH_UTMP' was not declared in this scope

kpty.cpp:492: error: `_PATH_WTMP' was not declared in this scope

kpty.cpp:492: error: `updwtmp' was not declared in this scope

kpty.cpp:488: warning: unused variable '_PATH_UTMP'

kpty.cpp:492: warning: unused variable '_PATH_WTMP'

kpty.cpp:492: warning: unused variable 'updwtmp'

kpty.cpp: In member function `void KPty::logout()':

kpty.cpp:538: error: `_PATH_UTMP' was not declared in this scope

kpty.cpp:543: error: 'struct utmp' has no member named 'ut_host'

kpty.cpp:543: error: 'struct utmp' has no member named 'ut_host'

kpty.cpp:538: warning: unused variable '_PATH_UTMP'

make[2]: *** [../.objs/kpty.o] Error 1

make[2]: Leaving directory `/export/home/S6589/qtermwidget/lib'

make[1]: *** [release-all] Error 2

make[1]: Leaving directory `/export/home/S6589/qtermwidget/lib'

make: *** [sub-lib-make_default] Error 2

blade_test#

Report

C

un-defined

8 years ago

Solaris part of KPTY was taken as is from KDE code - maybe you should add some additional includes.. I have no solaris now and cannot check it immediatelly. I`ll try to do it a little bit later.

Report

9 years ago

21.03.2009
Decided to change status from alpha to beta. The status will be changed to stable in a month or two, in case of absence of new serious bugreports.

20.09.2008
Added cmake support

01.08.2008
Some internal changes.
Version number updated - now it`s 0.1 (was 0.0.1)

16.07.2008
Added optional scrollbar

06.06.2008
Added color schemes.

26.05.2008
Created "stable" 0.0.1 file release.

11.05.2008
Initial CVS import. Version 0.0.1

product-maker 9 27

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.1
updated Mar 20 2009
added Jun 07 2008
downloads today
0
page views today 0