I've seen a couple examples for compiling a CPP app into a
pyqt-loadable module such as
http://lynxline.com/qt-python-superhybrids/, but that still requires
compiling an existing application down to a C++ module. Is it
possible to use pyqt inside an existing CPP application to run python
code simi
Can you pull the table name out of the event object? Another option
is to make a unique function for each table, which calls the addFriend
function itself with the table name. That way you won't have to
duplicate addFriend code.
example:
addFriend(event, table):
def table1AddFriend(event)
> Thanks for the reply yes it is like thatĀ When i press tab it moves to next
> button but When i use this command
>
> print close.hasFocus()
>
> It prints False , Does it indicate that it dont have Focus ?
>
> Thank You
>
> On Wed, Aug 17, 2011 at 3:26 AM, Josh Stratt
QToolbarButton has a value for putting text underneath, which may be
more what you want.
On Tue, Aug 16, 2011 at 3:20 PM, uahmed wrote:
> HI
>
> I want to do alignment inĀ image and text , i want that image should be on
> center top and text should be at the bottom of image . I search for it but
That looks like the default button that has focus if you were to hit
"Enter" sending an event to that button. Like if you were to hit tab,
the second button would receive the focus. You can check if the
button has focus by calling hasFocus() or clearing it by calling
clearFocus(). That should re
I really need to add an entire program? I'm passing a
QGLShaderProgram and QMatrix4x4 and getting an "argument doesn't
exist". Would an entire program really provide that much more
information?
On Sun, Aug 14, 2011 at 2:45 PM, Phil Thompson
wrote:
> On Sun, 14 Aug 20
I'm getting type errors sending a QMatrixr4x4 to a QGLShaderProgram.
The program was taken from a C++ version of comparable code, but I'm
assuming I need to do something more on the pyqt side to get the value
passed over correctly?
objToWorld = QMatrix4x4()
flatShader.setUniformValue("objToWorld",
Is there an example of that somewhere? Is that on the python side or
the C++ side? Does that mean I cannot use boost::python and need to
switch to SIP?
On Thu, Aug 11, 2011 at 9:10 AM, Phil Thompson
wrote:
> On Thu, 11 Aug 2011 08:48:20 -0700, Josh Stratton
> wrote:
>> Is it pos
Is it possible to add qt widgets from a cmodule to a pyqt class?
For example if I have a widget MyWidget in mytest.so,
from pyqt import *
import mytest
widget = mytest.MyWidget() # C++ qt widget
window = QtGui.QMainWindow()
window.setCentralWidget(widget) # put C++ widget in pyqt widget
window.