Re: [Interest] window alway on top

2012-04-03 Thread Till Oliver Knoll


Am 03.04.2012 um 02:08 schrieb Tibo W tibo_...@yahoo.com:

 Hi guys,
 
 thanks a lot for your help !
 
 I forgot to mention one thing: on Ubuntu 10.04 X11 x86 running with gnome and 
 matacity, it's working.

Yes, what I said: More like guidelines for the actual window manager... ;)

 I also had to change the focus policy so I can still click on the background 
 (main app) window.

That sounds wrong to me: how exactly did you change the focus policy, and of 
what widget?

What you really want is setting the *modality* of your QDialog to non-modal. 
Look it up in the Qt docs:

  http://qt-project.org/doc/qt-4.8/QDialog.html

Hint: it's the first property described.

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


Re: [Interest] post event between threads

2012-04-03 Thread Riccardo Roasio
I cannot use signal/slot because is blocking and i need to continue
reading from serial port while message is processing...

Il 02 aprile 2012 18:47, Thiago Macieira thiago.macie...@intel.com ha scritto:
 On segunda-feira, 2 de abril de 2012 18.05.17, Riccardo Roasio wrote:
 Hi,

 how can i post an event from a thread to another?

 my application have a thread that read from a serial port and another
 thread that wait for something received on the serial port.

 I cannot use postEvent because in one thread i don'e have reference to
 the other...

 How can i do that?

 You don't post events to threads. You post events to objects only.

 The events are delivered in each object's associated thread.

 So, use:

        QCoreApplication::postEvent(myObject, new MyEvent);

 --
 Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

 ___
 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] post event between threads

2012-04-03 Thread Ильгиз Магазов
Hi, Riccardo

just use Qt::QueuedConnection, by default it is a Qt::AutoConnection

for me it works well, 

http://qt-project.org/doc/qt-4.8/qobject.html#connect
http://qt-project.org/doc/qt-4.8/qt.html#ConnectionType-enum


Tue, 3 Apr 2012 09:07:37 +0200 от Riccardo Roasio riccardo.roa...@gmail.com:
 I cannot use signal/slot because is blocking and i need to continue
 reading from serial port while message is processing...
 
 Il 02 aprile 2012 18:47, Thiago Macieira thiago.macie...@intel.com ha 
 scritto:
  On segunda-feira, 2 de abril de 2012 18.05.17, Riccardo Roasio wrote:
  Hi,
 
  how can i post an event from a thread to another?
 
  my application have a thread that read from a serial port and another
  thread that wait for something received on the serial port.
 
  I cannot use postEvent because in one thread i don'e have reference to
  the other...
 
  How can i do that?
 
  You don't post events to threads. You post events to objects only.
 
  The events are delivered in each object's associated thread.
 
  So, use:
 
         QCoreApplication::postEvent(myObject, new MyEvent);
 
  --
  Thiago Macieira - thiago.macieira (AT) intel.com
   Software Architect - Intel Open Source Technology Center
      Intel Sweden AB - Registration Number: 556189-6027
      Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
 
  ___
  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] post event between threads

2012-04-03 Thread Riccardo Roasio
I'm trying using signal/slots with Qt::QueuedConnection.
Now the problem is this one..i have

- gui thread (main)

- serial rx thread

- scriptmanager thread
|
|- script runner 1 thread (started from scriptsmanager)
|
|- script runner 2 thread (started from scriptsmanager)
|
|- script runner N thread (started from scriptsmanager)

now the event is emitted from serial rx thread

the main thread is able to catch the signal
the scriptmanager is able to catch the signal
the scriptrunner is NOT able to catch the signal

the only difference is that the sciptrunner has no parent (in the
construtor the parent is NULL)

Riccardo




Il 03 aprile 2012 09:29, Riccardo Roasio riccardo.roa...@gmail.com ha scritto:
 Ok,

 i will try!

 thanks everybody

 Il 03 aprile 2012 09:19, Lincoln Ramsay lincoln.ram...@nokia.com ha scritto:
 On 04/03/2012 05:07 PM, ext Riccardo Roasio wrote:
 I cannot use signal/slot because is blocking and i need to continue
 reading from serial port while message is processing...

 If you emit a signal and the receiver lives on the current thread and
 the connect() call did not use Qt::QueuedConnection, then it is
 blocking. If you use Qt::DirectConnection or
 Qt::BlockingQueuedConnection then it is always blocking.

 But if the receiver lives on another thread or if you specified
 Qt::QueuedConnection then the signal puts an object on the event loop
 and returns immediately.

 --
 Lincoln Ramsay - Senior Software Engineer
 Qt Development Frameworks, Nokia - http://qt.nokia.com/
 ___
 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] post event between threads

2012-04-03 Thread Samuel Gaist
If you show us the code you use to setup the connections, we might be able to 
offer better help.

Samuel

On 3 avr. 2012, at 11:09, Riccardo Roasio wrote:

 I'm trying using signal/slots with Qt::QueuedConnection.
 Now the problem is this one..i have
 
 - gui thread (main)
 
 - serial rx thread
 
 - scriptmanager thread
|
|- script runner 1 thread (started from scriptsmanager)
|
|- script runner 2 thread (started from scriptsmanager)
|
|- script runner N thread (started from scriptsmanager)
 
 now the event is emitted from serial rx thread
 
 the main thread is able to catch the signal
 the scriptmanager is able to catch the signal
 the scriptrunner is NOT able to catch the signal
 
 the only difference is that the sciptrunner has no parent (in the
 construtor the parent is NULL)
 
 Riccardo
 
 
 
 
 Il 03 aprile 2012 09:29, Riccardo Roasio riccardo.roa...@gmail.com ha 
 scritto:
 Ok,
 
 i will try!
 
 thanks everybody
 
 Il 03 aprile 2012 09:19, Lincoln Ramsay lincoln.ram...@nokia.com ha 
 scritto:
 On 04/03/2012 05:07 PM, ext Riccardo Roasio wrote:
 I cannot use signal/slot because is blocking and i need to continue
 reading from serial port while message is processing...
 
 If you emit a signal and the receiver lives on the current thread and
 the connect() call did not use Qt::QueuedConnection, then it is
 blocking. If you use Qt::DirectConnection or
 Qt::BlockingQueuedConnection then it is always blocking.
 
 But if the receiver lives on another thread or if you specified
 Qt::QueuedConnection then the signal puts an object on the event loop
 and returns immediately.
 
 --
 Lincoln Ramsay - Senior Software Engineer
 Qt Development Frameworks, Nokia - http://qt.nokia.com/
 ___
 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] post event between threads

2012-04-03 Thread Riccardo Roasio
Ok,

here serial rx threaad emit the signal:

emit MessageReceivedSignal();

here the main thread catch the signal:

connect(rxRoutine, SIGNAL(MessageReceivedSignal()),this,
SLOT(TestSlot()),Qt::QueuedConnection);

here is the constructor of scriptrunner that should catch the signal
but it doesn't

ScriptRunner::ScriptRunner(QObject *parent,Configuration *c,Script
*s,TxRoutine *t,RxRoutine *r,ComunicationLogConfigList *l,Message1281*
m) :
QThread(parent)
{
message1281=m;
comunicationLog=l;
activeConfiguration=c;
txRoutine=t;
rxRoutine=r;
myScript=s;
exit=false;

currentStep=0;

connect(rxRoutine, SIGNAL(MessageReceivedSignal()),this,
SLOT(TestSlot()),Qt::QueuedConnection);
}

and here is when i create the thread scriptrunner:

 qDebug()going to start... tmpScript-GetName();
tmpRunner=new
ScriptRunner(0,activeConfiguration,tmpScript,txRoutine,rxRoutine,comunicationLog,message1281);
tmpScript-SetRunning(true);
tmpRunner-start();
runners.append(tmpRunner);


Il 03 aprile 2012 11:12, Samuel Gaist samuel.ga...@edeltech.ch ha scritto:
 If you show us the code you use to setup the connections, we might be able to 
 offer better help.

 Samuel

 On 3 avr. 2012, at 11:09, Riccardo Roasio wrote:

 I'm trying using signal/slots with Qt::QueuedConnection.
 Now the problem is this one..i have

 - gui thread (main)

 - serial rx thread

 - scriptmanager thread
        |
        |- script runner 1 thread (started from scriptsmanager)
        |
        |- script runner 2 thread (started from scriptsmanager)
        |
        |- script runner N thread (started from scriptsmanager)

 now the event is emitted from serial rx thread

 the main thread is able to catch the signal
 the scriptmanager is able to catch the signal
 the scriptrunner is NOT able to catch the signal

 the only difference is that the sciptrunner has no parent (in the
 construtor the parent is NULL)

 Riccardo




 Il 03 aprile 2012 09:29, Riccardo Roasio riccardo.roa...@gmail.com ha 
 scritto:
 Ok,

 i will try!

 thanks everybody

 Il 03 aprile 2012 09:19, Lincoln Ramsay lincoln.ram...@nokia.com ha 
 scritto:
 On 04/03/2012 05:07 PM, ext Riccardo Roasio wrote:
 I cannot use signal/slot because is blocking and i need to continue
 reading from serial port while message is processing...

 If you emit a signal and the receiver lives on the current thread and
 the connect() call did not use Qt::QueuedConnection, then it is
 blocking. If you use Qt::DirectConnection or
 Qt::BlockingQueuedConnection then it is always blocking.

 But if the receiver lives on another thread or if you specified
 Qt::QueuedConnection then the signal puts an object on the event loop
 and returns immediately.

 --
 Lincoln Ramsay - Senior Software Engineer
 Qt Development Frameworks, Nokia - http://qt.nokia.com/
 ___
 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
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] post event between threads

2012-04-03 Thread Giuseppe D'Angelo
Do NOT add slots to QThread subclasses. You're doing it wrong.

Please read ALL of the following docs, wiki articles, blog posts:

http://qt-project.org/doc/qt-4.8/thread-basics.html
http://labs.qt.nokia.com/2010/06/17/youre-doing-it-wrong/
http://qt-project.org/wiki/Threads_Events_QObjects
http://qt-project.org/wiki/QThreads_general_usage
http://labs.qt.nokia.com/2006/12/04/threading-without-the-headache/

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


[Interest] -MT and static QT

2012-04-03 Thread Sergey
Hello,

I've found this article:
http://qt-project.org/faq/answer/why_does_a_statically_built_qt_use_the_dynamic_visual_studio_runtime_librar

I'm using vs2005, QT 4.5.3
Built it statically, with QMAKE_CFLAGS_RELEASE= -O2 -MT
  in mkspecs\win32-msvc2005\qmake.conf

But I didn't removed call to mt.exe in mkspecs/features and everything 
works well.

I have such manifests in my dll/exe files:

assembly xmlns=urn:schemas-microsoft-com:asm.v1 manifestVersion=1.0
dependency
dependentAssembly
assemblyIdentity type=win32 name=Microsoft.Windows.Common-Controls 
version=6.0.0.0 publicKeyToken=6595b64144ccf1df language=* 
processorArchitecture=*/assemblyIdentity
/dependentAssembly
/dependency
/assembly

What does this phrase mean:
For Visual Studio 2005 it is also necessary to change the relevant files 
in mkspecs/features to remove the call to mt.exe

If I search for phrase mt.exe in mkspecs\features, I find 2 files:
- embed_manifest_dll.prf
- embed_manifest_exe.prf

What changes are needed in this text of embed_manifest_dll.prf?:
MANIFEST_DIR = $$OBJECTS_DIR
isEmpty(MANIFEST_DIR):MANIFEST_DIR = .
!if(plugin:no_plugin_manifest):if(win32-msvc2005|win32-msvc2008):!static:!equals(TEMPLATE_PREFIX,
 
vc):equals(TEMPLATE, lib) {
 NOPATH_TARGET = $$TARGET
 NOPATH_TARGET ~= s,\\ , ,q  # Remove space escaping 
(NOPATH_TARGET is quoted)
 NOPATH_TARGET ~= s,\\,/,g   # Change to single type separators
 NOPATH_TARGET ~= s,^(.*/)+,,# Remove all paths
 QMAKE_LFLAGS += /MANIFEST 
$$quote(/MANIFESTFILE:\$${MANIFEST_DIR}\\$${NOPATH_TARGET}.intermediate.manifest\)
 QMAKE_PREV_POST_LINK = $$QMAKE_POST_LINK
 QMAKE_POST_LINK = $$quote(mt.exe -nologo -manifest 
\$$replace(MANIFEST_DIR,/,\\)\\$${NOPATH_TARGET}.intermediate.manifest\ 
-outputresource:$(DESTDIR_TARGET);2$$escape_expand(\n\t))
 QMAKE_POST_LINK += $$QMAKE_PREV_POST_LINK
 QMAKE_CLEAN += 
\$$replace(MANIFEST_DIR,/,\\)\\$${NOPATH_TARGET}.intermediate.manifest\
}

And else one question: they write:
we have experienced memory problems when using anything but the -MD(d) 
flag, and in general, it is recommended to use. You should not alter 
this flag yourself for your application, because it conflicts with how 
the Qt library is built if you change the flag to -MT. You should not 
change it for Qt either, since it is likely to cause problems.

If I use -MT, how can I detect if there are problems with memory in my 
app, they are writing about?

--
Sergey


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


Re: [Interest] post event between threads

2012-04-03 Thread Thiago Macieira
On terça-feira, 3 de abril de 2012 11.29.22, Riccardo Roasio wrote:
 And so what i can do?
 Or i have to read all the documentation

Add it to another class.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
 Intel Sweden AB - Registration Number: 556189-6027
 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Thiago Macieira
On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
 I've built a desktop version of 4.8.1 open source and I'm trying to make
 the qvfb binary.  I get a series of errors involving png_*  like
 png_structp does not name a type.

 I have png support built.  I have libpng installed.  I've seen a few
 posts on the web with this same issue but no solution.  I'm using Fedora
 16.  My colleague using the latest Ubuntu doesn't have this issue.  What
 am I missing?

What is the exact error?

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
 Intel Sweden AB - Registration Number: 556189-6027
 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Duane
On 04/03/2012 09:09 AM, Thiago Macieira wrote:
 On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
 I've built a desktop version of 4.8.1 open source and I'm trying to make
 the qvfb binary.  I get a series of errors involving png_*  like
 png_structp does not name a type.

 I have png support built.  I have libpng installed.  I've seen a few
 posts on the web with this same issue but no solution.  I'm using Fedora
 16.  My colleague using the latest Ubuntu doesn't have this issue.  What
 am I missing?

 What is the exact error?

There are 57 or so.

'png_structp' does not name a type
'png_infop'  does not name a type
'png_structp' has not been declared
'png_bytep' has not been declared
'png_size_t' has not been declared




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


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Konstantin Tokarev


03.04.2012, 17:16, Duane duane.heb...@group-upc.com:
 On 04/03/2012 09:09 AM, Thiago Macieira wrote:

  On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
  I've built a desktop version of 4.8.1 open source and I'm trying to make
  the qvfb binary.  I get a series of errors involving png_*  like
  png_structp does not name a type.

  I have png support built.  I have libpng installed.  I've seen a few
  posts on the web with this same issue but no solution.  I'm using Fedora
  16.  My colleague using the latest Ubuntu doesn't have this issue.  What
  am I missing?
  What is the exact error?

 There are 57 or so.

 'png_structp' does not name a type
 'png_infop'  does not name a type
 'png_structp' has not been declared
 'png_bytep' has not been declared
 'png_size_t' has not been declared

You need libpng-devel or something alike.

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


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Thiago Macieira
On terça-feira, 3 de abril de 2012 09.16.24, Duane wrote:
 On 04/03/2012 09:09 AM, Thiago Macieira wrote:
  On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
  I've built a desktop version of 4.8.1 open source and I'm trying to make
  the qvfb binary.  I get a series of errors involving png_*  like
  png_structp does not name a type.
 
  I have png support built.  I have libpng installed.  I've seen a few
  posts on the web with this same issue but no solution.  I'm using Fedora
  16.  My colleague using the latest Ubuntu doesn't have this issue.  What
  am I missing?
 
  What is the exact error?

 There are 57 or so.

 'png_structp' does not name a type
 'png_infop'  does not name a type
 'png_structp' has not been declared
 'png_bytep' has not been declared
 'png_size_t' has not been declared

What are the *EXACT* errors?

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
 Intel Sweden AB - Registration Number: 556189-6027
 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Harri Pasanen
On 04/03/2012 03:16 PM, Duane wrote:
 On 04/03/2012 09:09 AM, Thiago Macieira wrote:
 On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
 I've built a desktop version of 4.8.1 open source and I'm trying to make
 the qvfb binary.  I get a series of errors involving png_*  like
 png_structp does not name a type.

 I have png support built.  I have libpng installed.  I've seen a few
 posts on the web with this same issue but no solution.  I'm using Fedora
 16.  My colleague using the latest Ubuntu doesn't have this issue.  What
 am I missing?
 What is the exact error?
 There are 57 or so.

 'png_structp' does not name a type
 'png_infop'  does not name a type
 'png_structp' has not been declared
 'png_bytep' has not been declared
 'png_size_t' has not been declared

What is the first error?   That is typically the interesting one.

Looks like either some include is not picked up, or some define is 
missing, or variation of those. /usr/include/png.h should define it.

In general you can corner missing defines by adding '-E' to gcc flags to 
just run the preprocessor. Direct the output to file and be amazed at 
how much stuff the compiler has to go through, and where the symbols 
come from.  grep mymissingsymbol /usr/include/* to see where it should 
come from.

Just my 2 cents,

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


Re: [Interest] more problems with virtual frame buffer

2012-04-03 Thread Duane
On 04/03/2012 09:35 AM, Harri Pasanen wrote:
 On 04/03/2012 03:16 PM, Duane wrote:
 On 04/03/2012 09:09 AM, Thiago Macieira wrote:
 On terça-feira, 3 de abril de 2012 08.35.25, Duane wrote:
 I've built a desktop version of 4.8.1 open source and I'm trying to make
 the qvfb binary.  I get a series of errors involving png_*  like
 png_structp does not name a type.

 I have png support built.  I have libpng installed.  I've seen a few
 posts on the web with this same issue but no solution.  I'm using Fedora
 16.  My colleague using the latest Ubuntu doesn't have this issue.  What
 am I missing?
 What is the exact error?
 There are 57 or so.

 'png_structp' does not name a type
 'png_infop'  does not name a type
 'png_structp' has not been declared
 'png_bytep' has not been declared
 'png_size_t' has not been declared

 What is the first error?   That is typically the interesting one.

 Looks like either some include is not picked up, or some define is
 missing, or variation of those. /usr/include/png.h should define it.

 In general you can corner missing defines by adding '-E' to gcc flags to
 just run the preprocessor. Direct the output to file and be amazed at
 how much stuff the compiler has to go through, and where the symbols
 come from.  grep mymissingsymbol /usr/include/* to see where it should
 come from.

Thanks.


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


Re: [Interest] post event between threads

2012-04-03 Thread André Somers
Op 3-4-2012 11:29, Riccardo Roasio schreef:
 And so what i can do?
 Or i have to read all the documentation
Yes, reading the documentation will help you gain the needed 
understanding. Threading is a complex topic with many pitfalls. You've 
been given the list of things to read to understand this matter. I think 
it's only fair to expect that now you go invest some time to go and 
study those documents, before asking anyone here to invest more time to 
help to to a solution that you don't understand.

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


[Interest] Qt Creator 2.4.1 Designer plugin

2012-04-03 Thread Hugo Drumond Jacob
Hello All!

I developed some widgets to use on my project, and, for productivity
reasons I created a Qt Creator plugin to add my custom widgets to widgets
palette of Qt Creator Designer. But, recently, I ported my widgets to Qt
4.8.0 and now I'm using Qt Creator 2.4.1, but, my plugin don't work any
more. Qt Creator claims about inheriting of iPlugin.

Some references like
http://doc.qt.nokia.com/qtcreator-extending/first-plugin.html works fine,
but, I don't need to add a menu to Qt Creator, and, a merge of this
implementation and my plugin don't work!

So, anyone can help me with Qt Creator 2.4.1 Designer plugin?

Regards,

Hugo Drumond Jacob
Eng. de Controle e Automação - CREA-MG 143908/LP
Mestrando em Modelagem Matemática e Computacional - CEFET/MG
h...@jacob.eng.br | hug...@gmail.com
+55(31)85244245
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.0 alpha released

2012-04-03 Thread Jason H
I was worried this would be a Duke Nukem Forever situation, I'm glad to see its 
not! :-)

But last I checked there were many holes, like Windows desktop components, etc. 
It seems that Sybmian was very supported and the desktops were not. Is this no 
longer the case?




 From: marius.storm-ol...@nokia.com marius.storm-ol...@nokia.com
To: annou...@qt-project.org 
Cc: developm...@qt-project.org; releas...@qt-project.org; 
interest@qt-project.org 
Sent: Tuesday, April 3, 2012 11:01 AM
Subject: [Interest] Qt 5.0 alpha released
 

 
Hi,
 
We are happy to announce the Qt 5.0 alpha release. This is the first major Qt 
release since the Qt Project went live, and a large amount of work and features 
have gone into this release.
 
Blog post: http://labs.qt.nokia.com/2012/04/03/qt-5-alpha/
Download page: http://qt-project.org/wiki/Qt-5-Alpha
 
Thanks a lot for all the contributions and feedback, and thanks to all the 
people who made this happen!
 
The Qt Project
 
-- 
Marius Storm-Olsen
Head of Qt OSS
 
Nokia, Qt Development Frameworks
___
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] Disabling Wayland in Qt5

2012-04-03 Thread BOUCARD Olivier
Hi all,

I have successfully compiled a Qt5 version few weeks ago from the Git 
repository. It works well.
As  the Qt5 Alpha is out, I thought it was time to update my Qt5 version.
So I make a pull and a recursive update.
Now when I try to compile it, it fails during the Wayland plugins compilation.
But I does not care about Wayland, and I don't know how to disable it.
The -no-wayland configure option is now obsolete...

Thanks for your support.

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


[Interest] How to reorder QListView contents through Drag-N-Drop

2012-04-03 Thread Michael Jackson
I have a QListView in my GUI. I would like to be able to use Drag-N-Drop to 
allow the user to move items with the list. I have checked some settings in 
QDesigner to enable this functionality but the issue I am having is that if the 
user drags a selection directly over another entry then the entry that got 
dropped on is removed and the selected item that was being dragged is put in 
its place. Is there a way (without subclassing a custom Model) to disable the 
dropping of one item on another?
  I am currently using a QStringListModel and it looks I need to subclass that 
model and implement the flags() method? 


Qt::ItemFlags DragDropListModel::flags(const QModelIndex index) const
{
Qt::ItemFlags defaultFlags = QStringListModel::flags(index);

if (index.isValid())
return Qt::ItemIsDragEnabled | defaultFlags; 
else
return Qt::ItemIsDropEnabled | defaultFlags;
}

Is this a correct understanding of the situation?


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


Re: [Interest] Disabling Wayland in Qt5

2012-04-03 Thread Thiago Macieira
On terça-feira, 3 de abril de 2012 17.28.38, BOUCARD Olivier wrote:
 Hi all,

 I have successfully compiled a Qt5 version few weeks ago from the Git
 repository. It works well. As  the Qt5 Alpha is out, I thought it was time
 to update my Qt5 version. So I make a pull and a recursive update.
 Now when I try to compile it, it fails during the Wayland plugins
 compilation. But I does not care about Wayland, and I don't know how to
 disable it. The -no-wayland configure option is now obsolete...

If you don't want to compile Wayland, don't compile it. If you go into
qtwayland and type make, you'll compile it. If you don't, you don't.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
 Intel Sweden AB - Registration Number: 556189-6027
 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Re : Disabling Wayland in Qt5

2012-04-03 Thread BOUCARD Olivier
Thanks Thiago for your answer.

But as you can imagine I don't compile each module manually.
I use the build script. And I don't know how to tell it to forget about 
Wayland.

Is just removing the qt-wayland module folder sufficient?

Olivier.





 De : Thiago Macieira thiago.macie...@intel.com
À : interest@qt-project.org 
Envoyé le : Mardi 3 avril 2012 19h08
Objet : Re: [Interest] Disabling Wayland in Qt5
 
On terça-feira, 3 de abril de 2012 17.28.38, BOUCARD Olivier wrote:
 Hi all,
 
 I have successfully compiled a Qt5 version few weeks ago from the Git
 repository. It works well. As  the Qt5 Alpha is out, I thought it was time
 to update my Qt5 version. So I make a pull and a recursive update.
 Now when I try to compile it, it fails during the Wayland plugins
 compilation. But I does not care about Wayland, and I don't know how to
 disable it. The -no-wayland configure option is now obsolete...

If you don't want to compile Wayland, don't compile it. If you go into 
qtwayland and type make, you'll compile it. If you don't, you don't.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

___
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] %20%5BInterest%5D%20window%20alway%20on%20top

2012-04-03 Thread Tibo W
Yes, you're right, I don't have to change the focusPolicy.

The widget is not a QDialog, but a QGraphicsView with a QDialog window flag.
I use it to display a semi-transparent content on top of libVLC (who's inside a 
QWidget).

Now, my problem is when I toggle the video fullscreen, the QGraphicsView goes 
behind...
If it's a separate window (parent == NULL), I can call hide() then shoe(), 
it'll bring back forward. But that's no longer working.


Any idea ? thanks !
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Re : Disabling Wayland in Qt5

2012-04-03 Thread Thiago Macieira
On terça-feira, 3 de abril de 2012 18.25.49, BOUCARD Olivier wrote:
 Thanks Thiago for your answer.

 But as you can imagine I don't compile each module manually.
 I use the build script. And I don't know how to tell it to forget about
 Wayland.

 Is just removing the qt-wayland module folder sufficient?

It is.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
 Intel Sweden AB - Registration Number: 556189-6027
 Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden


signature.asc
Description: This is a digitally signed message part.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Re : Re : Disabling Wayland in Qt5

2012-04-03 Thread BOUCARD Olivier
Ok. Thanks.





 De : Thiago Macieira thiago.macie...@intel.com
À : interest@qt-project.org 
Envoyé le : Mardi 3 avril 2012 23h37
Objet : Re: [Interest] Re :  Disabling Wayland in Qt5
 
On terça-feira, 3 de abril de 2012 18.25.49, BOUCARD Olivier wrote:
 Thanks Thiago for your answer.
 
 But as you can imagine I don't compile each module manually.
 I use the build script. And I don't know how to tell it to forget about
 Wayland.
 
 Is just removing the qt-wayland module folder sufficient?

It is.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden

___
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] post event between threads

2012-04-03 Thread Lincoln Ramsay
On 04/03/2012 07:29 PM, ext Riccardo Roasio wrote:
 And so what i can do?

Read those docs.

In essence, you want something like this:

QThread *thread = new QThread;
MyObject *object = new MyObject;
object-moveToThread(thread);
thread-start();
connect(something, SIGNAL(blah()), object, SLOT(foo()));

-- 
Lincoln Ramsay - Senior Software Engineer
Qt Development Frameworks, Nokia - http://qt.nokia.com/
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


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

2012-04-03 Thread Tony Rietwyk
Hi Dair, 

Thanks-you for your very thorough explanation.  

Using an animated strip graphic similar to what MS Outlook 2010 does seems
to be a good solution for my app.  

Tony.

 -Original Message-
 From: interest-bounces+tony=rightsoft.com...@qt-project.org
 [mailto:interest-bounces+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, it
  shows the a cursor with four quadrants - 2 white and 2 black, which is
  very old, and not anti-aliased, so it looks really ugly.  I expect to
  see the spinning rainbow cursor, or possibly the circle of short lines
  that appears when logging in.
 
 Unfortunately Cocoa doesn't provide a built-in wait cursor; however the
 spinning BW quadrant is the historical I'm busy cursor so is arguably
the
 correct one to use.
 
 Mac OS X's Java implementation has an updated version of that cursor but
 unfortunately it's not available to non-Java apps:
 
 http://www.flickr.com/photos/raza/2721851036/
 
 The spinning rainbow cursor is an indication that the app has stopped
 responding to events, which is a separate situation from I'm busy working
 on something. If the app has stopped responding to events, users will
 assume it's OK to force quit it (and clicking the app icon in the Dock at
that
 point will show Force Quit rather than Quit).
 
 The spinning bars activity indicator is not meant as a cursor - that's
intended
 to be shown in a window.
 
 Adobe did actually use the activity indicator as a cursor at one point,
however
 a lot of people find it confusing (it would be like changing the cursor to
a
 progress bar):
 
 http://reliablybroken.com/b/2010/05/death-or-beachball/
 
 
 The lack of a wait cursor in Cocoa is really down to how Apple want
cursors to
 be used. Ideally the app should always show an arrow/non-wait cursor,
 should display progress using an activity indicator/progress bar, and
always
 respond to the user's input.
 
 If you're in a task which just can't be stopped, the user needs to see a
 window-modal sheet or app-modal dialog explaining what's going on (ideally
 with a Cancel button to let them interrupt it, and a progress bar/activity
 indicator to show them something's happening).
 
 
 -dair
 ___
 d...@refnum.com  http://www.refnum.com/
 
 
 
 ___
 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] self-register qaxserver in HKEY_CURRENT_USER\Software\Classes\CLSID instead of HCR\CLSID

2012-04-03 Thread Sergey
Hello,

Is it possible somehow to tune qaxserver so that it would register 
itself in  HKEY_CURRENT_USER\Software\Classes\CLSID instead of HCR\CLSID?

I need it so that non-privileged user could register my ActiveX.

--
Thanks


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