Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
72 user(s) are online (60 user(s) are browsing Forums)

Members: 2
Guests: 70

samo79, nbache, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 10 11 ... 20 »
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
@mausle

Hmm... That's odd. I wonder why even the Qt examples are so filled with "bugs" ie. missing delete statements. Apparently they rely on some sort of auto-cleanup of resources.

Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@alfkil
Btw, as i check in all that QT examples, looks like with default QT menus, we can't spawn a menu just by pressing RMB on any working area ? (as we can do with native programms). It is QT itself designed like this, or need to add handler ?
(just some annoing about one more pluse for native menus :) )

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
@alfkil

could you try porting this?
http://qt-apps.org/content/show.php/QTerminal?content=92158

i want it so bad!! =)

Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information

Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
here is a new archive of qterminal,
i have ran the get_qtermwidget.sh and build.sh script on my ubuntu machine, as they wouldn't work from the amiga,
so the files are in place and patched, ready to be built.
should make things a lot easier.
qterminal.zip - 0.24MB

Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
@spotUp

I will take a look at it once these menus are fixed...

Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
@mausle

About the garbage collect thing then yes, on Ubuntu at least there is no such thing as c++ garbage collection (just tested). This is strange, though: On mac os, there is some kind of garbage collection implemented in objective c, so why not in c++?

Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@alfkil
Yeah ! Menus ! :)

@spotup
I tryed , and that what we have when trying to build qwidgetterm.so :

1. <sys/mman.h> (all those mmap, READ_PROT, MAP_PRIVATE, etc). Uses in 2 files, pretty easy to replace on malloc() & co.

2. Pty.cpp use <termios.h>. What mean all those: IXOFF, IXON, IXOFF, VERASE, tcgetpgrp() and + some stuff from termios (like struct ::termios blabla). Kpty.cpp also uses all that stuff , + some other (which i think KDE related). After that i not going futher, because its understanable that easy port will not be done, and need some reall rewriting.


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@alfkil

Great news about menu !

Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@alkfil
Found some info about qt-garbage-collection (here link )

Quote:

This is just a QT beginner question. In samples in example here:
http://doc.qt.nokia.com/4.6/widgets-lineedits.html
...we can see, that there are lots of Q** components allocated with "new" but never deleted with "delete[]".


And answer for him:

Quote:

Q_OBJECT handles deletion of its children. ( explained in docs , about QOBJECT) , but this is only true for the classes that are derived from QOBJECT. classes which does not have parents or if they are top level widgets , we have to care of deleting them.


Some more info (10 year old, but still), on trolltech site:

Quote:

> Hi,
> Does anyone know about the garbage collection mechanism in Qt or give me
> some clue about it? thanks.
There is none. C++ does no garbage collection, so qt doesn't either.
But if you delete a Q_OBJECT, all subobjects are deleted (you remember, all
Q_OBJECTs have a "parent" parameter in the constructor: if the parent
gets destructed, the object gets destructed too).


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@Roman

Just try easyPaint but here it crash at startup so it doesn't work, any tips ?

Quote:
Crash log for task "easyPaint"
Generated by GrimReaper 53.2
Crash occured in module libQtGui.so at address 0x6C988BAC
Type of crash: DSI (Data Storage Interrupt) exception

Register dump:
GPR (General Purpose Registers):
0: 6C988BAC 3E13DC60 00000000 3E09FF08 3E13DC78 00000884 00000000 3E147300
8: 00000000 00000000 00000000 3E13DC60 0000015C 571341BC 00000000 00000000
16: 4CCE4340 6F14B6C4 00000001 568E6760 02270000 00340014 02270000 3E136310
24: 00000001 5FF9F000 53EC52C0 00000000 02270000 02270000 3D6B0E20 3E13DC60


FPR (Floating Point Registers, NaN = Not a Number):
0: nan 0 0.858824 1
4: 0 0 0 0
8: 1 0 78 31
12: 0 4.5036e+15 0 -5.05923e-321
16: 1.32625e-315 0 2.14748e+09 4.5036e+15
20: 4.5036e+15 4.5036e+15 2.14748e+09 4.5036e+15
24: 4.5036e+15 2.14748e+09 4.5036e+15 4.5036e+15
28: 4.5036e+15 4.5036e+15 4.5036e+15 4.5036e+15

FPSCR (Floating Point Status and Control Register): 0x82004000


SPRs (Special Purpose Registers):
Machine State (msr) : 0x0002F030
Condition (cr) : 0x24422022
Instruction Pointer (ip) : 0x6C988BAC
Xtended Exception (xer) : 0x00000008
Count (ctr) : 0x6C988BAC
Link (lr) : 0x6C98B304
DSI Status (dsisr) : 0x00800000
Data Address (dar) : 0x3E13AFA0



680x0 emulated registers:
DATA: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
ADDR: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
FPU0: 0 0 0 0
FPU4: 0 0 0 0



Symbol info:
Instruction pointer 0x6C988BAC belongs to module "libQtGui.so" (PowerPC)
Symbol: _Z14qt_format_textRK5QFontRK6QRectFiPK11QTextOptionRK7QStringPS2_iPiiP8QPainter + 0x0 in section 10 offset 0x003E0BAC

Stack trace:
libQtGui.so:_Z14qt_format_textRK5QFontRK6QRectFiPK11QTextOptionRK7QStringPS2_iPiiP8QPainter()+0x0 (section 10 @ 0x3e0bac)
libQtGui.so:_ZNK6QStyle12drawItemTextEP8QPainterRK5QRectiRK8QPalettebRK7QStringNS5_9ColorRoleE()+0x5D0 (section 10 @ 0x7fb1e0)
libQtGui.so:_ZNK12QCommonStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x7F90 (section 10 @ 0x850304)
libQtGui.so:_ZNK13QWindowsStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x84F0 (section 10 @ 0x973258)
libQtGui.so:_ZNK15QPlastiqueStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x16A84 (section 10 @ 0x9022fc)
libQtGui.so:_ZNK12QCommonStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x5FB4 (section 10 @ 0x84e328)
libQtGui.so:_ZNK13QWindowsStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x84F0 (section 10 @ 0x973258)
libQtGui.so:_ZNK15QPlastiqueStyle11drawControlEN6QStyle14ControlElementEPK12QStyleOptionP8QPainterPK7QWidget()+0x16A84 (section 10 @ 0x9022fc)
libQtGui.so:_ZN13QStylePainter11drawControlEN6QStyle14ControlElementERK12QStyleOption()+0x64 (section 10 @ 0x9e4e0c)
libQtGui.so:_ZN7QTabBar10paintEventEP11QPaintEvent()+0xA60 (section 10 @ 0xbc2878)
libQtGui.so:_ZN7QWidget5eventEP6QEvent()+0xF34 (section 10 @ 0x1499a4)
libQtGui.so:_ZN7QTabBar5eventEP6QEvent()+0x6FC (section 10 @ 0xbc4dd4)
libQtGui.so:_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent()+0x248 (section 10 @ 0x1d630)
libQtGui.so:_ZN12QApplication6notifyEP7QObjectP6QEvent()+0x4184 (section 10 @ 0x21808)
libQtCore.so:_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent()+0x1E0 (section 10 @ 0x2fb85c)
libQtGui.so:_ZN16QCoreApplication20sendSpontaneousEventEP7QObjectP6QEvent()+0x80 (section 10 @ 0x49d8c)
libQtGui.so:_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0xE58 (section 10 @ 0x143390)
libQtGui.so:_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x7BC (section 10 @ 0x1444d4)
libQtGui.so:_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x588 (section 10 @ 0x1442a0)
libQtGui.so:_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x16B0 (section 10 @ 0x143be8)
libQtGui.so:_ZN14QWidgetPrivate22paintSiblingsRecursiveEP12QPaintDeviceRK5QListIP7QObjectEiRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x7BC (section 10 @ 0x1444d4)
libQtGui.so:_ZN14QWidgetPrivate10drawWidgetEP12QPaintDeviceRK7QRegionRK6QPointiP8QPainterP19QWidgetBackingStore()+0x16B0 (section 10 @ 0x143be8)
libQtGui.so:_ZN19QWidgetBackingStore4syncEv()+0x167C (section 10 @ 0x5a91d4)
libQtGui.so:_ZN14QWidgetPrivate16syncBackingStoreEv()+0x240 (section 10 @ 0x12cc40)
libQtGui.so:_ZN14QWidgetPrivate8show_sysEv()+0xE8 (section 10 @ 0x1ae458)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x5E4 (section 10 @ 0x1521e4)
libQtGui.so:_ZN14QWidgetPrivate14show_recursiveEv()+0x1D4 (section 10 @ 0x15171c)
libQtGui.so:_ZN14QWidgetPrivate12showChildrenEb()+0x33C (section 10 @ 0x151a78)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x178 (section 10 @ 0x151d78)
libQtGui.so:_ZN7QWidget10setVisibleEb()+0x900 (section 10 @ 0x152e2c)
libQtGui.so:_ZN7QWidget4showEv()+0x38 (section 10 @ 0x1a9378)
libQtGui.so:_ZN14QWidgetPrivate12showChildrenEb()+0x358 (section 10 @ 0x151a94)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x178 (section 10 @ 0x151d78)
libQtGui.so:_ZN14QWidgetPrivate14show_recursiveEv()+0x1D4 (section 10 @ 0x15171c)
libQtGui.so:_ZN14QWidgetPrivate12showChildrenEb()+0x33C (section 10 @ 0x151a78)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x178 (section 10 @ 0x151d78)
libQtGui.so:_ZN7QWidget10setVisibleEb()+0x900 (section 10 @ 0x152e2c)
libQtGui.so:_ZN7QWidget4showEv()+0x38 (section 10 @ 0x1a9378)
libQtGui.so:_ZN14QWidgetPrivate12showChildrenEb()+0x358 (section 10 @ 0x151a94)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x178 (section 10 @ 0x151d78)
libQtGui.so:_ZN7QWidget10setVisibleEb()+0x900 (section 10 @ 0x152e2c)
libQtGui.so:_ZN7QWidget4showEv()+0x38 (section 10 @ 0x1a9378)
libQtGui.so:_ZN14QWidgetPrivate12showChildrenEb()+0x358 (section 10 @ 0x151a94)
libQtGui.so:_ZN14QWidgetPrivate11show_helperEv()+0x178 (section 10 @ 0x151d78)
libQtGui.so:_ZN7QWidget10setVisibleEb()+0x900 (section 10 @ 0x152e2c)
libQtGui.so:_ZN7QWidget4showEv()+0x38 (section 10 @ 0x1a9378)
easyPaint:main()+0x1C4 (section 8 @ 0x5ec)
native kernel module newlib.library.kmod+0x00001f4c
native kernel module newlib.library.kmod+0x00002b98
native kernel module newlib.library.kmod+0x00002d5c
easyPaint:_start()+0x170 (section 8 @ 0x170)
native kernel module dos.library.kmod+0x0001b524
native kernel module kernel+0x00036290
native kernel module kernel+0x00036310


PPC disassembly:
6c988ba4: 4e800020 blr
6c988ba8: d0d281c8 stfs f6,-32312(r18)
*6c988bac: 9421d340 stwu r1,-11456(r1)
6c988bb0: 7c0802a6 mflr r0
6c988bb4: 7d800026 mfcr r12

System information:

CPU
Model: AMCC PPC440EP V1.3
CPU speed: 799 MHz
FSB speed: 133 MHz
Extensions:

Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@samo79
Stack size imho (i not put stack-cookie in the code itself, because it was not for release, just for internal testings). Do something like stack 2000000 in the shell, and then try.

For sure every QT port later should have stack cookie all the time (if we will not found a way to put it to sobjes), and that should be noted to some "qt-porting-on-amigaos4.txt" file (i already works on such text).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
Ok i will try increasing stack and then i'll report my results to you

Go to top
Re: Qt Native News
Just can't stay away
Just can't stay away


See User information
So... First step with menus complete: There is now an actual menu with the right text in the right places. Unfortunately it is not possible for sgrab to capture menus... :(

Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@alfkil
Yeah !! Imho hardest part are done, the nextly are cosmetic imho ? (like handling RMB, or its automatically already ?).

Btw, menu for now are only dynamic ? I mean for example you have "File" words in the menu at top of window, its is now reaction button, or its the same as before, or there is none at all now ?

But its all really cool :) Maybe can upload libqtgui.so separately (if changes only here?), so we can test the stuff already :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@Roman

It work now but there are some graphics corruption :-/

http://img35.imageshack.us/i/corrupte.png/

@alfkil


Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@samo79
Corruptions of textures as i know happens because of unfixed-public warp3d, and corruptions of text happens because of something like:

Quote:

2) Trashed text rendering [HELP NEEDED]
This is because of an api "discrepancy" in minigl. I need to look at the minigl sources again to see, if I can fix it.

3) Trashed textures [WAIT FOR WARP3D]
As far as I know, this has already been fixed in Warp3D, correct?


I only recompile that program, without any kind of changes :) All the answers about only alfkil have :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
So QT use that library (MiniGL) in all the part of the interface (?)... didn't know that and maybe now i'm understand why all things remain a bit slow (very slow in certain case), well just hope in new update maybe there will be a new MiniGL 2.6 on CD


Go to top
Re: Qt Native News
Home away from home
Home away from home


See User information
@samo79
Quote:

So QT use that library (MiniGL) in all the part of the interface (?)... didn't know that and maybe now i'm understand why all things remain a bit slow (very slow in certain case),


Yep, alfkil say somethere in that thread, that everything use MiniGL. Dunno if it possible at all for him to swith it off/on on current stage.


Quote:

well just hope in new update maybe there will be a new MiniGL 2.6


Hans say, that MiniGL2.5 was the latest one from MiniGL series (except if someone else, but not him, will add something to it, then he will release an update). For now everything will be concetrated on finishing of radeonHd drivers and working with 3d (galium/mesa).

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Qt Native News
Just popping in
Just popping in


See User information
Quote:

alfkil wrote:
@mausle

About the garbage collect thing then yes, on Ubuntu at least there is no such thing as c++ garbage collection (just tested). This is strange, though: On mac os, there is some kind of garbage collection implemented in objective c, so why not in c++?


Dunno, maybe different language design philosophy?

I'm sure you'll find more missing deletes or free() calls in nix software.

ciao

Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 10 11 ... 20 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project