[Interest] Qt 4.8.4: install directory on OSX

2013-03-05 Thread Sensei
Dear All,

this is quite simple. I'm upgrading from qt 4.8.1 to 4.8.5, but this 
installer does not let me change the default installation directory.

Do I have to compile Qt myself from sources?


That would be quite annoying.


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


Re: [Interest] Qt 4.8.4: install directory on OSX

2013-03-05 Thread Thiago Macieira
On terça-feira, 5 de março de 2013 09.12.14, Sensei wrote:
 Dear All,

 this is quite simple. I'm upgrading from qt 4.8.1 to 4.8.5, but this
 installer does not let me change the default installation directory.

 Do I have to compile Qt myself from sources?

The Qt libraries installer has never let you select the installation directory
on Mac. The installation was always global.

You're probably thinking of the SDK installer. We have not released an SDK
installer for Qt 4 since Nokia stopped being part of the community. All efforts
have been directed to Qt 5.

For the moment, if you need a non-global installation on Mac, you'll need to
compile yourself.

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


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] Status of project Korhal

2013-03-05 Thread Stephan Kanthak
Hi,

a few months ago I came here with some OMAP4 related issues that I got 
fixed my way. Samuel pointed me to project Korhal and while I didn't try 
it immediately I now found the time to try it (and I also like the 
idea). Yet I didn't get beyond some compiler issues as soon as it hits 
the first Qt source code, but I think I can fix that.

As I may want to port the code also to Android 4.2.1 I would like to 
know what the status of that project is. Is there anybody who I can ask 
for details (beyond the blog/wiki entries that are there)? If successful 
I may be able to provide a 4.2.1 setup for the original Kindle Fire, 
just in case someone is interested in that (hardware is pretty similar 
to the mid-age Pandaboards, so it's likely that'll work quickly, too). 
Would the project Korhal repository be the right place for that?

Best,
Stephan

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


Re: [Interest] Qt 4.8.4: install directory on OSX

2013-03-05 Thread Sensei
On 3/5/13 9:23am, Thiago Macieira wrote:
 The Qt libraries installer has never let you select the installation directory
 on Mac. The installation was always global.

 You're probably thinking of the SDK installer. We have not released an SDK
 installer for Qt 4 since Nokia stopped being part of the community. All 
 efforts
 have been directed to Qt 5.

 For the moment, if you need a non-global installation on Mac, you'll need to
 compile yourself.


Thanks for the response, it's quite clear now.

To your knowledge, is there a global changelog for Qt SDK? I can only 
find per-package logs.



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


[Interest] Is QMetaMethod::tag() functional?

2013-03-05 Thread Immanuel Weber
Hi all,

I allready asked that question on the qt-forums, but did not get any
response, so maybe here somebody can help me.
I tried to use the QMetaMethod::tag() feature as described in the
documentation, however it does not work.
Actually there is a note in the documentation (
http://qt-project.org/doc/qt-5.0/qtcore/qmetamethod.html#tag) that states: For
the moment, moc doesn't support any special tags. Does special tag mean,
any user specified tag and hence the feature is non-functional?

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


[Interest] Building Qt 5.0.1 on Windows using VS2010 fails

2013-03-05 Thread Rainer Wiesenfarth

I configured Qt 5.0.1 with

configure.bat -release -commercial -c++11 -shared \
  -no-ltcg -nomake demos -nomake examples \
  \
  -no-accessibility \
  \
  -qt-sql-sqlite -opengl desktop \
  -qt-zlib -qt-libpng -no-libjpeg -no-openssl -no-dbus \
  -mp -confirm-license

When I try to nmake Qt, I get the errors below on linking Qt5Gui.lib.
Do I have to remove the -no-accessibility switch from configure? 
However, I built Qt 5.0.0 with the same configure options (plus -fast, 
which seems to be no longer supported).


link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL 
/VERSION:5.01 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5Gui.dll.embed.
manifest /OUT:..\..\lib\Qt5Gui.dll 
@C:\Users\rwiesen\AppData\Local\Temp\nm44DE.tmp

   Creating library ..\..\lib\Qt5Gui.lib and object ..\..\lib\Qt5Gui.exp
qguiapplication.obj : error LNK2019: unresolved external symbol public: 
static struct QMetaObject const QAccessible::staticMetaObject 
(?staticMetaObject@QAccessible@@2UQMetaObject@@B) referenced in function 
public: static class QString __cdecl QAccessible::tr(char const *,char 
const *,int) (?tr@QAccessible@@SA?AVQString@@PEBD0H@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual struct QMetaObject const * __cdecl 
QAccessible::metaObject(void)const  
(?metaObject@QAccessible@@UEBAPEBUQMetaObject@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual void * __cdecl QAccessible::qt_metacast(char const *) 
(?qt_metacast@QAccessible@@UEAAPEAXPEBD@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual int __cdecl QAccessible::qt_metacall(enum 
QMetaObject::Call,int,void * *) 
(?qt_metacall@QAccessible@@UEAAHW4Call@QMetaObject@@HPEAPEAX@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QWindow * __cdecl QAccessibleInterface::window(void)const 
 (?window@QAccessibleInterface@@UEBAPEAVQWindow@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QVectorstruct QPairclass QAccessibleInterface *,class 
QFlagsenum QAccessible::RelationFlag   __cdecl 
QAccessibleInterface::relations(class QFlagsenum 
QAccessible::RelationFlag)const  
(?relations@QAccessibleInterface@@UEBA?AV?$QVector@U?$QPair@PEAVQAccessibleInterface@@V?$QFlags@W4RelationFlag@QAccessibleV?$QFlags@W4RelationFlag@QAccessible@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QAccessibleInterface * __cdecl 
QAccessibleInterface::focusChild(void)const  
(?focusChild@QAccessibleInterface@@UEBAPEAV1@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QColor __cdecl 
QAccessibleInterface::foregroundColor(void)const  
(?foregroundColor@QAccessibleInterface@@UEBA?AVQColor@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QColor __cdecl 
QAccessibleInterface::backgroundColor(void)const  
(?backgroundColor@QAccessibleInterface@@UEBA?AVQColor@@XZ)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual void __cdecl QAccessibleInterface::virtual_hook(int,void *) 
(?virtual_hook@QAccessibleInterface@@UEAAXHPEAX@Z)
qguiapplication.obj : error LNK2001: unresolved external symbol public: 
virtual class QAccessibleInterface * __cdecl 
QAccessibleEvent::accessibleInterface(void)const  
(?accessibleInterface@QAccessibleEvent@@UEBAPEAVQAccessibleInterface@@XZ)
qguiapplication.obj : error LNK2019: unresolved external symbol public: 
static void __cdecl QAccessible::updateAccessibility(class 
QAccessibleEvent *) 
(?updateAccessibility@QAccessible@@SAXPEAVQAccessibleEvent@@@Z) 
referenced in function public: static void __cdecl 
QAccessible::updateAccessibility(class QObject *,int,enum 
QAccessible::Event) 
(?updateAccessibility@QAccessible@@SAXPEAVQObject@@HW4Event@1@@Z)

..\..\lib\Qt5Gui.dll : fatal error LNK1120: 12 unresolved externals

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

--
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/geospatial/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer



smime.p7s
Description: S/MIME Kryptografische Unterschrift
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Building Qt 5.0.1 on Windows using VS2010 fails

2013-03-05 Thread Koehne Kai


 Subject: [Interest] Building Qt 5.0.1 on Windows using VS2010 fails
 
 I configured Qt 5.0.1 with
 
 configure.bat -release -commercial -c++11 -shared \
-no-ltcg -nomake demos -nomake examples \
\
-no-accessibility \
\
-qt-sql-sqlite -opengl desktop \
-qt-zlib -qt-libpng -no-libjpeg -no-openssl -no-dbus \
-mp -confirm-license
 
 When I try to nmake Qt, I get the errors below on linking Qt5Gui.lib.
 Do I have to remove the -no-accessibility switch from configure?

Yes. It seems you've ran into
https://bugreports.qt-project.org/browse/QTBUG-27860

Regards

Kai

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


[Interest] mouse gestures

2013-03-05 Thread Matthias Fuchs
Hi,

im am playing around with the imagegestures example and noticed that
I do not get any gesture events from a traditional mouse device.
Is this how it should behave? Do gestures only work with touch or even
multitouch input devices?

Is the a simple way to make the above example work with a mouse?

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


Re: [Interest] Using QtQuick 2.0 Screen.orientation

2013-03-05 Thread Rutledge Shawn
On 25 Feb 2013, at 11:11 PM, Jim Hodapp wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 I'm attempting to be notified in my QML application of when the
 underlying QScreen instance (one that I've implemented for my platform
 as a QPA plugin) changes the orientation property. In my QPA plugin, I
 am calling QWindowSystemInterface::handleScreenOrientationChange() any
 time after I set the orientation, and have also implemented the
 orientation() function. I call it like so:
 
 QWindowSystemInterface::handleScreenOrientationChange(QPlatformScreen::screen(),
 currentOrientation_);
 
 On my QML side, I simply have a Rectangle, and inside that rectangle I
 have the following signal handler:
 
 Screen.onOrientationChanged: {
console.log(*** Screen Orientation:  +
 orientationEnumToText(orient));
}
 
 The only time I see this is immediately after my QML app is run using
 qmlscene. The orientation value is the default value, namely
 Qt.PrimaryOrientation. I'm confused why I'm not getting any other
 signal calls from my QPA implementation in my QML app? I've also set
 the orientationUpdateMask in my QPA plugin by calling
 setOrientationUpdateMask() and passed it all 4 major orientations.
 
 What else do I need to do to get my signal handler in my QML app to be
 called every time the orientation changes in the QPA plugin?

Sorry for the silence; it's a little early to answer this very specifically, 
because we are just now implementing it on a couple of platforms, and there are 
differences between them.

So you are writing a new QPA plugin?  Is this for Mir?

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


[Interest] Problems with joystick and mouse events

2013-03-05 Thread Matteo Baracani

Hi,

first of all I'm sorry for my bad English.
in my Qt application I've to substitute the mouse with a joystick. I've 
implement the cursor's movement and the left/right click. To simulate 
the mouse click I've connect the joystick buttons press/release signal 
to a slot that create a QMouseEvent and send it to the widget under the 
cursor. This work for som widget but not for others; in particular:


 - On QComboBox I can open the dialog and select and item but if I 
click outside the combobox the dialog stay open.
 - On QSpinBox if the click is on the lineedit to select it I have to 
use setFocus on it.
 - On QMainWindow the right click doesn't show the popup menu for the 
dock widget.


The slot to manage the joystick button press is this:

void DisplayWindow::joystickButtonPressed(int button)
{
QPoint cursor_position = QCursor::pos();
QWidget *widget_under_cursor = QApplication::widgetAt(cursor_position);
if (!widget_under_cursor)
return;

QPoint coordinate = 
widget_under_cursor-mapFromGlobal(cursor_position);

Qt::MouseButton button_pressed;
switch (static_castJoystick::JoystickButton(button))
{
case Joystick::BUTTON_4:
button_pressed = Qt::LeftButton;
break;
case Joystick::BUTTON_5:
button_pressed = Qt::RightButton;
break;
}
QMouseEvent *event = new QMouseEvent(QEvent::MouseButtonPress, 
coordinate,

button_pressed, button_pressed, Qt::NoModifier);
QApplication::postEvent(widget_under_cursor, event);
}


Thanks for your help.

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


Re: [Interest] Qt 4.8.4: install directory on OSX

2013-03-05 Thread Thiago Macieira
On terça-feira, 5 de março de 2013 10.38.04, Sensei wrote:
 To your knowledge, is there a global changelog for Qt SDK? I can only
 find per-package logs.

They're all in the dists/ directory and they are global.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


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] Using QtQuick 2.0 Screen.orientation

2013-03-05 Thread Jim Hodapp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rutledge,

On 03/05/2013 09:02 AM, Rutledge Shawn wrote:
 On 25 Feb 2013, at 11:11 PM, Jim Hodapp wrote:
 
 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1
 
 I'm attempting to be notified in my QML application of when the 
 underlying QScreen instance (one that I've implemented for my
 platform as a QPA plugin) changes the orientation property. In my
 QPA plugin, I am calling
 QWindowSystemInterface::handleScreenOrientationChange() any time
 after I set the orientation, and have also implemented the 
 orientation() function. I call it like so:
 
 QWindowSystemInterface::handleScreenOrientationChange(QPlatformScreen::screen(),

 
currentOrientation_);
 
 On my QML side, I simply have a Rectangle, and inside that
 rectangle I have the following signal handler:
 
 Screen.onOrientationChanged: { console.log(*** Screen
 Orientation:  + orientationEnumToText(orient)); }
 
 The only time I see this is immediately after my QML app is run
 using qmlscene. The orientation value is the default value,
 namely Qt.PrimaryOrientation. I'm confused why I'm not getting
 any other signal calls from my QPA implementation in my QML app?
 I've also set the orientationUpdateMask in my QPA plugin by
 calling setOrientationUpdateMask() and passed it all 4 major
 orientations.
 
 What else do I need to do to get my signal handler in my QML app
 to be called every time the orientation changes in the QPA
 plugin?
 
 Sorry for the silence; it's a little early to answer this very
 specifically, because we are just now implementing it on a couple
 of platforms, and there are differences between them.
 
 So you are writing a new QPA plugin?  Is this for Mir?

So I figured out the solution, and it was that I need to set the
update mask within my application. This works in my case since it was
a C++/QML app, but if you're writing a pure QML app, currently you
can't set the update mask and Screen.onOrientationChanged will not get
signaled.

This is for the Ubuntu Touch platform.

Thanks,

Jim

 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRNjszAAoJENCYE0OpVkFTuXoH/j0L1Sm03QMg4rLQDH3KHJsr
o/M5vCrP8G2MRtKKczFjoVjdrQErVNULEaQ2jJ9ext7ViC2fOXW6UsLdn4qMKhJT
DEbvyBELWO6qk1lScQe/mXZ55CLaoWiAPHQiqCqVXH/8CNVd1uy3xZ6J0uWxQ3kl
mgBwg4MoEGOpINKrm2Spt2ZX+XRtB6En1KP3oiAbf4DJivnKIUPn1vAVAqk5/Ffo
pI2lk4c0BiurMYz0/yeZHHf6Og63jXuTmquplucngjnCo5nC/4p1uRAkZ0qZuC50
tZP6qDxgdFNyHkJ5HJ+B6ykUEL3yR4AG9b848h9W7MfzVxKtDCSgVoaXnjienYc=
=vc3h
-END PGP SIGNATURE-
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] QGraphicsScene.render() does not respect source rect ?

2013-03-05 Thread David Heremans

Hello,

I seem to have a small problem here with the render function of the
QGraphicsScene.
I'm trying to print parts of a scene onto several pages, however it
seems that
the render method does the scaling as requested , but does not clip the
origin
to the source QRectF.
The scene contains several items that are all arranged in a tree like
structure, something like this:

|
+  = bar that is parent of all items
| | | | |
O O O O O  = a set of items below it.


and if I restrain the source QRectF to one or more items it will still print
the parent and the other children outside of the given rectangle. Filling up
the rest of the page which I definitely don't want.

I attached a small minimal example to demonstrate what I mean.
If I do not have the parent-item each ellipse ends up on a separate page
in the
first PDF generated. As soon as a attach them to a parent you will see
in the
second pdf that it will draw all the items to the right also...

Is there a way to avoid this? Or am I obliged to first render onto a
temporary image that I then copy towards the printer(or pdf)?

rgds,

David H

PS: I'm using Qt 4.8.1 on linux and 4.7.4 on windows 7 here, both of
course giving the same result :-)


-- 
openMSX - the open source MSX emulator that aims for perfection
http://openmsx.sf.net/

#include QtGui/QApplication
#include QGraphicsView
#include QGraphicsTextItem
#include QPrinter
#include QDebug

QGraphicsScene* scene;
void print(QString filename);

int main(int argc, char *argv[])
{
QApplication app(argc, argv);

QGraphicsView* view = new QGraphicsView();
scene = new QGraphicsScene();
view-setScene(scene);

//Some crude page numbers
QGraphicsTextItem* text1 = scene-addText(1);
QGraphicsTextItem* text2 = scene-addText(2);
QGraphicsTextItem* text3 = scene-addText(3);
text1-setScale(3.0);
text2-setScale(3.0);
text3-setScale(3.0);
text1-setPos(0.0 ,0.0);
text2-setPos(100.0 ,0.0);
text3-setPos(200.0 ,0.0);
//The items that we want on a seperate page each
QGraphicsEllipseItem* el1 = scene-addEllipse(0,100, 100,100);
QGraphicsEllipseItem* el2 = scene-addEllipse(100,100, 100,100);
QGraphicsEllipseItem* el3 = scene-addEllipse(200,100, 100,100);
//Some markers in the ellipse
scene-addLine(25,150, 75,150);
scene-addLine(150,125, 150,175);
scene-addLine(225,125, 275,175);
view-show();
// A PDF like we expected
print(pdf1.pdf);
//Now we add a parent to connect the tops of the ellipses
QGraphicsLineItem* line = scene-addLine(50,100,250,100);
el1-setParentItem(line);
el2-setParentItem(line);
el3-setParentItem(line);
// A faulty pdf, the first page has all 3 items
// the second page display still two items
// the 3th page is correct
print(pdf2.pdf);

return app.exec();
}

void print(QString filename)
{
//Print to a pdf file
QPrinter* printer = new QPrinter(QPrinter::ScreenResolution);
printer-setPaperSize(QPrinter::A4);
printer-setOrientation(QPrinter::Landscape);
printer-setOutputFormat(QPrinter::PdfFormat);
printer-setOutputFileName(filename);

QPainter* painter = new QPainter();
 bool ok = painter-begin(printer);
Q_ASSERT(ok);

QRect todrawrect;
QRect destrect=printer-pageRect();

for (int i=0;i3;i++){
todrawrect.setRect(100*i,0,100,200);
scene-render(painter,destrect,todrawrect,Qt::KeepAspectRatio);
if (i2){printer-newPage();};
}
painter-end();
delete painter;
delete printer;
}
QT   += core gui

TARGET = printpdf
TEMPLATE = app


SOURCES += main.cpp
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Is QMetaMethod::tag() functional?

2013-03-05 Thread Immanuel Weber
Thiago Macieira thiago.macieira at intel.com writes:

 
 On terça-feira, 5 de março de 2013 10.51.31, Immanuel Weber wrote:
  Hi all,
  
  I allready asked that question on the qt-forums, but did not get any
  response, so maybe here somebody can help me.
  I tried to use the QMetaMethod::tag() feature as described in the
  documentation, however it does not work.
  Actually there is a note in the documentation (
  http://qt-project.org/doc/qt-5.0/qtcore/qmetamethod.html#tag) that states:
  For the moment, moc doesn't support any special tags. Does special tag
  mean, any user specified tag and hence the feature is non-functional?
 
 No, it works just fine.
 
 QtDBus has been using and requiring that feature since Qt 4.2.
 

Mhh, then I must be doing something wrong, here is my code example:

main.cpp:
#include QCoreApplication
#include QMetaMethod
#include QDebug
#include tagclass.h

int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
auto obj = new TagClass();
for (int i = 0; i  obj-metaObject()-methodCount(); i++) {
qDebug()  name:   obj-metaObject()-method(i).name()  , tag: 
 
 obj-metaObject()-method(i).tag();
}
return a.exec();
}

tagclass.h:
#ifndef TAGCLASS_H
#define TAGCLASS_H

#include QObject
#define MYTAG // bla bla

class TagClass: public QObject
{
Q_OBJECT
public:
explicit TagClass(QObject * parent = 0) : QObject(parent) {}

public slots:
MYTAG void testFunc() {}
};

#endif // TAGCLASS_H

That should, as far as I understand, print the name and the tag of each 
invokable function of TagClass, but on my system (Win7x64 + Qt5.0.1x86) no tag 
is being printed for testFunc() :(


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


Re: [Interest] Is QMetaMethod::tag() functional?

2013-03-05 Thread Thiago Macieira
On terça-feira, 5 de março de 2013 21.14.32, Immanuel Weber wrote:
 Mhh, then I must be doing something wrong, here is my code example:

 #ifndef TAGCLASS_H
 #define TAGCLASS_H

 #include QObject
 #define MYTAG // bla bla

This is the issue. In Qt 5, moc expands macros, so it must not see the
expansion.

Take qdbusmacros.h:

#ifndef Q_MOC_RUN
# define Q_NOREPLY
#endif


 That should, as far as I understand, print the name and the tag of each
 invokable function of TagClass, but on my system (Win7x64 + Qt5.0.1x86) no
 tag is being printed for testFunc() :(

Yup. Take this source code, for example (it doesn't #include anything, it's
just for testing):

#define Q_NOREPLY
class MyObject: public QObject {
Q_OBJECT
public slots:
Q_NOREPLY void foo();
};

When processed with qdbuscpp2xml from Qt 4.8, it prints:
method name=foo
  annotation name=org.freedesktop.DBus.Method.NoReply value=true/
/method

When processed with Qt 5, it prints:
method name=foo
/method

It goes back to the original behaviour if I remove the #define line.
--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center


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] Multiple windows app modal?

2013-03-05 Thread Alex Malyushytskyy
I believe your case is outside of the normal usage pattern of modal
windows/dialogs.
Remember you can always disable any window at any time and leave only
desired windows accessible to user.

Alex

On Mon, Mar 4, 2013 at 5:06 PM, John Weeks j...@wavemetrics.com wrote:
 I have a need to make a group of windows behave in an app modal fashion,
 while being mutually non-modal. That is, the GUI in each of this group of
 windows is still responsive, but nothing should be allow in windows that
 aren't part of this group.

 I'm part of the way there by running a private event loop and event filter.
 The event filter blocks events for windows that aren't in the group (returns
 true for those events) and allows them (returns false) if the target window
 is one of the windows in the group.

 But there is (at least) one flaw- other windows can be activated. That is,
 they appear activated, but since I'm blocking any mouse and key events, they
 don't do anything.

 I'm wondering how Qt achieves the high-quality window modality that they use
 for a dialog. Or is it just that window modality is something that both
 Windows and Mac provide as an OS service, but what I want is not?

 Thanks to all!

 -John

 An IgorWindow is a class w use to encapsulate the parts of a window that
 are special to our application.

  bool PauseForUserObject::eventFilter(QObject *watched, QEvent *event)
 {
 Q_UNUSED(watched);
 bool result = false; // means don't block this event

 // This seems fragile. I have gone through the event type definition in
 qcoreevent.h and I am blocking
 // all the events that sound like GUI interaction events.
 if (event-type() == QEvent::MouseButtonPress ||
 event-type() == QEvent::MouseButtonRelease ||
 event-type() == QEvent::MouseMove ||
 event-type() == QEvent::KeyPress ||
 event-type() == QEvent::KeyRelease ||
 event-type() == QEvent::Wheel ||
 event-type() == QEvent::DragEnter ||
 event-type() == QEvent::DragMove ||
 event-type() == QEvent::DragLeave ||
 event-type() == QEvent::Drop ||
 event-type() == QEvent::DragResponse)
 {
 IgorWindow * watchedWindow = IgorWindowFromQObject(watched);
 if (watchedWindow == NULL)
 result = true; // block it
 else
 {
 result = !_windowIsRelatedToInterestingWindow(watchedWindow);
 }
 }

 if (event-type() == QEvent::Paint)
 result = false; // allow paint events for any window.

 if (event-type() == QEvent::ContextMenu ||
 event-type() == QEvent::MouseButtonDblClick ||
 event-type() == QEvent::InputMethod ||
 event-type() == QEvent::TabletMove ||
 event-type() == QEvent::TabletPress ||
 event-type() == QEvent::TabletRelease ||
 event-type() == QEvent::OkRequest ||
 event-type() == QEvent::HelpRequest ||
 event-type() == QEvent::IconDrag ||
 event-type() == QEvent::Shortcut ||
 event-type() == QEvent::ShortcutOverride ||
 event-type() == QEvent::WhatsThisClicked ||
 event-type() == QEvent::EnterWhatsThisMode ||
 event-type() == QEvent::LeaveWhatsThisMode ||
 event-type() == QEvent::HoverEnter ||
 event-type() == QEvent::HoverLeave ||
 event-type() == QEvent::HoverMove ||
 event-type() == QEvent::NonClientAreaMouseMove ||
 event-type() == QEvent::NonClientAreaMouseButtonPress ||
 event-type() == QEvent::NonClientAreaMouseButtonRelease ||
 event-type() == QEvent::NonClientAreaMouseButtonDblClick ||
 event-type() == QEvent::GrabMouse ||
 event-type() == QEvent::UngrabMouse ||
 event-type() == QEvent::GrabKeyboard ||
 event-type() == QEvent::UngrabKeyboard ||
 event-type() == QEvent::TouchBegin ||
 event-type() == QEvent::TouchUpdate ||
 event-type() == QEvent::TouchEnd
   )
 {
 result = true; // block this event
 }

 return result; // this block EVERYTHING
 }



 ___
 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] Qt VS Addin

2013-03-05 Thread Alex Malyushytskyy
Digia had plans to add Qt4 support according to link below:
http://blog.qt.digia.com/blog/2012/12/19/visual-studio-add-in-1-2-0-for-qt-5-released/

Alex

On Fri, Mar 1, 2013 at 4:56 AM, Duane duane.heb...@group-upc.com wrote:
 On 12/10/2012 02:41 AM, Haataja Ismo wrote:
 Hi!

 Will there be a VS addin for VS 2012 and Qt4?  I've asked this before
 but with no response.  Is there a better place to ask this question?

 Sorry about no response to the question earlier...

 There will be a VS-addin release for Qt4/VS2012 out at some point.
 This is the plan anyway. I can't confirm schedule for this but hopefully
 soon after we have final version of VS-addin for Qt5 ready and out.


 Does anyone know if the VS-addin for Qt4/VS2012 is available yet?
 Last one I tried was only for Qt5.

 ___
 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