Re: [Interest] Display nicely truncated text in a QLabel

2013-07-12 Thread Lucas.Betschart
Hi I would derive from QLabel, get the length of it (in pixel) with frameWidth() use QFontMetrics QWidget::fontMetrics () with int QFontMetrics::width ( const QString & text, int len = -1 ) to get the length of the text in pixels, check if it fits, and if no cut some chars and replace it with …

[Interest] OpenSSL AES Encryption

2013-07-09 Thread Lucas.Betschart
Hi Since Qt already uses OpenSSL for networking are there any plans to add the encryption capabilities of OpenSSL (AES etc.) to Qt? So far there seems to be no regular encryption in Qt included. Regards ___ Interest mailing list Interest@qt-project.or

[Interest] QTableWidgetItem different behaviour on Windows

2013-05-23 Thread Lucas.Betschart
Hi If got a QTableWidgetItem which I fill with text that includes newlines. Example text: "a b c" On Linux (Qt 4.7.2) it behaves like I want to: it replaces the newlines with blanks and shows the first 2 text-rows ("a b"). On Windows (Qt 4.8.0) the newlines get delete but not

[Interest] QListWidget jump from last to first item

2013-02-07 Thread Lucas.Betschart
Hi Qt community, I have a QListWidget in an embedded device which is use as a menu. You can choose the menu points with the arrows up/down. I'd like that if the current selected entry is the last and you press down the first entry is selected. Do I have to catch the key events or is there an eas

Re: [Interest] Loading Qt5 libraries during boot

2013-02-01 Thread Lucas.Betschart
Hi, we are looking for a way to load the Qt5 libs, that are required for a Qt5 application, during boot-time. Reason is: We are using an iMX6-quad with a Freescale BSP. Every startup of our application seems to get slowed down by the required loading of the Qt5 libs (app

[Interest] Multiple QT_QWS_FONTDIRs

2013-01-23 Thread Lucas.Betschart
How can I have multiple font-directorys for a Qt-Application? I'd like to have one with the default (and fallback) fonts and one for the localized once (e.g. Arab-Fonts), both in different places. ___ Interest mailing list Interest@qt-project.org http:/

[Interest] QFileSystemWatch on /sys/bus/usb/devices (Linux)

2012-12-19 Thread Lucas.Betschart
Hello Inotify doesn't work on /sys/bus/usb/devices/ (at least not on my kernel version) Can I use QFileSystemWatcher on that directory or is it just a Qt-Wrapper for inotify? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.or

Re: [Interest] QTcpServer memory usage

2012-10-16 Thread Lucas.Betschart
Thanks everybody for the explanations. I've added nexPendingConnection() and a readAll() now. ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

[Interest] QTcpServer memory usage

2012-10-16 Thread Lucas.Betschart
Hi everybody, What happens when I have a QTcpServer which gets a connection that writes much data to it (endless), but I never create a QTcpSocket (with QTcpServer::nextPendingConnection() ) and read this data? Will I the memory usage of my application increase endless? Or will the QTcpServer j

Re: [Interest] QTcpSocket from QTcpServer

2012-07-17 Thread Lucas.Betschart
Thanks for the answer, I've found the problem. I called a Qt Slots from outside my object from a non Qt-Thread (std. Linux thread). I've fixed the problem by call a function of my (Qt) instance which emits a signal that is connected to my slot. ___ Int

[Interest] QTcpSocket from QTcpServer

2012-07-16 Thread Lucas.Betschart
Hi, I got a thread access problem with QTcpSocket. In the initialisation of my object I got 2 QTcpServer created listening on 2 different ports. For each of them I got a the signal newConnection() linked to a different slot. In each I save the QTcpSocket I get from nextPendingConnection(). No

[Interest] Qt on Windows Phone 8

2012-06-20 Thread Lucas.Betschart
Will Qt be avaiable for WP8 since it supports C++ ? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest

Re: [Interest] Problem with QTcpSocket and Windows 7

2012-05-10 Thread Lucas.Betschart
> Without code its difficult to tell. > My best guess: > Most likely the code that watches over the network connection state is > broken. > I dont remember any API in qt that does that. So this may be platform > specific code in your application. Unfortunately I'm not allowed to publish s

Re: [Interest] Problem with QTcpSocket and Windows 7

2012-05-10 Thread Lucas.Betschart
>>perhaps something like "new" default port range: >>http://support.microsoft.com/kb/929851 >>in combination with firewall rules? >I have turned firewall full off. >The defined Port is 12537. >The default port range doesn't affect me since its just if I don't set a port >by my own? Oh no, this

Re: [Interest] Problem with QTcpSocket and Windows 7

2012-05-10 Thread Lucas.Betschart
>perhaps something like "new" default port range: >http://support.microsoft.com/kb/929851 >in combination with firewall rules? I have turned firewall full off. The defined Port is 12537. The default port range doesn't affect me since its just if I don't set a port by my own?

[Interest] Problem with QTcpSocket and Windows 7

2012-05-10 Thread Lucas.Betschart
Hello Qt People, Maybe this is not a Qt specific question, but maybe someone has an idea or had a similar problem. I got a Services running under Windows (till now XP) which connects to our device through Telent/TCP. On Windows XP the services reconnects automatically after a disconnect (plug

Re: [Interest] Print Dialog to print web page

2012-05-07 Thread Lucas.Betschart
> I am in a work to create a web browser,I modified the fancy browser source > code, My problem is how to pop up print dialog to print my web page QPrinter printer; QPrintDialog *printerDialog = new QPrintDialog(&printer, this); if (printerDialog->exec() == QDialog::Accepted) {

Re: [Interest] Qt for Android & iOS

2012-04-24 Thread Lucas.Betschart
hm yes since Digia doesn't even sell commercial support for Symbian/Meego they interpret mobile system as not embedded systems. Maybe one day Google will open the doors for Qt programmers by official supporting Qt on Android... All OS makers want apps, apps, apps but they want the developers to

[Interest] Qt for Android & iOS

2012-04-23 Thread Lucas.Betschart
Quoted from digia.com (digia.com/en/Qt/Digia-is-Committed-to-Qt/): " Digia is comitted to: ... - Advancing the cross-platform Qt promise by supporting leading ( !! ) desktop and embedded platforms ... " So we doubtless can expect an official Android and iOS port since they're leading embedded p

Re: [Interest] No scrollbars in QTableWidget under Ubuntu Unity

2012-04-18 Thread Lucas.Betschart
>just a shot in the dark: >do the scrollbars appear when you hover the mouse near to the assumed >position, e.g. at the bottom of your right view in your screenshot? >thus, are the scrollbars auto-hiding? No, they're not. I'm usign default Ubuntu Theme. I've tried anyway. Also scrolling with the

[Interest] No scrollbars in QTableWidget under Ubuntu Unity

2012-04-18 Thread Lucas.Betschart
Hello, I've got a problem with scrollbars in a QTableWidget. They should be shown, since I've set horizontalScrollBarPolicy to ScrollBarAsNeeded. On Windows (left side of the picture) it works, but not on Ubuntu Linux (11.10 with Unity). Any suggestions? Freundliche Grüsse Lucas Betschart

Re: [Interest] QTest::qWait Error

2012-03-26 Thread Lucas.Betschart
Hi Lucas, > I'm trying to write Unit Tests. > Because I have to wait till some data arrived from network and a signal > triggers, I want to use qWait. > > But everytime I use qWait I get this error, even when there is nothing but > qWait in the code. > > QCOMPARE, QVERIFY etc are working, > I ha

[Interest] QTest::qWait Error

2012-03-26 Thread Lucas.Betschart
Hi, I'm trying to write Unit Tests. Because I have to wait till some data arrived from network and a signal triggers, I want to use qWait. But everytime I use qWait I get this error, even when there is nothing but qWait in the code. QCOMPARE, QVERIFY etc are working, I have added testlib to

Re: [Interest] QPushButton Background Colour

2012-03-05 Thread Lucas.Betschart
Thank you. This works Von: Diego Iastrubni [mailto:diegoi...@gmail.com] Gesendet: Montag, 5. März 2012 13:46 An: Betschart Lucas Cc: interest@qt-project.org Betreff: Re: [Interest] QPushButton Background Colour On Mon, Mar 5, 2012 at 2:37 PM, mailto:lucas.betsch

[Interest] QPushButton Background Colour

2012-03-05 Thread Lucas.Betschart
Hello, I made some QPushButton with only a icon. I'd like to have them flat (like the left one in picture 1&2) & with no text. But when I click on such a flat QPushButton some background colour appears. How can I turn this off? Normal: After clicked: I hope adding pictures to this mail wo

Re: [Interest] MS RTF

2012-03-02 Thread Lucas.Betschart
Thank you both for the hints. I looked at RTF-Qt. It seems that there is no documentation for it, but it might have everything I need. Calligra also uses RTF-Qt. I will try it with that. -Ursprüngliche Nachricht- Von: Boudewijn Rempt [mailto:b...@valdyas.org] Gesendet: Freitag, 2. Mär

[Interest] MS RTF

2012-03-02 Thread Lucas.Betschart
Hello I'm looking for a way to display & write MS RTF in a Qt Widget. I already googled for that and it seems that there is no build in Qt Widget that can handle this. I know HTML/XML would be better then MS RTF, but my tool has to be compatible to an older program which is written in VS C++ an