Re: [Interest] Qt/QML fullscreen app not visible through Teamviewer on Windows

2016-01-08 Thread Cornelius Hald
Hi Kulias,

thanks for your input and sorry for the delay (been on vacation).

Which version of Teamviewer are you using? With Teamviewer 10 it looks
like there is no such setting.

Cheers,
Conny


On Fri, 2015-12-18 at 04:15 +, Kulias wrote:
> Hi,
> 
> Try unchecked "Ignore alpha blending on this computer" in teamviewer 
> host options:
> [Advance]->[Advanced settings for connections to this computer]
> 
> It works in my case
> 
> Cheers
> - Kulias
> 
> 
> 
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTabWidget activity

2016-01-08 Thread Bo Thorsen

Den 07-01-2016 kl. 21:44 skrev Murphy, Sean:

I'm trying to figure out the right way to show some feedback to the user and 
I'm stuck. Here's the setup:
- I have a QTabWidget, that has three tabs, one for live data, one for archived 
data, and a third tab that doesn't having much to do with this particular 
issue, other than it exists.
- On the first tab we plot a live feed of data from a variety of sensors
   - Also on this tab, there is a "Take Snapshot" button
   - Pressing the "Take Snapshot" button should make a copy of the current plot 
data under the second tab while keeping the first tab (the live data) as the current tab 
index
- On the second tab, there's a child tab widget that shows the snapshots taken 
above, one snapshot per tab

This works fine, except that there's no real indication to the user that pressing the 
"Take Snapshot" button actually worked until the user clicks on the second tab 
and sees that the snapshot exists, so we'd like to add some sort of visual feedback that 
it was successful. Ideally, I'd like to blink the background color of *just* the second 
tab a couple times to let the user know something changed over there. But looking through 
QTabWidget, QTabBar, there doesn't seem to be any way of changing the background color of 
an specific, individual tab. I can change the text color of a specific tab using 
QTabBar::setTabTextColor(), but after trying that the effect is just a little too subtle. 
The closest thing I can find is through stylesheets using the QTabBar::tab:middle 
subcontrol and pseudostate, which I just luck out that it works for me because I only 
have 3 tabs, and I'm trying to change the middle tab. If we add more tabs later, that 
won't work, unless I switch it to using QTa
  bBar::tab:last and then change the behavior that the archived data is always 
on the last tab.

Are there other options to change the color, or does anyone else have a better 
idea of how to do provide feedback to the user? The only other viable options I 
see is that I could either:
  - change the text on the second tab to somehow reflect something changed 
(like add an * or something)
  - blink an icon on the second tab using QTabBar::setTabIcon(int index, const 
QIcon & icon)


I would probably prefer something like an overlay message popping up for 
a few seconds or (a bit nineties style) a status bar message. Another 
would be to have a subtle small icon overlay float from the button up to 
the tab.


I was trying to think if there were ways to hack around a QStyle proxy 
to do the flashy bit, but I'm not sure without spending a fair amount of 
time. The trick in this case is always the same idea:


1) Override only exactly what you need, in this case the drawing of a 
single tab.
2) Find a way to realize that you're currently painting the thing you 
want to change.
3) Override the painting of that single item, call the base class 
painter for all others.


This is a generic QStyle trick that can be used for many evil purposes. 
The problem with it is that it's quite hard to debug for anyone that 
doesn't know you have done it - imagine the poor developer going "where 
the f!#¤%& does that come from"? Hurting maintainability is usually a 
bad idea.


The trick has much more of an appeal if you already have a lot of QStyle 
stuff in your code.


Bo Thorsen,
Director, Viking Software.

--
Viking Software
Qt and C++ developers for hire
http://www.vikingsoft.eu
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] IDE used to develop qt library

2016-01-08 Thread Tomasz Siekierda
On 8 January 2016 at 08:31, Boettger, Heiko
 wrote:
>
> I didn’t find any qtcreator files in the source

What did you expect to find? The .pro files are there and Qt Creator
understands them well.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] OSX: Losing internet and regaining it does not allow XMLHttpRequest to work

2016-01-08 Thread jhihn
Also claimed for iOS

-Original message-
Sent: Friday, 08 January 2016 at 22:39:58
From: "Jason H" 
To: "Interests Qt" 
Subject: [Interest] OSX: Losing internet and regaining it does not allow 
XMLHttpRequest to work
I have an app (mobile, but develop mostly on OSX (God I love Qt!)) and I'm 
trying various failure modes. 
I login in the app,
Disable wifi,
Attempt a request, it fails
Re-enable wifi,
Attempt request.

It seems that once a XMLHttpRequest fails, even  after if I reenable wifi, Qt 
will always immediately fail the request. 5.5.1, 5.6 beta. has anyone else seen 
this?
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Macro support with QTextEdit.

2016-01-08 Thread william.croc...@analog.com

On 01/08/2016 05:40 PM, Bill Crocker wrote:

Hello:

I am working on a WYSIWYG editor.
The user needs to be able to enter macros which render
specially on the screen. For the purpose of this conversation,
pretend they enter "$DATE" which displays as "8-JAN" on the screen.
They are not allowed to edit the "8-JAN" directly. If they act to
edit the "8-JAN", a widow would pop up where they can edit the "$DATE".
If they changed it to "$YEAR", "2016" would appear in the screen when
they are done. These macros would be interspersed with regular text.

How do I this using a QTextEdit widget in HTML mode
with QTextCursor etc.



Okay. I have made some progress using the QTextObjectInterface.
Next series of questions:

- If a QTextCursor spans one of my inline objects and some aspect of the
  font is changed, how does my object get notified.

- My object is basically a piece of text. How do I render it on
  the same base line as neighboring text.

Thanks.

Bill


Thanks.

Bill
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest



___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Macro support with QTextEdit.

2016-01-08 Thread Bill Crocker

Hello:

I am working on a WYSIWYG editor.
The user needs to be able to enter macros which render
specially on the screen. For the purpose of this conversation,
pretend they enter "$DATE" which displays as "8-JAN" on the screen.
They are not allowed to edit the "8-JAN" directly. If they act to
edit the "8-JAN", a widow would pop up where they can edit the "$DATE".
If they changed it to "$YEAR", "2016" would appear in the screen when
they are done. These macros would be interspersed with regular text.

How do I this using a QTextEdit widget in HTML mode
with QTextCursor etc.

Thanks.

Bill
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] IDE used to develop qt library

2016-01-08 Thread Koehne Kai
> -Original Message-
> From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of
> Boettger, Heiko
> Sent: Friday, January 08, 2016 8:32 AM
> To: interest@qt-project.org
> Subject: [Interest] IDE used to develop qt library
> 
> Hi,
> 
> I just wonder what kind of IDE do you use to develop the qt library itself. I
> didn't find any qtcreator files in the source. What do tools do you use for
> development and browsing the code?

There's no enforced setup, but I guess Qt Creator is the most common IDE, 
followed by text editors. Others use KDevelop, Visual Studio, XCode ...

Checking in files specific to a particular IDE is prohibited though.

Regards

Kai

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QTimer priority

2016-01-08 Thread Etienne Sandré-Chardonnal
Dear all,

In a recent stress test, where I created 5 sub-processes, each one starting
idealThreadCount() fully working threads (ie they never sleep), I found
that a QTimer responsible for sending some information messages to the
sub-process stdout was stuck until the working threads stopped.

The QTimer is created and lives in the main thread, and the main event loop
is alive and responds to event. But the slot to which timeout() is called
is never called until the worker threads finish.

Could it be that the QTimer is using a different thread, that gets stuck
due to the high system load?

The platform is Windows

Thanks!
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt/QML fullscreen app not visible through Teamviewer on Windows

2016-01-08 Thread Cornelius Hald
Sorry, I found that setting but it seems to make no difference :(

Cheers,
Conny

On Fri, 2016-01-08 at 09:47 +0100, Cornelius Hald wrote:
> Hi Kulias,
> 
> thanks for your input and sorry for the delay (been on vacation).
> 
> Which version of Teamviewer are you using? With Teamviewer 10 it
> looks
> like there is no such setting.
> 
> Cheers,
> Conny
> 
> 
> On Fri, 2015-12-18 at 04:15 +, Kulias wrote:
> > Hi,
> > 
> > Try unchecked "Ignore alpha blending on this computer" in
> > teamviewer 
> > host options:
> > [Advance]->[Advanced settings for connections to this computer]
> > 
> > It works in my case
> > 
> > Cheers
> > - Kulias
> > 
> > 
> > 
> > ___
> > Interest mailing list
> > Interest@qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTabWidget activity

2016-01-08 Thread Murphy, Sean
> I would probably prefer something like an overlay message popping up for a
> few seconds or (a bit nineties style) a status bar message. Another would be
> to have a subtle small icon overlay float from the button up to the tab.

Overlay message probably is a little more intrusive than we want, but might be 
an option. Status bar message I can (and probably will do), but that's probably 
not very noticeable given where the user's eyes are most likely to be. I do 
like 
the idea of doing an animation, that definitely would be eye-catching, positive 
feedback that something happened, and also give the user the notion of 
where it the snapshot went.
 
> I was trying to think if there were ways to hack around a QStyle proxy to do
> the flashy bit, but I'm not sure without spending a fair amount of time. The
> trick in this case is always the same idea:
> 
> 1) Override only exactly what you need, in this case the drawing of a single
> tab.
> 2) Find a way to realize that you're currently painting the thing you want to
> change.
> 3) Override the painting of that single item, call the base class painter for 
> all
> others.
> 
> This is a generic QStyle trick that can be used for many evil purposes.
> The problem with it is that it's quite hard to debug for anyone that doesn't
> know you have done it - imagine the poor developer going "where the
> f!#¤%& does that come from"? Hurting maintainability is usually a bad idea.
> 
> The trick has much more of an appeal if you already have a lot of QStyle stuff
> in your code.

I'm fairly certain I've never explicitly typed:
 #include 
in my career, so that probably gives you some indication of how much QStyle 
stuff is in my code! If I can't get any of the above stuff working, I might try 
to
come up to speed on using QStyle stuff to help out.

On a related note if I do decide to play around with QStyle stuff, the original 
effect I'm trying to do was supposed to be a subtle change of color to the 
native QTabBar's tab. Are there any resources that help me start from how
Qt was naturally going to draw the tab? As I was playing around with the
stylesheet option I'm realizing it's very difficult to use a stylesheet to 
replicate most of the native widget's looks and feel, but then just tint the
color a little. But because of the way stylesheets are all or none, you can't
simply do: 
  QTabBar::tab:middle{
background: #00ff00;
  }
Because then you just end up with the middle tab(s) that while they are 
green, they are very flat, undecorated. So I spent a lot of time yesterday
playing around, trying to get something that looks close to natural. I don't 
think
I'm quite there yet!

Sean
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTimer priority

2016-01-08 Thread Edward Sutton

On Jan 8, 2016, at 4:11 AM, Etienne Sandré-Chardonnal 
> wrote:

Dear all,

In a recent stress test, where I created 5 sub-processes, each one starting 
idealThreadCount() fully working threads (ie they never sleep), I found that a 
QTimer responsible for sending some information messages to the sub-process 
stdout was stuck until the working threads stopped.

The QTimer is created and lives in the main thread, and the main event loop is 
alive and responds to event. But the slot to which timeout() is called is never 
called until the worker threads finish.

Could it be that the QTimer is using a different thread, that gets stuck due to 
the high system load?

The platform is Windows


While possible, I doubt issue is caused by system load.

Slots will not get called unless the main event loop gets to run.  You can 
force this to happen by calling processEvents.  If you find yourself calling 
processEvents you may need to analyze your code for “bad smells”.


QCoreApplication::processEvents();


If you are emitting signals from threads and need to receive them on a slot in 
your MainWindow for example, you can use a QueuedConnection


// Use QueuedConnection because readyRead signal is called from a thread 
that uses WINSOCK to listen for Bluetooth receive data

connect(_bufferReceiveWriter, SIGNAL(readyRead()),

this,   SIGNAL(readyRead()),

Qt::ConnectionType(Qt::QueuedConnection | Qt::UniqueConnection));

I would recommend to analyze where you create your QTimer, where you emit the 
QTimer signals, and where is your slot located.

-Ed



Thanks!
___
Interest mailing list
Interest@qt-project.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest=CwICAg=G4BpsyPyB19LB50bn2swXw=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc=1SUE5pnBqhPlyK46ciVn5FvriHwNe1xMp53ZSF_EzVs=ijsGadn_1LnVhAnq--bFQuZ8gSActgybIy2UMd5B__g=

This email and any files transmitted with it from The Charles Machine Works, 
Inc. are confidential and intended solely for the use of the individual or 
entity to which they are addressed. If you have received this email in error 
please notify the sender. Our company accepts no liability for the contents of 
this email, or for the consequences of any actions taken on the basis of the 
information provided, unless that information is subsequently confirmed in 
writing. Please note that any views or opinions presented in this email are 
solely those of the author and do not necessarily represent those of the 
company. Finally, the recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused 
by any virus transmitted by this email.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTabWidget activity

2016-01-08 Thread Murphy, Sean
> Does something different happen every time
> or does the same thing happen every time.
> 
> If the same thing happens every time then the user
> has very little to learn. If I were the user, an
> over animated, eye-catching response would get old
> real fast.

Good question! The same thing happens every time, but it's a somewhat infrequent
operation, and obviously one that the user initiates. So I think if I go down 
the animation 
route, as long as it is a quick animation that doesn't interfere much I'd be Ok.

I honestly prefer just changing the text on the destination tab where the 
number of
unseen snapshots is indicated like so:
  Normal tab text "Data Review"
  User takes a snapshot, tab text changes to "Data Review (1)"
  User takes another snapshot, tab text changes to "Data Review (2)"
  User makes the Data Review tab the current tab, tab text changes back to 
"Data Review"
Or do a similar idea just setting an icon on the tab when there are new unseen 
snapshots, clearing 
the icon once the user makes the tab current.

But at the moment I'm being out-voted by my boss - so I'm still trying to win 
this one...
Sean
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] IDE used to develop qt library

2016-01-08 Thread Thiago Macieira
On Friday 08 January 2016 07:31:45 Boettger, Heiko wrote:
> Hi,
> 
> I just wonder what kind of IDE do you use to develop the qt library itself.

Qt Creator.

> I didn't find any qtcreator files in the source. What do tools do you use
> for development and browsing the code?

Qt Creator can read the *.pro files.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTabWidget activity

2016-01-08 Thread william.croc...@analog.com

On 01/08/2016 09:49 AM, Murphy, Sean wrote:

I would probably prefer something like an overlay message popping up for a
few seconds or (a bit nineties style) a status bar message. Another would be
to have a subtle small icon overlay float from the button up to the tab.


Overlay message probably is a little more intrusive than we want, but might be
an option. Status bar message I can (and probably will do), but that's probably
not very noticeable given where the user's eyes are most likely to be. I do like
the idea of doing an animation, that definitely would be eye-catching, positive
feedback that something happened, and also give the user the notion of
where it the snapshot went.



Does something different happen every time
or does the same thing happen every time.

If the same thing happens every time then the user
has very little to learn. If I were the user, an
over animated, eye-catching response would get old
real fast.

Bill
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] QTimer priority

2016-01-08 Thread Thiago Macieira
On Friday 08 January 2016 11:11:11 Etienne Sandré-Chardonnal wrote:
> Could it be that the QTimer is using a different thread, that gets stuck
> due to the high system load?

If you created it in a different thread, then it is using that thread.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest