setGeometry() not working

570 views
Skip to first unread message

niamita

unread,
Jan 6, 2012, 8:12:05 AM1/6/12
to android-qt
Hi all
Might be this is a silly question but i have to ask when i am
trying to set geometry of my frame , it is not getting set. It is
working on qt but when i compile it on necessitas , geometry is not
getting set.
Do setGeometry() function is not supported by necessitas or i am
doing something wrong.If it is not supported then how can i set
geometry of my frame.
Please suggest me.
Waiting for yours reply.
Thanks

Tyler Mandry

unread,
Jan 7, 2012, 10:05:04 PM1/7/12
to andro...@googlegroups.com
Hi,

What is "your frame"? Is it a QFrame in a QWidget-based application? Is it a QmlApplicationViewer? Or something else? Please describe what exactly you're trying to do.
--
Tyler Mandry
Message has been deleted

niamita

unread,
Jan 8, 2012, 11:19:11 AM1/8/12
to android-qt
Thanks for reply. It is a QFrame which i want to open in middle of my
window when click on a button.

On Jan 8, 8:05 am, Tyler Mandry <tman...@gmail.com> wrote:
> Hi,
>
> What is "your frame"? Is it a QFrame in a QWidget-based application? Is it
> a QmlApplicationViewer? Or something else? Please describe what exactly
> you're trying to do.
>

Tyler Mandry

unread,
Jan 8, 2012, 4:26:13 PM1/8/12
to andro...@googlegroups.com
Is it a child of the window? I'm not sure what effect you're looking for, but calling setGeometry() doesn't sound like a very good way of doing things. Maybe using a QTabWidget or QStackedWidget will accomplish what you want. Or if it's a popup, use QDialog. (In any case, just because it works on desktop Qt doesn't mean it's a good way to do it. I've found that behavior differing between platforms can be an indication of the wrong approach. It's not always the case but often is. I would look there first before looking for a bug in Necessitas.)
--
Tyler Mandry
Reply all
Reply to author
Forward
0 new messages