Re: [Interest] [Qt bugreports] (QTBUG-23223) CONFIG+=silent leads to files being moc'd and uic'd even if unnecessary

2012-01-14 Thread Tony Rietwyk
Hi Roman, I am getting this problem, and none of my project files have silent in them. I am surprised that it fixes the problem you. Tony. -Original Message- From: Roman HImmes (via JIRA) [mailto:jira-nore...@qt.nokia.com] Sent: Saturday, 14 January 2012 3:36 AM To:

[Interest] Qt 4.8.0 Main form always opening in the same location ?

2012-01-22 Thread Tony Rietwyk
Hi Everybody, I've recently upgraded my application from Qt 4.6.0 running on Windows XP to 4.8.0 running on Windows 7. Now my main form is always opening at the same location on screen, whereas in XP, it would use a different position each time it was run. The problem is that it's always over

Re: [Interest] QSerialport EV_RXCHAR not emitted or catched while moving window

2012-03-15 Thread Tony Rietwyk
Hi Riccardo, Is this running on Windows? I seem to remember that the timers had the same problem - the events don't get delivered while the window is in resize mode. I never found a fix or workaround for this, and had to implement my own timers in a separate thread looping on sleep. Hope

Re: [Interest] qt.conf

2012-03-20 Thread Tony Rietwyk
to install the qt.conf file at all. ;O) Regards. From: Graham Labdon [mailto:graham.lab...@avalonsciences.com] Sent: Tuesday, 20 March 2012 9:50 PM To: Tony Rietwyk; interest@qt-project.org Subject: RE: [Interest] qt.conf Thanks for your reply Does this imply that qt.conf cannot

[Interest] Qt 4.8.1 and chunked transfer encoding returning 0 size

2012-03-29 Thread Tony Rietwyk
Hi Everybody, I've just upgraded from 4.8.0 commercial to 4.8.1 commercial on Win 7 64 bit. The program accesses a server using HTTPS POST. When the response size is less than about 170Kb everything works as before. With larger responses, the raw headers also include Transfer-Encoding with

Re: [Interest] Very old wait cursor on Mac OSX

2012-04-03 Thread Tony Rietwyk
+tony=rightsoft.com...@qt-project.org] On Behalf Of Dair Grant Sent: Monday, 2 April 2012 6:22 PM To: interest@qt-project.org Subject: Re: [Interest] Very old wait cursor on Mac OSX On 2 Apr 2012, at 08:50, Tony Rietwyk wrote: On Windows 7, it shows the correct spinning blue circle. On OSX

[Interest] QTimer doesn't fire while resizing windows on Windows

2012-06-05 Thread Tony Rietwyk
Hi, Seeing Thiago's response to a recent QTimer question, prompted me to check whether this Windows problem had been circumvented. He says that on Windows QTimer ... deliver events to the Qt event window. Back in 4.3 and WinXP when I first looked at this, I found that the events are not

Re: [Interest] submit policy

2012-06-22 Thread Tony Rietwyk
Hi Stefan, When you add the widgets to the data mapper, why don't you also connect the widgets to a common 'dataChanged' slot, in which you set a timer if not already started, and then in the timeout, do a manual submit? Hope that helps, Tony From:

Re: [Interest] Most direct path to using a QComboBox to edit a cell in a QTableView?

2012-06-25 Thread Tony Rietwyk
Hi Frank, What does the standard delegate do for your model/view at the moment? I can't recall the specifics, but it certainly uses combo boxes at the moment - eg, for boolean fields (which I think is painful, but anyway). I think you need to give more information about what you are

Re: [Interest] QFileDialog::getExistingDirectory does not expand tree on Windows 7

2012-06-27 Thread Tony Rietwyk
Hi Eric, There is a Windows Explorer option to synchronise the left hand tree with the currently selected folder on the right. I'm pretty sure the default is switched off. I have no idea where I found the option though! Explorer is s buggy. I wish MS would hurry up and fix the

Re: [Interest] download a file form http

2012-07-05 Thread Tony Rietwyk
Sent: Thursday, 5 July 2012 4:54 PM Hello, I'm trying to use this: http://doc.qt.nokia.com/4.7-snapshot/network-download-main-cpp.html As a base point for downloading files over the network (surprisingly, there's no such support in built to Qt) I merely found this piece of

Re: [Interest] download a file form http

2012-07-05 Thread Tony Rietwyk
Sent: Thursday, 5 July 2012 6:03 PM Thanks for all of the replies, how do I then make the MOC step happen before everything else in Qt creator or by plainly using qmake? (letting qmake do the right thing did not work). Thanks again! -Sivan It depends on your tool-chain, and how you

Re: [Interest] Problem understanding QAbstractProxyModel::mapFromSource and displaying summary data from a model

2012-07-17 Thread Tony Rietwyk
Sent: Wednesday, 18 July 2012 2:28 PM Hi, I am writing an app in which I am wanting to display my data in a number of different ways. (Currently QT4.8 on linux, but will also run it on windows, if this is relevant!) As an example what I have is a set of tuples with two field, say Name

Re: [Interest] about QSettings

2012-07-18 Thread Tony Rietwyk
*Sent:* Tuesday, July 17, 2012 9:22 PM hi, when i use the qt 4.7.4 with windows xp, i found that when i use the QSettings to write sub key of HKEY_LOCAL_MACHINE, it fails. but when i write the sub key of HKEY_CURRENT_USER, it success. i know that QSettings use the windows

Re: [Interest] QLIneEdit Bug still valid ?

2012-07-19 Thread Tony Rietwyk
Andre said Sent: Tuesday, 17 July 2012 6:22 PM Op 17-7-2012 9:45, Tony Rietwyk schreef: Hi, A much easier solution to disconnecting the signals, is to set a flag before calling setText, then check that in the slot. Hope that helps, Tony Or use QObject::blockSignals(true

Re: [Interest] Creating Desktop Widgets (aka Desklets) in Qt

2012-07-24 Thread Tony Rietwyk
Sent: Wednesday, 25 July 2012 1:35 AM Hi, I am tasked in creating desktop widgets (aka desklets, stuff like system monitors, clocks, etc) in Qt, the target platform is Windows. So far I managed to create a frameless window which stays on bottom and isn't shown on taskbar by following

Re: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server?

2012-08-22 Thread Tony Rietwyk
+tony=rightsoft.com...@qt-project.org] On Behalf Of Tony Rietwyk Sent: Wednesday, 22 August 2012 4:03 PM To: interest@qt-project.org Subject: [Interest] Does QNetworkAccessManager 4.8.1 handle compressed output from an Apache server? Hi Everybody, My application talks to an Apache server

Re: [Interest] memory fragmentation?

2012-08-22 Thread Tony Rietwyk
Hi Jason, If there are 5 public objects whose d-pointers reference the same private object address, how are you going to update them when you relocate the private object? I don't think .Net stores addresses, just handles, so the relocate only needs to update the handle info. That's

Re: [Interest] What did I do?

2012-09-04 Thread Tony Rietwyk
Hi Bill, Diego's response of SelectionBehaviour should only apply when you click in the cells - not the header. In 4.6.0, I added code to achieve this. Have you recently changed version? I can't see any property in QHeaderView to control this behaviour. If you think that the default

Re: [Interest] What did I do?

2012-09-05 Thread Tony Rietwyk
Hi Konrad, I agree that those properties apply to clicking on the table cells. But I think the OP is referring to QHeaderView. The only behaviours documented are dragging, resizing and highlighting the sections. Other behaviours such as selecting cells, or changing the sorting, you

Re: [Interest] Designer - can't remove items in 'Edit Tree Widget'

2012-09-05 Thread Tony Rietwyk
Sent: Thursday, 6 September 2012 4:26 AM Hi, I have created a widget with a tree widget and added some items and subitems (right click, 'Edit Items...') in the Qt Designer v4.8.2 (MS Windows 7). If I want to remove an item with the minus button, nothing happens. Something wrong?

[Interest] How to build Qt using multiple CPU's on Mac?

2012-09-20 Thread Tony Rietwyk
Hi Everybody, On windows when I run nmake after configure, it uses all of my CPU's and is finished in under 2 hours. On mac OSX Lion with XCode 4.3.2, when I run make after configure, it only uses 1 CPU. My google fu is not working and I can't find the parameter for make to get it to use

Re: [Interest] Tree Model and QListView

2012-09-27 Thread Tony Rietwyk
Hi Pierre, Have a look at setRootIndex. Both QListView and QTableView can point anywhere within a tree model. Hint: When you can't find a function in a Qt class - make sure to click on the 'List of all members' link in the Assistant. Especially the more high level classes! Despite

Re: [Interest] Re-ordering items in QListWidget by drag-and-drop

2012-10-01 Thread Tony Rietwyk
Sent: Tuesday, 2 October 2012 12:12 AM On 10/1/12 9:55 AM, R. Reucher wrote: On Monday 01 October 2012 15:54:30 R. Reucher wrote: What else should I set so I can reorder items? Or does QListWidget not support it? You have set the dragDropMode property to InterMove! Correction: the

Re: [Interest] QTreeView width with scroll bar

2012-11-08 Thread Tony Rietwyk
Sent: Thursday, 8 November 2012 6:40 PM On 2012/11/08 09:23 AM, Alex Strickland wrote: However, when the QTreeView gets long enough to automatically add a scroll bar - my calculations don't work and one of the check box columns is obscured by the scrollbar. How can I check if the

Re: [Interest] Why is this not working? Assign direct to QML (through setContextProperty) works, as function doesn't.

2012-11-08 Thread Tony Rietwyk
Sent: Friday, 9 November 2012 8:19 AM Hi, Lets take this (pseudo code) as example. I made a custom QStringListModel class and calles it PathModel: pathmodel.h class PathModel : public QStringListModel { public: explicit PathModel(QObject *parent = 0); }; Then i made a custom

Re: [Interest] calling QMessageBox::warning() may break the DLL detaching on VS2010

2012-11-15 Thread Tony Rietwyk
Hi Xulei, I've always considered DllMain to be only used for thread based initialisations and finalisations. IIRC, it's design is flawed - process unload can occur without the individual thread unloads. This made it useless to disconnect thread specific database objects, for example.

Re: [Interest] Can I update contents in QScrollArea dynamically?

2012-11-15 Thread Tony Rietwyk
Hi Li, This seems to be a common mistake - adding widgets directly to the QScrollArea as child widgets, rather than using its setWidget. Read the docs - they are very clear. Tony. From: interest-bounces+tony=rightsoft.com...@qt-project.org

[Interest] Project using QuaZip needs zlib headers

2012-12-05 Thread Tony Rietwyk
Hi Everybody, I just incorporated the QuaZip project into my Qt 4.8.3 application which is built on Windows, Mac OS and Debian platforms. quazip/zip.h refers to zlib.h. In order to compile I have added this line to my .pro file: INCLUDEPATH += $$QMAKE_LIBDIR_QT/../src/3rdparty/zlib This

Re: [Interest] Widget cross-platform (minimum) size constraint problem.

2013-01-01 Thread Tony Rietwyk
Hi, The short answer is NO - Qt does not guarantee that designer created layouts look identical on all platforms. Especially on Mac where the minimum sizes are much larger due to the larger default font size and layout margins. The same widget type will have different default minimum sizes

Re: [Interest] Report designer

2013-01-03 Thread Tony Rietwyk
Hi Muhammad, We use http://www.nocisoft.com/ncreport.html. It integrates easily and does basic reports well. We use some of the advanced features (scripting), but not master-detail so can't comment on that. The support is first class - problems are usually addressed within 24 hours!

[Interest] Interval QTimer not firing in server after running for months

2013-01-13 Thread Tony Rietwyk
Hi Everybody, My Qt server runs on machines in the cloud with Debian 'squeeze' and Qt 4.6.3. It needs to respond to changes in its configuration settings file. Since QFileSystemWatcher didn't work, my code just polls every 10 minutes using QTimer. It has been running since 10 Oct last year.

Re: [Interest] Bringing Qt, C++ To The Web

2013-01-18 Thread Tony Rietwyk
-Original Message- Anyway, that [zero-install] is definitely a legitimate issue. However I have to puke and kick a puppy when it comes to overall web development. We were approaching something really good with Java and .NET, but these got sidelined by a handful of

Re: [Interest] QScriptProgram and multi-threading

2013-01-21 Thread Tony Rietwyk
Sent: Monday, 21 January 2013 11:32 PM Hi all. I have written a multi-threaded program (Qt 4.8.3) that executes QtScript code in multiple threads, each thread with its own QScriptEngine. The script code is wrapped in QScriptProgram object. Is the same QScriptProgram object supposed to

Re: [Interest] Best way to QObject-wrap simple objects

2013-02-19 Thread Tony Rietwyk
Hi Frank, Sent: Wednesday, 20 February 2013 12:19 AM Hello List! Sometimes I have a simple class, maybe a POD, that I want to pump through a queued signal-slot connection. As I understand it, I need a QObject to do that. So I wrap my class in QObject. You can pass pointers to the POD

Re: [Interest] Globally Converting QTapAndHoldGesture to Mouse Double Click

2013-02-21 Thread Tony Rietwyk
Hi Josh, I think most widgets are expecting Press, Release, DoubleClick, Release sequences. In my own code, I've had to set a flag on the double-click, then action it on the following release. This was where the double-click was to open another dialog. Without this, the release would

Re: [Interest] Access forms from an called class?

2013-03-04 Thread Tony Rietwyk
Sent: Tuesday, 5 March 2013 3:08 AM OK, I did that and I finally got the btle class returning the data. I must say though, I am not at all convinced this is a great way of doing it, because now I'll have a couple of hundred routines in the main class that deal with decoding each message

Re: [Interest] ´ð¸´: how to block run function of QRunnable class

2013-03-18 Thread Tony Rietwyk
Hi Ken, In Qt 4, you have to define your own override of QThread and expose the protected static sleep methods. I'm don't know about Qt 5. Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf

Re: [Interest] ´ð¸´: how to block run function of QRunnable class

2013-03-19 Thread Tony Rietwyk
); ... Regards, Tony From: pengliang(??) [mailto:pengli...@founder.com] Sent: Tuesday, 19 March 2013 4:46 PM To: Tony Rietwyk; interest@qt-project.org Subject: ??: [Interest]´ð¸´: how to block run function of QRunnable class Hi I have defined a class derived from

Re: [Interest] QSqlTableModel - table name issue in Postresql

2013-04-07 Thread Tony Rietwyk
Hi Muhammad, I don't know Postgresql at all. I believe it is based on Oracle. Your problem sounds like the table name was quoted in the create statement, leading to the mixed-case table name being stored in the database. After that you must always quote the table name in any sql,

[Interest] Building qt4 on mac with -no-webkit

2013-04-19 Thread Tony Rietwyk
Hi Everybody, It seems this is not possible, -no-webkit is marked as Windows only in the configure options docs, why is that? If Qt was smart enough to link to the system webkit on Mac, it might make sense, but that doesn't happen. I would like to distribute my app via the Apple app store

Re: [Interest] QCompleter::currentIndex issue

2013-04-21 Thread Tony Rietwyk
Hi Muhammad, I haven't used QCompleter, and I agree that the documentation is vague and crying out for a diagram. From my reading, the currentIndex only relates to the proxy completionModel, not your original model. Nowhere does it show how to get the matching entry in your model. I

Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-21 Thread Tony Rietwyk
-no- phonon -largefile -arch x86_64 -prefix /Users/Shared/Toolkits/Qt-4.8.4 - Dmmacosx-version-min=10.6 And I definitely do NOT get WebKit built and it builds just fine. From what I can tell. Mike Jackson On Apr 20, 2013, at 12:16 AM, Tony Rietwyk t...@rightsoft.com.au wrote: Hi Everybody

Re: [Interest] Building qt4 on mac with -no-webkit

2013-04-22 Thread Tony Rietwyk
Thanks Israel, I have done that for my application. The problem is that it also uses Assistant, which on Mac requires webkit. It's pretty silly - there doesn't seem to be a supported way of stopping webkit from being in QT_CONFIG on Mac! Regards, Tony Sent: Tuesday, 23 April 2013 1:56

Re: [Interest] gradients and Layouts ...

2013-04-30 Thread Tony Rietwyk
Hi Laura, A Qt layout is not a widget, so it can't draw anything itself. I would use a QFrame with the style set to draw the background gradient, then add the layout and child widgets. Hope that helps, Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org

Re: [Interest] TableWidget size dynamically

2013-05-15 Thread Tony Rietwyk
Have you tried QHeaderView.setResizeMode(int, ResizeMode)? Note there may be issues depending on the order in which you set the columns. I found I had set all of the fixed columns before setting any stretchable ones. Tony From:

Re: [Interest] Q_PROPERTY notification across processes?

2013-05-16 Thread Tony Rietwyk
Hi Charley, You didn't say which type of systems this will be running on? What about QtDBus using a direct connection between the applications, instead of the system-wide bus? Even if that doesn't work for you, it has solved many of the same problems, and needed over 20,000 lines

Re: [Interest] change of only one tab in QTabWidget

2013-05-18 Thread Tony Rietwyk
You can always pad the text with spaces to get an approximate result. Tony. From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of Sujan Dasmahapatra Sent: Saturday, 18 May 2013 10:54 AM To:

Re: [Interest] QGroupBox Subclass

2013-05-21 Thread Tony Rietwyk
Sent: Tuesday, 21 May 2013 11:32 PM I am currently using a QGroupBox (with some custom style sheets) as a superclass for a custom widget in our program. QGroupBox has the isCheckable property which we use then style with a custom image for an icon and over ride the toggled to get some

[Interest] Target machine not set in projects generated by qmake for Visual Studio

2013-06-02 Thread Tony Rietwyk
Hi Everybody! When I build my Qt 4.8.4 projects on Windows 7, I always get this warning: LINK : warning LNK4068: /MACHINE not specified; defaulting to X86 and later: project_name - 0 error(s), 1 warning(s) which sucks. I have tried changing

Re: [Interest] Target machine not set in projects generated by qmake for Visual Studio

2013-06-03 Thread Tony Rietwyk
Thanks Ben, that was the clue I was looking for. Tony Hi Tony, This is how I modified the .pro files of my projects: win32 { contains(QMAKE_HOST.arch, x86_64) { QMAKE_LFLAGS += /MACHINE:X64 } else { QMAKE_LFLAGS += /MACHINE:X86 } } IIRC this

Re: [Interest] Terminating a QThread

2013-06-21 Thread Tony Rietwyk
But a bool value can be cached indefinitely, so make sure you declare the flag as volatile! Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of Etienne Sandré-Chardonnal Sent: Friday, 21 June

Re: [Interest] Glueing widgets together

2013-06-28 Thread Tony Rietwyk
Hi Sensei, I have a master dialog with a slave dialog attached to one border. This was done using eventFilter in the slave to listen to the master Move and Resize events - not MouseMove. It's only 10 lines of code, works well and there is no jerkiness. It put the code in the slave, since

Re: [Interest] QWindow::setTransientParent fails on windows

2013-09-25 Thread Tony Rietwyk
Hi Roland, I'm not sure what you are trying to achieve, but I had a similar problem with the splash screen appearing with its own task bar tab. I worked around the problem by doing: int exstyle = GetWindowLong( mpSplash-winId(), GWL_EXSTYLE ); SetWindowLong(

Re: [Interest] QSettings possible bug on Windows

2013-10-01 Thread Tony Rietwyk
Hi Alex, It certainly looks like it should be found. It reminds of a security issue where similar looking unicode characters in folder names were used to scam people. Can you hex dump the characters of each entry in your loop? Maybe you have a virus that has done something similar? Or

Re: [Interest] QTcpServer. Connecting.Sending data.

2013-10-09 Thread Tony Rietwyk
Hi Alexander, QTcpServer.listen only sets up the listening - it does not wait until a new connection arrives. In my code, I only call listen once, then run an event loop. The new connections arrive in the incomingConnection slot. void MyThread::run() { srv = new

Re: [Interest] How to get word that was clicked on in a table view or table widget?

2013-10-11 Thread Tony Rietwyk
Hi Alexei, Interesting question. How does your model get the display text? I assume your model (or the QTableWidget model) is storing a QString. In the cell click handler you can theoretically: - push the display text into a QTextEdit (hidden for release builds) - format it with the

Re: [Interest] Run Console and windows screen

2013-10-28 Thread Tony Rietwyk
: Monday, 28 October 2013 8:00 AM To: Tony Rietwyk Cc: Qt-interest Subject: Re: [Interest] Run Console and windows screen Hi Tony! I think by answering you, I may give some clarification to Frank as well. I already have the console application running. (actually, it is giving me good

Re: [Interest] Get the username:password part of a HTTP request from QTcpSocket

2013-12-01 Thread Tony Rietwyk
Hi Konrad / Lucas -Original Message- Sent: Monday, 2 December 2013 7:27 AM ... In short: if you do not have the need to access every bit directly use an existing server implementation and an easier way to communicate with it. For example Apache has modules for the FCGI and SCGI

Re: [Interest] Unable to create QDialog popup with resizeable border but no title bar

2014-01-20 Thread Tony Rietwyk
Hi Philipp, Have you tried adding Qt::CustomizeWindowHint without Qt::WindowTitleHint in your window flags? Regards, Tony Sent: Tuesday, 21 January 2014 9:27 AM In Win32 thats pretty easy to achieve. However I found no way to create a resizable popup dialog in Qt.

Re: [Interest] Unit test with multiple data

2014-01-27 Thread Tony Rietwyk
Hi Soroush, I hit the same problem, and used this: // Can't use QTEST_MAIN, since we have our own parameters as well. // QTEST_MAIN( TTestPitchXml ) int main(int argc, char *argv[]) { #ifdef QT_GUI_LIB QApplication app(argc, argv); QTEST_DISABLE_KEYPAD_NAVIGATION #else

Re: [Interest] QMdiSubWindow doesn't adjust its size

2014-02-04 Thread Tony Rietwyk
Hi John, In the top level layout in the QMdiSubWindow, what is the sizeConstraint set to? Try Fixed. Hope that helps, Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of John Weeks

Re: [Interest] Compile Speed Question regarding MOC

2014-02-18 Thread Tony Rietwyk
Mike wrote: Sent: Wednesday, 19 February 2014 9:05 AM I have what seems to be an obvious question/answer but the subtleties may not be what I think they are. We have a project with about 500 files most of which inherit from QObject or QWidget which means they all have moc run on them.

Re: [Interest] Finished resizing a window?

2014-02-24 Thread Tony Rietwyk
Hi John, I would suggest a short single-shot timer roughly: resizeEvent base::resizeEvent if !mTimer.isRunning mTimer.start paintEvent if !mTimer.isRunning

Re: [Interest] QMessageBox default sizes

2014-04-07 Thread Tony Rietwyk
Hi Sensei, In the first statement you are telling the layout to override the minimum size when it does its calculations. This means that the second statement is redundant, since those values will be clobbered by the layout. In Qt 4.8.5 I am unable to get the minimum size to work anyway,

Re: [Interest] Insert without scrolling

2014-04-09 Thread Tony Rietwyk
Hi Hugo, Try using an explicit QTextCursor rather than the QTextEdit interfaces. Hope that helps, Tony -Original Message- Sent: Thursday, 10 April 2014 2:23 AM Hi, I am trying to insert some text at the top of a QPlainTextEdit. To do so I'm am using this lines of code:

Re: [Interest] Off-topic Web / Webkit talk. (But I'l tie it back to Qt)

2014-04-13 Thread Tony Rietwyk
Hi Jason, Wt (witty) can run as you describe with your server code bound directly to WebKit executing the html, css, etc. in a free-standing exe. But getting rid of the text and accessing the WebKit objects directly, doesn't really fix anything! The functionality of the WebKit objects is

Re: [Interest] Fallback fonts embedded for a QtQuick application?

2014-04-20 Thread Tony Rietwyk
Hi Preet, Sent: Sunday, 20 April 2014 4:20 PM Say I have an application that has a bunch of international unicode text I need to display with QtQuick. I don't necessarily know what the text is going to be in advance but I do have a list of fonts where I'm fairly sure at least one of them

Re: [Interest] Qt Plugin Low Level API

2014-05-22 Thread Tony Rietwyk
Hi Etienne, The 4.8.5 doco for QObject.qobject_cast links to the Plug Paint example for use of qobject_cast with interfaces. Mind you, it incorrectly shows the return type as QWidget. Hopefully that doco has been rewritten in v5! Hope that helps, Tony From:

Re: [Interest] Is there any way to find QML object by id?

2014-05-22 Thread Tony Rietwyk
Thats exactly what I would also do if it would be my component, but unfortunately I don't have an access to TextInput { id: input } which is inside the ComboBox. But you are able to assign the ID or is it built-in? I don't get the problem, although I have not used the ComboBox, so maybe

Re: [Interest] Issue with stylesheet and palette()

2014-05-27 Thread Tony Rietwyk
Hi Max, In our Qt 4.8.6 app we use the Polish event to apply changes after the styles are set in our base window class: bool BaseForm::event(QEvent *event) { bool result = QDialog::event( event ); if (event-type() == QEvent::Polish) {

Re: [Interest] QLabel inconsistent sizing with word wrap

2014-07-17 Thread Tony Rietwyk
-Original Message- From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of Tony Rietwyk Sent: Friday, 18 July 2014 11:59 AM To: interest@qt-project.org Subject: [Interest] QLabel inconsistent sizing with word wrap

Re: [Interest] QLabel inconsistent sizing with word wrap

2014-07-18 Thread Tony Rietwyk
Am Fri, 18 Jul 2014 11:59:15 +1000 schrieb Tony Rietwyk t...@rightsoft.com.au: Hi Everybody. In my Qt 4.8.6 application I cannot understand why this QLabel widget's sizing varies wildly depending on the text content - even for similar text! The QLabel has only WordWrap switched

Re: [Interest] Custom layouts

2014-08-05 Thread Tony Rietwyk
Hi Igor, Your problem makes sense. Hiding and showing widgets triggers a layout recalculation, and the layout uses setGeometry to position the widgets. It sounds unusual to change widget visibility in a setGeometry override. I suggest to use a flag to prevent the recursion yourself.

Re: [Interest] Threading Question

2014-10-08 Thread Tony Rietwyk
Hi Jason, Are you calling QApplication.exec in your main thread? In not, I don't think the slots there will be activated. Regards, Tony -Original Message- From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org]

Re: [Interest] Crash in QSerialPort when closing?

2014-10-29 Thread Tony Rietwyk
Hi Sean, Closing a device within a read slot sounds dodgy anyway. In these cases, I usually do QTimer::singleShot(0, ...) and do the close in that slot. Regards, Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org

Re: [Interest] Crash in QSerialPort when closing?

2014-10-30 Thread Tony Rietwyk
Seam wrote: Sent: Friday, 31 October 2014 12:43 AM Closing a device within a read slot sounds dodgy anyway. In these cases, I usually do QTimer::singleShot(0, ...) and do the close in that slot. I thought about doing the single shot as well. Is there a more concrete reason (other

Re: [Interest] how to debug a Qt Designer plugin

2014-12-10 Thread Tony Rietwyk
Hi Graham, It could be several things: - the plugin has been compiled with debug - it must be release build. - supporting DLLs are not available in your path. - the code in the plugin is relying on initialisation that only occurs in your main exe. Because of the first point, you

Re: [Interest] Revert the selection in a QTreeView

2015-01-13 Thread Tony Rietwyk
Glenn wrote: Sent: Wednesday, 14 January 2015 8:45 AM Hi, In a QTreeView how can I revert the selection? The behaviour I want is that when the user selects an item, then based on some other state, it will either accept the selection or message the user and revert to the previous

Re: [Interest] QtSql database insertion issues...

2015-04-21 Thread Tony Rietwyk
Hi Ben, Does the prepare work? I assume the database must be open, or you would get a different message. Hope that helps, Tony From: interest-bounces+tony=rightsoft.com...@qt-project.org [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of BRM

Re: [Interest] Windows VST plugin based on Qt

2015-05-19 Thread Tony Rietwyk
Hi Nuno, I strongly suggest to download Dependency Walker utility, and use that to test loading your DLL on Windows. Also, there are dozens of VST examples available, maybe you start with one that works, then extend it with Qt or whatever. Regards, Tony Sent: Tuesday, 19 May 2015 4:27

Re: [Interest] Using QWebSocketServer in a thread other than the GUI thread?

2015-05-27 Thread Tony Rietwyk
Rainer wrote: I would like to add a QWebSocketServer to an existing application. I would like to have all its operation handled by a thread different from the GUI thread to get communication separated from the GUI part. If you create the QWebSocketServer in the thread's run override, does

Re: [Interest] QThread sleep on QMutex

2015-07-30 Thread Tony Rietwyk
Igor wrote: Because in Qt 4 QThread::sleep is protected. You can unprotect it by deriving your own class from QThread and making whichever static methods public! As long as you are aware of the pitfalls (don't sleep in main thread, etc.), and much easier than messing with locks just to gain

Re: [Interest] Need argumentative help..... giving qobject copy/assignment constructor and put it in qlist/qmap

2015-07-20 Thread Tony Rietwyk
Hi Guido, Did they patch QObject itself, or just add these routines to a descendent - I'll assume the latter. The added routines can't be calling the QObject ancestor routines, since that wouldn't compile. So what are the routines doing? Just copying over their own member vars? We'll

Re: [Interest] QLineEdit and QTableWidget

2015-07-07 Thread Tony Rietwyk
Hi allen, what i really want is to be able to attach multiple persons rather a single one with each item in the (say, household) widget. so i thought to use a single column table widget and follow the spreadsheet example to create the table, delegate and item widgets putting the above line

[Interest] How to use QStyle.sizeFromContents with QStyleOptionFrame?

2015-09-09 Thread Tony Rietwyk
Hi Everybody, Using Qt 5.5.0 from installed binaries, in my QFrame based custom widget sizeHint override I want to have: QSize contentSize = ; QStyleOptionFrame optFrame; initStyleOption(); QSize styleSize = style()->sizeFromContents( QStyle::CT_Frame,

Re: [Interest] [qt-4.8 windows] Setting QTreeView selected item style in qss

2015-12-29 Thread Tony Rietwyk
Hi Ruan, In our global style sheet we use: QTreeView { background-color: transparent; selection-background-color: green; /* Used on Mac */ selection-color: white; /* Used on Mac */ show-decoration-selected: 1; }

[Interest] Adding editable files to VS2013 project via .pro and qmake

2016-05-26 Thread Tony Rietwyk
Hi Everybody, I am using Qt5.5.1 and qmake to generate a project for Visual Studio 2013. I would like to add some text files to those shown in the Solution Explorer so that I can edit them. They are not required for building, nor for deployment. I tried adding a file in VS, and then diff'ing

Re: [Interest] Native event filter in QtService

2016-06-24 Thread Tony Rietwyk
was under the impression that I should be able to add my own filter, without overwriting the one installed by QtService. Is this incorrect? Regards, Julius Von: Interest [mailto:interest-bounces+julius.bullinger=asctec...@qt-project.org] Im Auftrag von Tony Rietwyk Gesendet: Freitag, 24. Juni

Re: [Interest] Native event filter in QtService

2016-06-24 Thread Tony Rietwyk
Hi Julius, qtservice_win.cpp around line 830 at your reference [1] installs its own nativeEventFilter - probably displacing yours. I suspect you'll need to merge the Qt filter into yours, and get rid of that install. Regards, Tony From: Interest

Re: [Interest] Macro support with QTextEdit.

2016-01-10 Thread Tony Rietwyk
Bill asked: > Sent: Sunday, 10 January 2016 1:25 AM > Next question: > > How do I save and restore to HTML? Hi Bill, I can't help with the saving. But we display html documents with tags and replace them with QWidgets: - We fetch all of the text using codecForHtml. - Search for

Re: [Interest] how to add a buton to the hovered item from a qtreeview

2016-01-28 Thread Tony Rietwyk
> Sent: Friday, 29 January 2016 2:45 PM > > Hi > I have a `QTreeView`, I control the background colors of items trough a css. > When the pointer is over an item his background is greyed. > > I use the signal `entered` to detect which item, aka `QModelIndex`, aka row, > is hovered. If I use that

Re: [Interest] qml <--> c++

2016-02-27 Thread Tony Rietwyk
Hi Nicolas, I can see you left out Q_OBJECT on CustomWebView. Not idea whether the rest will work or not to achieve your aim. Tony From: Interest [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org] On Behalf Of jagernico...@legtux.org Sent: Sunday, 28 February 2016

Re: [Interest] QApplication.activeWindow().pos() not returning correct value after sacling on OSX

2016-02-17 Thread Tony Rietwyk
that helps, Tony From: Frank Rueter | OHUfx [mailto:fr...@ohufx.com] Sent: Thursday, 18 February 2016 2:21 PM To: Tony Rietwyk Cc: interest@qt-project.org Subject: Re: [Interest] QApplication.activeWindow().pos() not returning correct value after sacling on OSX Hi Tony, sorry, let me

[Interest] How to use QStyle::sizeFromContents on a QFrame - missing CT_Frame?

2016-02-18 Thread Tony Rietwyk
Hi Everybody, I have a QFrame derived widget that is styled by a global stylesheet that sets padding, border width, etc. When I know the size of the contents, what do I pass as ContentsType to get the adjusted size to use as minimumSizeHint? Using style()->sizeFromContents( CT_ToolButton,

[Interest] Qt 5.6.0 problems

2016-03-19 Thread Tony Rietwyk
Hi Everybody, Using qt-enterprise-windows-x86-msvc2013-5.6.0.exe package coming from 5.5.1: 1) The qmake rule: win32 { # These aren't available in some Windows versions so delay loading them until we can check they are available LIBS += /DELAYLOAD:mfplat.dll LIBS +=

Re: [Interest] Regarding QtreeWidget

2016-03-04 Thread Tony Rietwyk
Hi Roshni, It depends on the number of columns, and whether the data is static or dynamic. Even then 500 nodes doesn't sound much, so I would just use QTreeWidget for now. Hope that helps, Tony From: Interest [mailto:interest-bounces+tony=rightsoft.com...@qt-project.org]

Re: [Interest] Howto keep a pushButton style while changing the backgroundcolor

2016-04-25 Thread Tony Rietwyk
Anton said: > Sent: Tuesday, 26 April 2016 2:53 AM > Hi, > > I am experimenting with qt 5.6.0. > > 1. I create a QtWidgts application. > 2. I drop a pushButton in the Main Window 3. I change the styleSheet of the > QMainWindow >to: background-color: rgb(85, 170, 255); > > Now the button

Re: [Interest] Running Qt app in a browser

2016-04-25 Thread Tony Rietwyk
K. Frank said: > Hi Larry! > > On Mon, Apr 25, 2016 at 4:59 PM, Larry Martell > wrote: > > Is it possible to run a Qt app in a browser? I have googled for this, > > and found some hits, but none seen like they ever worked out. The most > > promising seems to be

Re: [Interest] lupdate -compress makes files BIGGER?

2016-07-20 Thread Tony Rietwyk
Hi Jason, If your files are already compressed - eg, jpeg images, then trying to compress them again can result in being slightly larger, due to extra prefixes, etc. In your files, it seems to be about 550 bytes, which does seem a bit large. Regards, Tony > -Original Message- >

  1   2   >