| Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 5 | |
Is it possible to create an "event dead" widget in Qt, i.e. a widget you can paint on but that does not react on (especially) user action like keyboard or mouse events? My main problem is the DnD functionality. While e.g. setting a mask on the widget masks all mouse events in the masked area as well (as expected) and thus also allows to set the keyboard focus properly, the DnD events aren't masked and while i was able to send down mouse events of the non masked area to the below widgets (region comaration + QCoreApplication::sendEvent()) the DnD events are allways pushed back upwards to the widget that should have been "event dead" resulting in a recursion. I can of course catch the recursion, but that won't help me as still the lower widgets won't handle the DnD events.... I know that recent X versions support eventshaping (like XShape) but have no idea about Windows and Mac (or what will happen if i apply this to the Qt widgets) Thanks, Thomas -- [ signature omitted ]
Hello,
I am trying to create a set of custom functions to be used during the
qmake process. I have read the documentation in the help that shipped
with QT v4.2.3 that go along with creating custom functions to be used
by QMake.
I have a common file (name: common.pro) that contains what I intended
to be the definition of the custom function. The function would take two
parameters, both of type string, and then it would iterate through the
list of times executing actions on files that passed a filter.
My question resides on how to define a function in a .pro file, I have
included the foot print of the function as it stands now. QMake is
trying to execute this function verses define it. Can anyone help
explain how I can define the function?
[ Custom Function ]
defineCreateSDK(headersAndInline, destinationLocation) {
#
# ... code here.
#
}
--
[ signature omitted ]
Hello,
I am trying to create a set of custom functions to be used during the
qmake process. I have read the documentation in the help that shipped
with QT v4.2.3 that go along with creating custom functions to be used
by QMake.
I have a common file (name: common.pro) that contains what I intended
to be the definition of the custom function. The function would take two
parameters, both of type string, and then it would iterate through the
list of times executing actions on files that passed a filter.
My question resides on how to define a function in a .pro file, I have
included the foot print of the function as it stands now. QMake is
trying to execute this function verses define it. Can anyone help
explain how I can define the function?
[ Custom Function ]
defineCreateSDK(headersAndInline, destinationLocation) {
#
# ... code here.
#
}
--
[ signature omitted ]
Mike Corredera <mecorr@xxxxxxxxxxxx> wrote on 06/19/2007 11:38:37 AM: # Hello, # # I am trying to create a set of custom functions to be used during the # qmake process. I have read the documentation in the help that shipped # with QT v4.2.3 that go along with creating custom functions to be used # by QMake. I would start here: http://wiki.qtcentre.org/index.php?title=Undocumented_qmake I added some stuff regarding functions. -- [ signature omitted ]
...as s.e. hooked onto this thread, what could be misinterpreted as it was solved - it is NOT. Sorry for the recall, Thomas
Attachment:
Attachment:
pgpMuwbiK8jg3.pgp
Description: PGP signature