Re: [Interest] Is there a way of having a global signal spy?

2023-12-20 Thread Tony Rietwyk
Hi Nuno, To see what is happening in the whole application, you can use KDAB's GammaRay: https://www.kdab.com/development-resources/qt-tools/gammaray/ I've never used it, so I don't know whether or how much it slows down the app while monitoring. Regards, Tony On 20/12/2023 8:11 pm,

Re: [Interest] Item / Views: QLabel delegate

2023-12-01 Thread Tony Rietwyk
Hi Laslo, In my delegate, I use a QTextDocument instead and I also override sizeHint: void MessagesDelegate::paint( QPainter *painter, const QStyleOptionViewItem , const QModelIndex ) const { QStyleOptionViewItem optionV4 = option; initStyleOption(, index); QStyle

Re: [Interest] qmake: set CFBundleDisplayName?

2023-05-31 Thread Tony Rietwyk
Hi, In our iOS builds we use our own .plist files.  They are included in the .pro file by     QMAKE_INFO_PLIST = $$_PRO_FILE_PWD_/Info.plist The .plist file looks like: "http://www.apple.com/DTDs/PropertyList-1.0.dtd;>     CFBundleDevelopmentRegion     en     CFBundleDisplayName     

Re: [Interest] Continued past failed assertions with MSVC

2023-05-08 Thread Tony Rietwyk
Hi Thiago, I rarely use Ignore - usually, I would temporarily comment out the assertion and rerun. What I find much more annoying is that after clicking Retry and debugging the environment, I cannot then ignore the error - rewind the stack back to the asserting routine and continue from the

Re: [Interest] The touch screen events are block after deleteLater function

2023-02-16 Thread Tony Rietwyk
Hi Gianmarco, Maybe if you listen for button click events - they should work regardless of mouse or touch.  What platform are you running on? Regards, Tony On 16/02/2023 11:09 pm, Axel Spoerl via Interest wrote: Hi Gianmarco, if I understand the code correctly, you depend on signals

Re: [Interest] MSVC not-the-latest: are you using it? why?

2023-01-23 Thread Tony Rietwyk
Hi Thiago, The team I'm working with have been keeping up with the latest VS version - mainly for the security fixes and new C++11/17/20 features available in Qt 5.15.  But VS2022 introduced changes to the enum handling last year, which has made Intellisense useless for them - especially

Re: [Interest] QRegularExpression for replace

2022-12-01 Thread Tony Rietwyk
On 2/12/2022 6:43 am, Scott Bloom wrote: Im looking for a way using QRE to do something like the following auto regEx = QRegularExpression( “(?.*)” ); if ( regEx.match( string ) )     auto newString = regEx.replace( string, “${name}” ); Using the standard set of regex

Re: [Interest] Qt Sql BLOB data converting

2022-11-28 Thread Tony Rietwyk
Hi Yauheni, You don't say which type of database you are using?  There may be issues with the database client library altering the blob to UTF8.  Though I would expect the python code using the same client to have the same problem. Assuming that QVariant has the byte array unaltered, then

Re: [Interest] Use SQLite math functions (-DSQLITE_ENABLE_MATH_FUNCTIONS) like sin and cos?

2022-10-24 Thread Tony Rietwyk
Hi Oliver, Can't answer your broader question, but I suspect the reason you are seeing "No query Unable to fetch row" - error code: "" is because you are not checking for an error after the prepare. Hopefully, you will then the expected 'no such function' error and can act on it accordingly.

Re: [Interest] QColumnView and QTreeView using same model

2022-05-04 Thread Tony Rietwyk
On 4/05/2022 11:43 pm, Michael Jackson wrote: ... Now on to figure out how to display checkboxes next to each item. I've tried: Qt::ItemFlags ImportDataStructureModel::flags(const QModelIndex& index) const { if(!index.isValid()) { return {}; } return Qt::ItemIsUserCheckable |

Re: [Interest] [External]Re: How to get QtConcurrent to do what I want?

2022-01-30 Thread Tony Rietwyk
t out. Sean *From:* Interest on behalf of Tony Rietwyk *Sent:* Sunday, January 30, 2022 7:19 PM *To:* interest@qt-project.org *Subject:* [External]Re: [Interest] How to get QtConcurrent to do what I want? CAUTION: This email originated from outside of the organization. Do not click

Re: [Interest] How to get QtConcurrent to do what I want?

2022-01-30 Thread Tony Rietwyk
Hi Sean, Can you use the position of the tile as a unique key?  Then the manager only needs to calculate each tile's position in the original image.  Each tile extracts the bits, processes and notifies the result with its position. Regards, Tony On 31/01/2022 10:06 am, Murphy, Sean

Re: [Interest] QSyntaxHighlighter change QTextBlockFormat

2022-01-04 Thread Tony Rietwyk
On 5/01/2022 3:30 pm, Joshua Grauman wrote: Hi all, I have been researching how to have a QSyntaxHighlighter change QTextBlockFormat. I need my syntax highlighter to change the indent, left and right margins, line height, etc. of a QTextDocument/QTextEdit. I was able to have my class

Re: [Interest] PySide2 : Adding widget to a QVBoxLayout in a QScrollArea

2021-07-12 Thread Tony Rietwyk
Hi Nicholas, QScrollArea manages a single widget.  It provides a default, or you can override it - look at the docs. So in this case, you could apply the layout and pushbutton to scroll.widget, instead of scroll itself. Also take out the self.setLayout(vbox) - the layout can only belong to

Re: [Interest] PySide2 : QHBoxLayout content sizing

2021-07-11 Thread Tony Rietwyk
the method/API call to set the minimum width ? Cheers On Sun, 11 Jul 2021 at 18:12, Tony Rietwyk <mailto:t...@rightsoft.com.au>> wrote: Hi Nicholas, You could set a minimum width on them based on the expected width - don't forget to set it back to 0 when you add their tru

Re: [Interest] PySide2 : QHBoxLayout content sizing

2021-07-11 Thread Tony Rietwyk
Hi Nicholas, You could set a minimum width on them based on the expected width - don't forget to set it back to 0 when you add their true content. Regards, Tony On 12/07/2021 7:27 am, Nicholas Yue wrote: Hi, I have a horizontal layout, self.viewHorizontalLayout I am adding the following

Re: [Interest] Qt Creator can't find all usages of a symbol sometimes

2021-06-10 Thread Tony Rietwyk
Hi Alexander, What file is the Warning at the top referring to?  My bet would be utils.h or utils.cpp?  Does this problem ever occur for this large project without the warning appearing? If the problem tends to occur with files that have just been saved, then maybe the code scanner can't

Re: [Interest] QML MenuBar : works with PySide2 but not c++ ?

2021-06-02 Thread Tony Rietwyk
Hi Nicholas, The short answer is because your C++ is doing completely different things to the python code.  :O) I'm not sure about using QML.  Have you included the qml file as a resource correctly to access via qrc:?  You aren't checking the result of the engine.load.  Also, why is the

Re: [Interest] Can't JSON.stringify an object in QML

2021-06-01 Thread Tony Rietwyk
HI Jason, I'm pretty sure this is NOT valid JSON: {"that": "other": {} } Either the value and comma for "that" is missing, or "other": {} should be encapsulated as an object in braces as the value of "that". Regards, Tony On 2/06/2021 12:29 am, Jason H wrote: Some JSON serialisers

Re: [Interest] Call retranslateUi() from UI generated/loaded directly from *.ui

2021-05-01 Thread Tony Rietwyk
Did you try "loader.setTranslationEnabled(true);" before loader.load? HTH, Tony On 1/05/2021 10:43 am, Nicholas Yue wrote: I tried enabling setLanguageChangeEnabled(true) but I don't see my label updating, do I have to write some handler for that event and go through to update each widget

Re: [Interest] Embedding language translation as resource

2021-04-26 Thread Tony Rietwyk
Further to Robert's reply, you need to change the file name in both the qrc file and in main.cpp. Regards, Tony On 27/04/2021 3:31 pm, Robert Hairgrove wrote: You need to load the ".qm" file which is the binary generated by running lrelease, not the ".ts" file. In addition to your

Re: [Interest] SQLite: mystic bug: No query Unable to fetch row error

2021-01-14 Thread Tony Rietwyk
Hi, I haven't used SQLite, but I'm wondering if when the UuidByteArray starts with a zero byte, then maybe nothing gets written for the value?  1 in 16 of the generated UUID's could have this, which roughly matches your 4% failures. Is a BLOB field binary or text?  Does a binary blob with

Re: [Interest] Debugging a double dealloc

2020-09-23 Thread Tony Rietwyk
Hi Ben, There may indeed be an issue with fonts being tied to having at least one window present, which causes you grief when you delete the main window. Have you tried the suggestion from your other thread to just hide the main window instead? Where is the tick font used?  Does your main

Re: [Interest] Three-file modules vs. moc

2020-08-27 Thread Tony Rietwyk
Hi Bernhard, I use plain .pro and .pri files with qmake to Visual Studio projects.  Moc has a feature that prevents the output files being treated as separate compiles - if it finds the include in the relevant module .cpp.  It works really well for us with thousands of modules.  I not sure

Re: [Interest] breakpoints not resolving (again) (mac)

2020-07-27 Thread Tony Rietwyk
Hi dave, You haven't said what IDE you are seeing these errors in?  If Qt Creator, maybe this link can help: https://doc-snapshots.qt.io/qtcreator-4.0/creator-debugger-engines.html The document suggests that Python is required now for LLDB and GDB.  Maybe you have an old version of Python

Re: [Interest] temp disable any selection changing in TableView?

2020-07-22 Thread Tony Rietwyk
Hi dave, The selection is normally handled by an internally allocated QSelectionModel, which maintains the current item separate from the selections.  You can replace the selection model if necessary.  In this case, you want the current item to change, but not the selections, depending on

Re: [Interest] Bug of broken headers for QQuick3DGeometry

2020-06-26 Thread Tony Rietwyk
Hi Joao, Looking at the simplescene example, it has in the .pro file qt += quick quick3d whereas you only have qt += quick In the Qt documentation, I couldn't find anything saying what the .pro requirements for quick3d is! Tony On 26/06/2020 2:49 pm, joao morgado via Interest wrote: Hi

Re: [Interest] How to get a column data from QTableWidget

2020-05-29 Thread Tony Rietwyk
Hi Ghobad, item->tableWidget()->item(item->row(), my_intended_col_index)->data(role) Regards, Tony On 29/05/2020 10:35 pm, Ghobad Zarrinchian wrote: Dear all, I have a QTableWidget with some rows and columns in my application and I want to extract the data from a specific column when its row

Re: [Interest] QTableView, QSqlRelationalTableModel and QDateTimeEdit and timezones

2020-04-30 Thread Tony Rietwyk
Hi Lisandro, AFAIK that is a bug in the design of the Qt SQL api's.  There is no way to specify to QSqlField/QSqlResult that the date being read is UTC.  You have to read the QSqlQuery yourself, convert the QVariant to QDateTime, apply the time spec, then pass the value to the UI. Maybe you

Re: [Interest] Writing custom Qt Widgets is overly complicated

2020-04-29 Thread Tony Rietwyk
On 28 April 2020 at 12:05:54, Jonathan Purol (cont...@folling.de ) wrote: Yesterday however I put my hands on trying to implement my first custom widget. The item in question is what I would describe as a "Tag Textfield". […] The last approach seemed rather

Re: [Interest] Fwd: External Application window title is missing in QWindow

2020-03-20 Thread Tony Rietwyk
it. Can you suggest me what can be done for this. regards sujan On Sat, 29 Feb 2020 at 07:53, Tony Rietwyk mailto:t...@rightsoft.com.au>> wrote: Hi Sujan, It's not clear to me why you want to use fromWinId? Do you want two applications in separate proce

Re: [Interest] Fwd: External Application window title is missing in QWindow

2020-02-28 Thread Tony Rietwyk
Hi Sujan, It's not clear to me why you want to use fromWinId?  Do you want two applications in separate processes to share the same windows? The title bar and menu are drawn by special win32 non-client events - but they may be suppressed, since the window is now being hosted in your app. 

Re: [Interest] Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-14 Thread Tony Rietwyk
On 15/02/2020 7:01 am, Matthew Woehlke wrote: On 07/02/2020 19.10, Tony Rietwyk wrote: Does it work if you don't pass 'this' as the third argument to connect? I never use that particular overload of connect. I usually pass the lambda as the third argument. That scares me. The third argument

Re: [Interest] Signal/Slot connection fails, even though QMetaObject::activate is called

2020-02-07 Thread Tony Rietwyk
Hi, Does it work if you don't pass 'this' as the third argument to connect?  I never use that particular overload of connect. I usually pass the lambda as the third argument. Hope that helps, Tony On 8/02/2020 10:03 am, Scott Bloom wrote: Are you sure the function is getting called (via a

Re: [Interest] QNetworkDiskCache + QNetworkRequest::PreferNetwork = always cache

2020-01-13 Thread Tony Rietwyk
Hi Alexander, The wording for PreferNetwork in the help is a bit ambiguous:     "default value; load from the network if the cached entry is older than the network entry." It reads as if a OPTION query has been done, giving "the network entry" - but maybe it just relies on the cached page's

Re: [Interest] Qt Android 9 bug?

2019-11-26 Thread Tony Rietwyk
Hi Alex, That Armv7 trace looks really weird - the QThread destructor is calling the derived QDaemonThread one? Regards, Tony On 26/11/2019 1:02 pm, Alexander Dyagilev wrote: Hello, We're getting strange crashes in our Google Console. All of them are from Android 9. We use Qt 5.12.5.

Re: [Interest] Qt on windows?

2019-11-11 Thread Tony Rietwyk
Hi Jason, Seeing the double equals at the end, I tried decoding that string as base64, which gives "rxstation_ui.zip" Are you sure that directory is actually a folder, or just appears to be a folder due to the way Windows Explorer works? Regards, Tony On 12/11/2019 10:05 am, Jason H

Re: [Interest] Curious QNetworkAccessManager behavior.

2019-10-31 Thread Tony Rietwyk
Hi Jason, You should only connect to QNetworkAccessManager::finished once - before sending any files.  You are adding another connection with each file. From https://doc.qt.io/qt-5/qobject.html: By default, a signal is emitted for every connection you make; two signals are emitted for

[Interest] How to obtain padding and border styling for QFrame derived control

2019-10-05 Thread Tony Rietwyk
Hi Everybody, I have a QFrame derived widget that is styled using an application style sheet with optional padding and borders.  In the minimumSizeHint, I need to get the currently active values from the style sheet.  I would like to use sizeFromContents, but there is no ContentsType CT_Frame

Re: [Interest] Receive key presses when hovering over a specific widget

2019-07-11 Thread Tony Rietwyk
Hi Sean, AFAIK, the easiest way to trap keyPress/keyRelease irrespective of which widget has the focus is to install an event filter on the QApplication instance.  Use the mouseEnter/Leave events of the thumbnails to set/clear a currentThumbnail, and then in eventFilter only act on the 'm'

Re: [Interest] App crashes on iOS when geocode or reverseGecode is used

2019-04-13 Thread Tony Rietwyk
Hi Roman, Your qGeoService provider is on the stack and discarded at the end of your constructor.  The documentation for geocodingManager makes clear that the pointer returned is owned by the provider, so I assume the pointer becomes invalid.  Try keeping a pointer to the provider as well as

Re: [Interest] Signals, slots before the event loop starts?

2019-04-10 Thread Tony Rietwyk
Hi Jason, Why can't your initialisation pass back a status to the main routine? Otherwise I suggest to use a short timer, so it gets picked up early when the main event loop starts. Hope that helps, Tony On 11/04/2019 8:18 am, Jason H wrote: I've now come across two places in my code

Re: [Interest] How to properly show progress for a signal processing pipeline

2019-04-08 Thread Tony Rietwyk
Hi Sean, I would just show one progress set to 3 * raw count.  Each stage periodically signals to the ui thread its progress, and whether it has processed the end-of-data signal from the previous stage.  In the ui thread slot: int totalCount, rawCount; QVector stageProgress; void

Re: [Interest] QtLocation MapPolyLine and MouseArea

2019-03-07 Thread Tony Rietwyk
Hi Philippe, Just to confirm - you are filtering your list of lines by using the bounding rectangle first, then doing the detailed line-segment check? Regards, Tony On 8/03/2019 4:32 am, maitai wrote: Hi, I need to trigger various actions whenever a MapPolyLine is hovered or pressed,

Re: [Interest] Weird sizing in Qt Designer 5.12.0 with hi-res screen

2019-01-23 Thread Tony Rietwyk
or some kind of a harmony progression generator? Cheers Dmitriy On Wed, Jan 23, 2019 at 2:52 AM Tony Rietwyk <mailto:t...@rightsoft.com.au>> wrote: Hi Everybody, I have recently installed a hi-res screen 3840 x 2160 @ 150% scaling on my Windows 10 machine. The attach

Re: [Interest] SQL databases and threading

2018-10-14 Thread Tony Rietwyk
Hi, AFAIK, you have to open the QSqlDatabase, do QSqlQuery prepare and exec, read the results, do the next query, etc. all within one thread.  You can have multiple threads accessing simultaneously, if the underlying database supports it.  But you cannot send the query in one thread, then

Re: [Interest] Capture keyPressEvent on QMenuBar/QMenu?

2018-10-10 Thread Tony Rietwyk
Hi Israel, Try installEventFilter on the menu to see the KeyPress events before they are handled by the menu. Regards, Tony On 11/10/2018 7:07 AM, Israel Brewster wrote: I want to modify a QAction if the user holds down a specific key. You can see similar behavior on the Mac, for example,

Re: [Interest] Struggling with moveEvent()

2018-10-01 Thread Tony Rietwyk
Hi Sean, Widgets are normally positioned relative to their owner - the exception is popup menus, which are screen absolute.  I would expect a popup menu to automatically close when the title bar is clicked.  How have you implemented your captionPopupMenu?  Does it capture the mouse when it is

Re: [Interest] WebVuew::runJavaScript problems

2018-08-23 Thread Tony Rietwyk
Hi Jason, When are you calling runJavaScript?  How are you loading the page?  How do you know that the page has finished loading?  I suggest to listen for the loadingChanged signal and then do the processing there when the status is LoadSucceededStatus.  I assume that you are calling

Re: [Interest] Problems with QCamera/QML Camera when trying to porting a desktop application to android tablet

2018-08-22 Thread Tony Rietwyk
Hi Roman, Why did you need to use createWindowContainer? Wouldn't the QQuickView do as a window anyway?  Have you added a layout to manage sizing the QQuickView within the created window? Are you using resizeMode SizeRootObjectToView?  I think the paragraph in QQuickView documentation

Re: [Interest] QTreeWidget displays blank widget

2018-08-10 Thread Tony Rietwyk
Hi Nicolas, Try using a QFrame for SimpleWidget - you may be able to get rid of widget_2. I'm surprised that the nested QWidget worked, as QWidget doesn't normally draw a background. Hope that helps, Tony ___ Interest mailing list

Re: [Interest] Clearing QMainWindow::setFilePath() on macOS

2018-07-19 Thread Tony Rietwyk
Hi Patrick, Have you tried passing QString() - maybe the underlying routine (incorrectly) checks for isNull rather than isEmpty()? Regards, Tony On 20/07/2018 3:05 AM, Patrick Stinson wrote: Hello! I have set a file path on my QMainWindow with QWidget::setWindowFilePath() on macOS. I

Re: [Interest] Running Qt application on Linux without screen

2018-06-18 Thread Tony Rietwyk
Hi Tomasz, I think in Windows, it simply is not possible for a service app to also run in desktop - they have separate desktops.  The usual solution is to move data and commands between the service and desktop app via some form of inter process communication - TCP, pipes, mailslots, etc.

Re: [Interest] Qt5 CSS StyleSheet Variables

2018-05-21 Thread Tony Rietwyk
Hi Mike, QStyleSheets are pretty limited, so we: - load a sass file from Qt resources, - inject some calculated variables at the start relating to the specific app and client screen size, - process the sass to css - set the output into QApplication. This occurs at startup, and whenever

Re: [Interest] resizable QTextEdit

2018-04-15 Thread Tony Rietwyk
Hi Alexander, Does layout::invalidate before activate help? Regards, Tony On 15/04/2018 6:53 PM, Alexander Semke wrote: On Freitag, 13. April 2018 10:22:14 CEST Igor Mironchik wrote: Something like this? [...] Thanks Igor, I've got the idea. The resize works fine now but I have the problem

Re: [Interest] Query for qml testing

2018-04-02 Thread Tony Rietwyk
Hi Himanshu, You have a lot of code.  If you are setting the value in qml, why do you need to ask how to get the value?  Can you be more specific - where are you setting the value?  What test framework are you using that needs to read it? Regards, Tony On 3/04/2018 2:02 PM, Himanshu

Re: [Interest] MQTT Client Message Routing

2018-01-29 Thread Tony Rietwyk
Hi Andrew, I haven't used QMqtt.  Nonetheless, I would suggest a hybrid - using a separate subscription object for each folder in the hierarchy.  So the client subscription only needs to match on the terminal symbol and coordinates all of the actions relating to clients. Regards, Tony On

Re: [Interest] Problem with QAbstractProxyModel in PyQt 5.9.1

2017-12-17 Thread Tony Rietwyk
Hi Jérôme, I assume that parent.isValid is checking the parent QModelIndex by calling parent.model().columnCount within the DummyModel. There used to be a Qt utility to check that your models have the correct overrides.  Note that the source model cannot rely on the proxy model for anything -

Re: [Interest] Change QCheckBox to QPushButton in a QTableView

2017-12-06 Thread Tony Rietwyk
Hi Jason, You'll have to initialise quite a bit more in the QStyleOptionButton button than just the text - especially the inherited rect member.   Maybe QStyleOption.initFrom can help, or create an override class on QPushButton to expose its initStyleOption. Hope that helps, Tony On

Re: [Interest] QT QFontMetrics boundingRect failed to textwordwrap, thanks!

2017-11-29 Thread Tony Rietwyk
Hi, In your call metrics.boundingRect, you have specified height=0. Doesn't that make the QRect invalid?  The help for this function states "The drawing, and hence the bounding rectangle, is constrained to the rectangle rect." - so you need to pass a very large value for height, and it

Re: [Interest] Calling QT Class method from pthread thread

2017-10-04 Thread Tony Rietwyk
Hi Gonzalo, I don't think the documentation is clear enough, but my assumption is that emitting a signal connected with BlockingQueuedConnection can only be done in a thread created by QThread that has called QThread.exec in its run override. Does your callback thread really have to wait for

Re: [Interest] Strange visibility problem after updating entities in Qt3D

2017-10-03 Thread Tony Rietwyk
Hi Helmut, I think your deleteChildrenRecursively is incorrect - you need to process the vector in reverse if you delete the current node. Especially as you have declared the vector parameter 'const &', the compiler probably can't work out that deleting the node will update the vector.  So

Re: [Interest] Issue with toLatin1()

2017-09-14 Thread Tony Rietwyk
Hi Sudhir, Looks suspicious - I would expect that routine to be in qt5core. Have you tried a full rebuild of your project?  Since going to VS2015, I have to do this at least once a day, as the debug information is often stale when the program runs. Regards, Tony On 14/09/2017 4:34 PM,

Re: [Interest] Qt Android - Mouse Hovering Events

2017-07-16 Thread Tony Rietwyk
Hi Robert, In the widgets have you setMouseTracking to true? Or was your code working in previous Qt versions, and now isn't? Regards, Tony On 16/07/2017 6:22 PM, Robert Iakobashvili wrote: Dear Oleg, Thank you for your prompt reply. My Qt Android App is written in Widgets. That could make

Re: [Interest] Looks like a bug to me.

2017-06-04 Thread Tony Rietwyk
> Sent: Sunday, 4 June 2017 11:26 PM > > Hello (No, this is not spam): > > For me, the following: > >QString a = "XXX"; >QString b = ""; >QString c = ""; >QString d = "1"; >qDebug() << QString("A: %1%2%3%4") .arg(a) .arg(b) .arg(c) .arg(d); >qDebug() << QString("B:

Re: [Interest] QtDesigner needs redesign.

2017-01-04 Thread Tony Rietwyk
Hi Serge, I agree that it's painful not having a debug build of Qt Designer provided pre-built. It might make using custom widgets a bit easier. You need to thoroughly debug your widget in the application BEFORE you try to load and use it in Designer. If the widget relies on other

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

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

2016-06-27 Thread Tony Rietwyk
On Behalf Of Tony Rietwyk > Sent: Thursday, 26 May 2016 11:07 PM > To: interest@qt-project.org > Subject: [Interest] Adding editable files to VS2013 project via .pro and qmake > > Hi Everybody, > > I am using Qt5.5.1 and qmake to generate a project for Visual Studio 2013. > I

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

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

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

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

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

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

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

  1   2   >