Qt-interest Archive, May 2008
QListView Seg Fault Qt 4.3
Message 1 in thread
Hi All,
When I try to use either of the following lines of code I get a seg fault
when I run my program. Any ideas?
ui.listView->setFlow(QListView::TopToBottom);
ui.listView->setMovement(QListView::Static);
ui.listView->setViewMode(QListView::IconMode);
When I comment all of them out again it all works grand again. I've tried
them all together and separately with no luck. Can anyone out there help?
Cheers,
--
[ signature omitted ]
Message 2 in thread
On Mon, May 12, 2008 at 11:17 PM, Stephen Mc Gowan <
stephen.mcgowan2@xxxxxxxxxxx> wrote:
> Hi,
>
> I found the problem, I figured I'd email back what the problem was....even
> if it was a bit stupid.
>
> I was running those 3 commands before ui.setupUi() was called, which
> obviously caused some problems...oops
>
> - Steve
>
>
> On Mon, May 12, 2008 at 10:42 AM, Andre Somers <andre@xxxxxxxxxxxxxxxx>
> wrote:
>
> > Hi,
> >
> > Do you also get a segfault if you create a minimal example with just the
> > QListView (and a standard model, perhaps)? If not, then I think you have a
> > problem elsewhere.
> >
> > André
> >
> > *From:* Stephen Mc Gowan <stephen.mcgowan2@xxxxxxxxxxx>
> > *Sent:* Monday, May 12, 2008 4:06 AM
> > *Newsgroups:* trolltech.qt-interest
> > *Subject:* QListView Seg Fault Qt 4.3
> >
> > Hi All,
> >
> > When I try to use either of the following lines of code I get a seg
> > fault when I run my program. Any ideas?
> >
> > ui.listView->setFlow(QListView::TopToBottom);
> > ui.listView->setMovement(QListView::Static);
> > ui.listView->setViewMode(QListView::IconMode);
> >
> > When I comment all of them out again it all works grand again. I've
> > tried them all together and separately with no luck. Can anyone out there
> > help?
> >
> > Cheers,
> > --
> > Stephen Mc Gowan.
> >
> > DCU Rockclimbing Club - Chair Person - www.redbrick.dcu.ie/~climbing<http://www.redbrick.dcu.ie/%7Eclimbing>
> > DCU Surf 'n' Sail - Equipment officer
> >
>
>
>
> --
> Stephen Mc Gowan.
>
> DCU Rockclimbing Club - Chair Person - www.redbrick.dcu.ie/~climbing<http://www.redbrick.dcu.ie/%7Eclimbing>
> DCU Surf 'n' Sail - Equipment officer
>
--
[ signature omitted ]