[Interest] qInstallMsgHandler in QAxServer

2012-04-25 Thread Sergey
Hello, Is it possible to call qInstallMsgHandler in my qaxserver in-process server before creating exported controls? So that message handler would write to log file all information from the moment of loading activex dll into memory? -- Sergey ___ Int

Re: [Interest] Tool tip for a QTableView column heading?

2012-04-25 Thread David Boosalis
Here is an example with a QTreeView, it should work for QTableView. _model = new ModelItemModel(this); setModel(_model); for(int i=0;isetHorizontalHeaderItem(i,headerItem[i]); headerItem[i]->setToolTip(headerToolTips[i]); } The above code is not complete, but I think you get the pictu

Re: [Interest] Where to catch exception when a qml plugin is loaded? Even possible?

2012-04-25 Thread wargand
> First of all, you should almost always avoid throwing anything from > a constructor. Scott Meyers has an item in More Effective C++ about > why it's a bad idea. N, throwing from a constructor is fine. Throwing from a destructor is a big no no. Actually there is no other way to cleanly 'get

Re: [Interest] Where to catch exception when a qml plugin is loaded? Even possible?

2012-04-25 Thread Bo Thorsen
Hi Guido, First of all, you should almost always avoid throwing anything from a constructor. Scott Meyers has an item in More Effective C++ about why it's a bad idea. Second, you can *never* do it in that case. The only place you can put that catch is just before the return in main. It will sc

[Interest] Tool tip for a QTableView column heading?

2012-04-25 Thread Carl Schumann
Qt community, I would like to add tool tips to the column headings of a QTableView instance. Is there a way to do this please? I see that I can get a QHeaderView and add a tool tip to it but that would be for the whole set of headings not one tool tip for each heading, if I understand thing

Re: [Interest] QTextEdit performance

2012-04-25 Thread 1+1=2
Yes, QPlainTextEdit instead of QTextEdit should be used here. And setting a proper maximumBlockCount is helpful. On Wed, Apr 25, 2012 at 10:42 AM, Kimmo Viitanen wrote: >> Is there a better text style widget to use for scrolling log type scenarios? >> >> Is there a trick I need to use to make thi

[Interest] Where to catch exception when a qml plugin is loaded? Even possible?

2012-04-25 Thread wargand
Hi, I have a QDeclarativeExtensionPlugin, which registers a class ImageModel to be used as model in QML. Works fine (see snippet below). Now I am wondering, ist is possible to throw an exception in the ImageModel's contructor? Ok, it is possible, but is it possible to catch it? Where is ImageMo

Re: [Interest] QTextEdit performance

2012-04-25 Thread Kimmo Viitanen
> Is there a better text style widget to use for scrolling log type scenarios? > > Is there a trick I need to use to make this perform better? Perhaps you could try QPlainTextEdit. You could also try playing with the wordWrapMode property. Regards, Kimmo _

Re: [Interest] QTextEdit performance

2012-04-25 Thread Jason H
It's not really a simple task. Everytime you add text, it has to be relayout. That takes a considerable amount of time. The simplifying observation you could make is that these lines are always appended at postion 0 of the line. Meaning a relayout is not necessary. A List view might be bette

[Interest] QTextEdit performance

2012-04-25 Thread Jason Dictos
I'm trying to create a view into a rapidly changing log file. I am appending lines to QTextEdit, and want the scrolling on the screen to be responsive. So far I've been unable to achieve any reasonable level of performance with this simple task. Is there a better text style widget to use for sc

Re: [Interest] Building 32-bit Qt 5 on Mac

2012-04-25 Thread Konstantin Tokarev
25.04.2012, 18:28, "Paul Miller" : >>>  In the wise words of the great sage Mr. T - "I pity the fool still >>>  running a 32-bit Mac!". >>  Why?  What's wrong with a 32-bit Mac?  It can browse the web, you can do >>  email, you can watch movies, you can listen to your music, you can print >>  and

Re: [Interest] Building 32-bit Qt 5 on Mac

2012-04-25 Thread Paul Miller
>> In the wise words of the great sage Mr. T - "I pity the fool still >> running a 32-bit Mac!". > > Why? What's wrong with a 32-bit Mac? It can browse the web, you can do > email, you can watch movies, you can listen to your music, you can print > and scan stuff, and other things. And it provid

[Interest] Limit the local buffer size of QSqlTableModel::select()

2012-04-25 Thread Markus Franke
Dear all, I am using Qt Embedded 4.6.3/QWS on embedded linux. For displaying values from a sqlite database I am using a combination of QTableView and QSqlTableModel. As per the documentation the function QSqlTableModel::select() does not load more than 255? rows from the database and the follo

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Jason H
Ah yes, but the switched from PPC to x86... ;-) PPC is a great design. We use that here, and when we moved to a new architecture, despite a 5x clock in crease it ran at the same or lesser speed than the 200Mhz part. (We have a lot of i/o, which PPC excels at) Incidentally, we are looking for 2

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Jason H
I don't know how this is implemented, it could be anything from binary translation (VM) or just a cross-compile. But the technicality is that the kernel probably isn't directly cross compiled. Rather it s likely adjusted for the simulator and not full-on iOS. Otherwise, I'd expect to year that p

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Konstantin Tokarev
25.04.2012, 17:17, "Jason H" : > I had considered that, but rejected it because Apple designs and manufactures > its own chips. Therefore, they would change their CPU design rather than > switch architectures. Note that their current CPU team (ex. P. A. Semi) was once known as developers of Po

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Jason H
I had considered that, but rejected it because Apple designs and manufactures its own chips. Therefore, they would change their CPU design rather than switch architectures. From: Atlant Schmidt To: 'Jason H' ; "lucas.betsch...@crypto.ch" ; "adam.weinr...@nok

Re: [Interest] Building 32-bit Qt 5 on Mac

2012-04-25 Thread morten.sorvig
On Apr 25, 2012, at 2:02 PM, ext Michael Jackson wrote: OS X 10.6 only requires an intel processor. OS X 10.7 requires a 64 bit intel processor. http://support.apple.com/kb/SP575?viewlocale=en_US&locale=en_US So if Qt 5 supports OS X 10.6 then Qt5 needs to be able to build in 32 bit mode. Mi

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Raul Metsma
They have i386 port also for debugging/developing on iPhoneSimulator Raul On 25.04.2012, at 14:25, Atlant Schmidt wrote: > Jason: > > > iOS will only ever support ARM… > > This is pretty orthogonal to the question on the table, > but I’ll bet this statement is wrong. iOS will support >

Re: [Interest] Building 32-bit Qt 5 on Mac

2012-04-25 Thread Michael Jackson
OS X 10.6 only requires an intel processor. OS X 10.7 requires a 64 bit intel processor. http://support.apple.com/kb/SP575?viewlocale=en_US&locale=en_US So if Qt 5 supports OS X 10.6 then Qt5 needs to be able to build in 32 bit mode. Mike Jackson. On Apr 25, 2012, at 7:39 AM, wrote: > The on

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Atlant Schmidt
Rainer: > Hmm, google has 26.3 million hits for "windows phone > leading platform embedded", You may be running in to the fact that "windows" is a generic computer-science term and doesn't necessarily imply "Windows". Atlant -Original Message- From: inte

Re: [Interest] Building 32-bit Qt 5 on Mac

2012-04-25 Thread morten.sorvig
On Apr 24, 2012, at 6:38 PM, ext Thiago Macieira wrote: On terça-feira, 24 de abril de 2012 11.41.14, Stephen Chu wrote: So I grabbed Qt 5 from git to give it a shot again. I am now more confused then before. :) The configure script uses pre-processor output from qtbase/config.tets/arch/arch.cpp

Re: [Interest] Qt for Android & iOS

2012-04-25 Thread Atlant Schmidt
Jason: > iOS will only ever support ARM… This is pretty orthogonal to the question on the table, but I’ll bet this statement is wrong. iOS will support whichever CPU architecture is seen as giving the best performance per Watt* and right now, that’s ARM. But in the future, it may be som

Re: [Interest] hidpi mode on osx

2012-04-25 Thread morten.sorvig
On Apr 24, 2012, at 6:00 PM, ext Jason Dictos wrote: Any plans for Qt to function properly in the hidpi mode on osx? http://www.cultofmac.com/132751/enable-retina-like-hidpi-display-modes-in-os-x-lion-video-how-to/ Yes, this something we want to have working. I've done some testing using Qt C

Re: [Interest] type casting 5 levels down no error but not proper

2012-04-25 Thread Konstantin Tokarev
25.04.2012, 13:16, "Sujan Dasmahapatra" : > Is this correct type castting??? > > MainWindow *mainwinhandle = qobject_cast( > sheet->parent()->parent()->dataPage()->parent())->statusBar()->showMessage(tr(“A > new plot being added”),5000); > > It’s crashing… > I think we gave you enough pointers,

Re: [Interest] type casting 5 levels down no error but not proper

2012-04-25 Thread Sujan Dasmahapatra
class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(QWidget parent=0); }; class CDataPage : public QDialog { Q_OBJECT public: CDataPage(MainWindow *parent=0); } class CTabWidget : public QTabWidget { Q_OBJECT public:

Re: [Interest] type casting 5 levels down no error but not proper

2012-04-25 Thread Carel Combrink
If your requirement is " Please help me getting the mainwindow handle " then try something like this: bool continueSearching = true; QWidget* widgetParent = NULL; QMainWindow* mainWindow = NULL; QWidget* currentWidget = this; while(continueSearching == true) { widg