QTermWidget

Qt Widgets

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

2
Become a Fan
5.0

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:

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


Ratings & Comments

33 Comments

AlexBSnet

[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]

sunil21

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

momesana

AFAIK, Konsole is based on the kpart module.

un-defined

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

momesana

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

un-defined

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

momesana

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

un-defined

Code is based on Konsole

andyyeng

How to mark input command after terminal display data. Some list data be change when use senText() function. how can mark Keyevent data ?

goertzen

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.

un-defined

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

MrEchoes

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

ElecCham

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.

un-defined

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

ElecCham

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.

un-defined

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

ElecCham

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 :)

zhangfq7112

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.

andyyeng

how to get workdir when terminalDisplay change workdir?

ivanhoe

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?

un-defined

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

carusonr

"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!

andyyeng

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

andyyeng

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#

un-defined

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.

Pling
0 Affiliates
Details
license
version 0.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 2

Other Qt Widgets:

Widget Virtual Keyboard
embitel
last update date: 15 years ago

Score 5.3

Widget Marquee Label
embitel
last update date: 15 years ago

Score 6.1

Widget Color Picker
embitel
last update date: 15 years ago

Score 4.7

QtitanDataGrid advanced Grid for Qt
BigZ1
last update date: 8 years ago

Score 5.7

QtitanRibbon Microsoft RibbonUI and Office Styles for Qt
BigZ1
last update date: 8 years ago

Score 5.2

Q7TaskBar
QDevelopper
last update date: 13 years ago

Score 6.1