On 13.01.06 09:20:28, Phil Thompson wrote:
> On Friday 13 January 2006 2:02 am, Doug Bell wrote:
> > Hi -
> >
> > Menus in PyQt4 work fine when a separate action is created and assigned
> > to a menu item, but there is a problem when defining the action within
> > an overloaded QMenu.addAction() method. The menu gets created but then
> > gives a segmentation fault when the menu item is actuated.
> >
> > I've attached a short example that illustrates the problem. The first
> > item in the context menu (from a separate QAction) works fine, but the
> > second one (using the internal action) causes a seg fault.
> >
> > I'm using the 20060111 snapshot.
>> It works fine for me - on amd64.
Hmm, I wonder if that might be a reason why the mdi-example works with
your machine but not with mine here.
> Anybody else see a problem?
Yes selecting the "Broken Action" gives me:
(gdb) bt
#0 0xb72008ac in ?? ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#1 0xb7f0e8cf in initsip ()
from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#2 0xb7f0ea21 in initsip ()
from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#3 0xb7911cef in ?? ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtCore.so
#4 0xb7911e5a in ?? ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtCore.so
#5 0xb785f391 in QMetaObject::activate ()
from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#6 0xb785f666 in QMetaObject::activate ()
from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#7 0xb6cef6ce in QAction::triggered () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#8 0xb6cf018a in QAction::activate () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#9 0xb6f59e28 in QMenu::wheelEvent () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#10 0xb6f5c59a in QMenu::mouseReleaseEvent ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#11 0xb73a5f02 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#12 0xb6d36843 in QWidget::event () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#13 0xb6f56e90 in QMenu::event () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#14 0xb73a6513 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#15 0xb6cf450e in QApplicationPrivate::notify_helper ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#16 0xb6cf58bc in QApplication::notify ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#17 0xb74bf973 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#18 0xb6d4a212 in QApplication::x11ProcessEvent ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#19 0xb6d48fb2 in QApplication::x11ProcessEvent ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#20 0xb6d5a4d6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#21 0xb78504b3 in QEventLoop::processEvents ()
from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#22 0xb785070e in QEventLoop::exec () from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#23 0xb6f5a2aa in QMenu::exec () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#24 0xb73acc79 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#25 0x08126ee3 in PyCFunction_Call (func=0xb6b5e6fc, arg=0xb6b5e734, kw=0x0)
at Objects/methodobject.c:73
#26 0x080d23ce in call_function (pp_stack=0xbff2b0c0, oparg=1) at Python/ceval.c:3558
#27 0x080cdd72 in PyEval_EvalFrame (f=0x81b0964) at Python/ceval.c:2163
#28 0x080d020d in PyEval_EvalCodeEx (co=0xb7c36a78, globals=0xb7c79e94, locals=0x0,
args=0xb7c4a2e8, argcount=2, kws=0x0, kwcount=0, defs=0x0, defcount=0,
closure=0x0) at Python/ceval.c:2736
#29 0x081266c4 in function_call (func=0xb76898a4, arg=0xb7c4a2d4, kw=0x0)
at Objects/funcobject.c:548
#30 0x0805da38 in PyObject_Call (func=0xb76898a4, arg=0xb7c4a2d4, kw=0x0)
at Objects/abstract.c:1756
#31 0x08066424 in instancemethod_call (func=0xb76898a4, arg=0xb7c4a2d4, kw=0x0)
at Objects/classobject.c:2447
#32 0x0805da38 in PyObject_Call (func=0xb7c77fb4, arg=0xb6b5e6c4, kw=0x0)
at Objects/abstract.c:1756
#33 0x080d1c84 in PyEval_CallObjectWithKeywords (func=0xb7c77fb4, arg=0xb6b5e6c4,
kw=0x0) at Python/ceval.c:3425
#34 0xb7f1019c in initsip ()
from /home/andreas/python2.4/lib/python2.4/site-packages/sip.so
#35 0xb71f0751 in ?? ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#36 0xb7514b9c in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#37 0xb6d363c2 in QWidget::event () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#38 0xb75141c0 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#39 0xb6cf450e in QApplicationPrivate::notify_helper ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#40 0xb6cf5b95 in QApplication::notify ()
---Type <return> to continue, or q <return> to quit---
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#41 0xb74bf973 in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#42 0xb6d49f64 in QApplication::x11ProcessEvent ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#43 0xb6d48fb2 in QApplication::x11ProcessEvent ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#44 0xb6d5a4d6 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#45 0xb78504b3 in QEventLoop::processEvents ()
from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#46 0xb785070e in QEventLoop::exec () from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#47 0xb7853223 in QCoreApplication::exec ()
from /home/andreas/qt4.1.0/lib/libQtCore.so.4
#48 0xb6cf4239 in QApplication::exec () from /home/andreas/qt4.1.0/lib/libQtGui.so.4
#49 0xb74c337d in initQtGui ()
from /home/andreas/python2.4/lib/python2.4/site-packages/PyQt4/QtGui.so
#50 0x08126ee3 in PyCFunction_Call (func=0xb7665d54, arg=0xb7c59034, kw=0x0)
at Objects/methodobject.c:73
#51 0x080d23ce in call_function (pp_stack=0xbff2c510, oparg=0) at Python/ceval.c:3558
#52 0x080cdd72 in PyEval_EvalFrame (f=0x817414c) at Python/ceval.c:2163
#53 0x080d020d in PyEval_EvalCodeEx (co=0xb7c36b28, globals=0xb7c79e94,
locals=0xb7c79e94, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0,
defcount=0, closure=0x0) at Python/ceval.c:2736
#54 0x080c649c in PyEval_EvalCode (co=0xb7c36b28, globals=0xb7c79e94,
locals=0xb7c79e94) at Python/ceval.c:484
#55 0x080fad21 in run_node (n=0xb7c6f320, filename=0xbff2d717 "menutest.py",
globals=0xb7c79e94, locals=0xb7c79e94, flags=0xbff2c870)
at Python/pythonrun.c:1265
#56 0x080faccb in run_err_node (n=0xb7c6f320, filename=0xbff2d717 "menutest.py",
globals=0xb7c79e94, locals=0xb7c79e94, flags=0xbff2c870)
at Python/pythonrun.c:1252
#57 0x080fac9a in PyRun_FileExFlags (fp=0x8172008,
filename=0xbff2d717 "menutest.py", start=257, globals=0xb7c79e94,
locals=0xb7c79e94, closeit=1, flags=0xbff2c870) at Python/pythonrun.c:1243
#58 0x080f9925 in PyRun_SimpleFileExFlags (fp=0x8172008,
filename=0xbff2d717 "menutest.py", closeit=1, flags=0xbff2c870)
at Python/pythonrun.c:860
#59 0x080f9094 in PyRun_AnyFileExFlags (fp=0x8172008,
filename=0xbff2d717 "menutest.py", closeit=1, flags=0xbff2c870)
at Python/pythonrun.c:664
#60 0x08055f3c in Py_Main (argc=2, argv=0xbff2c974) at Modules/main.c:484
#61 0x08055372 in main (argc=2, argv=0xbff2c974) at Modules/python.c:23
Andreas
--
Blow it out your ear.
More information about the PyQt
mailing list
‘She has never mentioned her father to me. Was he—well, the sort of man whom the County Club would not have blackballed?’ "We walked by the side of our teams or behind the wagons, we slept on the ground at night, we did our own cooking, we washed our knives by sticking them into the ground rapidly a few times, and we washed our plates with sand and wisps of grass. When we stopped, we arranged our wagons in a circle, and thus formed a 'corral,' or yard, where we drove our oxen to yoke them up. And the corral was often very useful as a fort, or camp, for defending ourselves against the Indians. Do you see that little hollow down there?" he asked, pointing to a depression in the ground a short distance to the right of the train. "Well, in that hollow our wagon-train was kept three days and nights by the Indians. Three days and nights they stayed around, and made several attacks. Two of our men were killed and three were wounded by their arrows, and others had narrow escapes. One arrow hit me on the throat, but I was saved by the knot of my neckerchief, and the point only tore the skin a little. Since that time I have always had a fondness for large neckties. I don't know how many of the Indians we killed, as they carried off their dead and wounded, to save them from being scalped. Next to getting the scalps of their enemies, the most important thing with the Indians is to save their own. We had several fights during our journey, but that one was the worst. Once a little party of us were surrounded in a small 'wallow,' and had a tough time to defend ourselves successfully. Luckily for us, the Indians had no fire-arms then, and their bows and arrows were no match for our rifles. Nowadays they are well armed, but there are[Pg 41] not so many of them, and they are not inclined to trouble the railway trains. They used to do a great deal of mischief in the old times, and many a poor fellow has been killed by them." As dusk came on nearly the whole population of Maastricht, with all their temporary guests, formed an endless procession and went to invoke God's mercy by the Virgin Mary's intercession. They went to Our Lady's Church, in which stands the miraculous statue of Sancta Maria Stella Maris. The procession filled all the principal streets and squares of the town. I took my stand at the corner of the Vrijthof, where all marched past me, men, women, and children, all praying aloud, with loud voices beseeching: "Our Lady, Star of the Sea, pray for us ... pray for us ... pray for us ...!" It had not occurred to her for some hours after Mrs. Campbell had told her of Landor's death that she was free now to give herself to Cairness. She had gasped, indeed, when she did remember it, and had put the thought away, angrily and self-reproachfully. But it returned now, and she felt that she might cling to it. She had been grateful, and she had been faithful, too.[Pg 286] She remembered only that Landor had been kind to her, and forgot that for the last two years she had borne with much harsh coldness, and with a sort of contempt which she felt in her unanalyzing mind to have been entirely unmerited. Gradually she raised herself until she sat quite erect by the side of the mound, the old exultation of her half-wild girlhood shining in her face as she planned the future, which only a few minutes before had seemed so hopeless. After he had gloated over Sergeant Ramsey, Shorty got his men into the road ready to start. Si placed himself in front of the squad and deliberately loaded his musket in their sight. Shorty took his place in the rear, and gave out: The groups about each gun thinned out, as the shrieking fragments of shell mowed down man after man, but the rapidity of the fire did not slacken in the least. One of the Lieutenants turned and motioned with his saber to the riders seated on their horses in the line of limbers under the cover of the slope. One rider sprang from each team and ran up to take the place of men who had fallen. "As long as there's men and women in the world, the men 'ull be top and the women bottom." Then, in the house, the little girls were useful. Mrs. Backfield was not so energetic as she used to be. She had never been a robust woman, and though her husband's care had kept her well and strong, her frame was not equal to Reuben's demands; after fourteen years' hard labour, she suffered from rheumatism, which though seldom acute, was inclined to make her stiff and slow. It was here that Caro and Tilly came in, and Reuben began to appreciate his girls. After all, girls were needed in a house—and as for young men and marriage, their father could easily see that such follies did not spoil their usefulness or take them from him. Caro and Tilly helped their grandmother in all sorts of ways—they dusted, they watched pots, they shelled peas and peeled potatoes, they darned house-linen, they could even make a bed between them. HoME一级毛片视频免费公开
ENTER NUMBET 0018www.core1688.com.cn www.fuyo.net.cn www.daiy3.com.cn www.jwho.com.cn www.nbgy003.com.cn hls123.com.cn www.vpsq.com.cn zmzmn.com.cn www.xixunivf.com.cn yeagain.com.cn