Re: [Interest] QTabBar stylesheet control: tabbar scroll buttons on OS X

2016-09-10 Thread René J . V . Bertin
René J.V. Bertin wrote: > > Is it possible to restore the appearance of scroll buttons with a stylesheet? My bad, sorry. I should dig through the docs a bit more before coming a-knocking on here. R. ___ Interest mailing list Interest@qt-project.or

Re: [Interest] QExplictlySharedDataPointer vs QSharedPointer

2016-09-10 Thread Elvis Stansvik
2016-09-09 1:49 GMT+02:00 Thiago Macieira : > On quinta-feira, 8 de setembro de 2016 21:08:37 PDT Elvis Stansvik wrote: >> > QESDP doesn't actually require that you derive from QSharedData, >> > only that you have an atomic integer called "ref" in your structure. >> >> I see, that makes sense. And

Re: [Interest] setting a widget style for a particular widget class only?

2016-09-10 Thread Andy
The docs do not specify who owns the pointer, but it looks like the object doesn't have a parent so I would assume the caller does. That code was not actual code from my application but, yes, I would recommend only creating and storing the style once and releasing it appropriately. --- Andy Malon

Re: [Interest] ThreadedFortune example extending to send message forever

2016-09-10 Thread Nilesh Kokane
On Tue, Sep 6, 2016 at 4:23 PM, Konstantin Shegunov wrote: > On Mon, Sep 5, 2016 at 7:17 PM, Nilesh Kokane >> In the original example, How does disconnectFromHost() triggers >> readyRead signal? > > > You're blocking the event loop for the thread, so no queued slot invocations > will be made until

Re: [Interest] setting a widget style for a particular widget class only?

2016-09-10 Thread René J . V . Bertin
On Saturday September 10 2016 09:11:02 Andy wrote: Hi Andy, Thanks! I'm a bit confused that I didn't think of trying this myself, but it works: https://bugsfiles.kde.org/attachment.cgi?id=101015 Shouldn't one release *style in the dtor? R. > René: > > I think you can just use QWidget::setS

Re: [Interest] QPlainTextEdit insert spaces vs tabs

2016-09-10 Thread Scott Aron Bloom
Thanks! I already had the derived class, so the extension was easy… Scott From: Interest [mailto:interest-bounces+scott=towel42@qt-project.org] On Behalf Of Thompson, Adam B. Sent: Saturday, September 10, 2016 7:44 AM To: interest@qt-project.org Subject: Re: [Interest] QPlainTextEdit insert

Re: [Interest] QPlainTextEdit insert spaces vs tabs

2016-09-10 Thread Thompson, Adam B.
Scott, I’ve needed to address this issue before, myself. My solution was to subclass QPlainTextEdit and override QPlainTextEdit::keyPressEvent. In it, if QKeyEvent::key matches Qt::Key_Tab, I insert the desired number of spaces in place of a tab and accept the event (QEvent::accept). If you do

Re: [Interest] QExplictlySharedDataPointer vs QSharedPointer

2016-09-10 Thread Konstantin Shegunov
On Thu, Sep 8, 2016 at 11:21 PM, Elvis Stansvik wrote: > (I think you forgot to include the list in your reply) Yes, I'm sorry about that. > I know that it's mentioned in the docs what you bring up (and that > Thiago also brought up), that a QSP manages a *pointer*, while QESDP > manages *dat

Re: [Interest] Memory Leak when instantiating QWidget based windows

2016-09-10 Thread Sergio Martins
On Thursday, 8 September 2016 17:16:27 WEST Mike Jackson wrote: > Does QtCreator come with suppression files for Qt5? I ran valgrind "by > hand" on the command line and while I was able to actually find some of > our leaks (yeah Valgrind..) I had to wade through 20,000 Qt leaks to > find my leaks.

Re: [Interest] Depth-first filtering for QAbstractProxyModel

2016-09-10 Thread André Somers
Op 08/09/2016 om 15:25 schreef Thompson, Adam B.: André, I’ve only been working with Qt for the last couple of years or so and haven’t had any formal training, so anything I’m doing is based on my interpretation of their documentation or examples. The contents of the model itself aren’t ve

Re: [Interest] setting a widget style for a particular widget class only?

2016-09-10 Thread Andy
René: I think you can just use QWidget::setStyle(). Haven't tried it for QTabBar, but I use it on QButtons. QStyle *style = QStyleFactory::create( "fusion" ); QPushButton *button = new QPushButton( "foo", this ); button->setStyle( style ); --- Andy Maloney // https://asmaloney.com twitt

Re: [Interest] Memory Leak when instantiating QWidget based windows

2016-09-10 Thread Andy
(Must be something wrong with the mail system - received this 2 days later...) I'm not sure if there's a suppression file in there, but with Qt Creator I only get a handful of leaks at the end of my run that don't look like they are related to my code. Looks like something related to ImageLoaderM

Re: [Interest] Memory Leak when instantiating QWidget based windows

2016-09-10 Thread Bo Thorsen
Den 08-09-2016 kl. 12:55 skrev Konstantin Shegunov: On Wed, Sep 7, 2016 at 11:23 PM, Mike Jackson mailto:imikejack...@gmail.com>> wrote: We monitor the memory use before and after the loop using OS X's Activity monitor. At the end of the loop there is more memory being used than bef

[Interest] setting a widget style for a particular widget class only?

2016-09-10 Thread René J . V . Bertin
Hi, Is it possible to change the widget style for just a particular widget class? In stylesheet language, QTabBar { style : Fusion } This is also exactly what I'd like to accomplish, use the Fusion style for a QTabBar widget in a tabbed document editor, so it looks the same on all platforms,

Re: [Interest] Memory Leak when instantiating QWidget based windows

2016-09-10 Thread Mike Jackson
Does QtCreator come with suppression files for Qt5? I ran valgrind "by hand" on the command line and while I was able to actually find some of our leaks (yeah Valgrind..) I had to wade through 20,000 Qt leaks to find my leaks. Would be nice to filter those out somehow. -- Michael A. Jackson B

Re: [Interest] QExplictlySharedDataPointer vs QSharedPointer

2016-09-10 Thread Elvis Stansvik
2016-09-08 23:48 GMT+02:00 Konstantin Shegunov : > On Thu, Sep 8, 2016 at 11:21 PM, Elvis Stansvik wrote: >> >> (I think you forgot to include the list in your reply) > > > Yes, I'm sorry about that. > >> >> I know that it's mentioned in the docs what you bring up (and that >> Thiago also brought

Re: [Interest] QExplictlySharedDataPointer vs QSharedPointer

2016-09-10 Thread Thiago Macieira
On quinta-feira, 8 de setembro de 2016 21:08:37 PDT Elvis Stansvik wrote: > > QESDP doesn't actually require that you derive from QSharedData, > > only that you have an atomic integer called "ref" in your structure. > > I see, that makes sense. And I see now that that's really all that > QSharedDa

[Interest] QPlainTextEdit insert spaces vs tabs

2016-09-10 Thread Scott Aron Bloom
I have a request that has come in from a customer, and for the life of me I cant find the option. The customer would like to be able to insert spaces rather than tabs when editing a document, the editor has been implemented using QPlainTextEdit. I can change the tabstop, and have looked through