Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, July 2007
Menu short-cut with Alt key


Message 1 in thread

Hi Everyone,
My application has several menus. I've also given the short-cut for them
in QT designer.

For example, my File menu is "&File". The short cut is Alt+f.

But when I run my application, I found only the right side Alt key with F
key
can work. The left side Alt key not working.

Can anybody tell me why ?

Regards,
Pagan


--
 [ signature omitted ] 

Message 2 in thread

Would anybody help me out with this issue ?

"Pagan Chou" <pagan_chou@xxxxxxxxxxxxxx> ¦b¶l¥ó
news:f6svrb$8b7$1@xxxxxxxxxxxxxxxxxx ¤¤¼¶¼g...
> Hi Everyone,
> My application has several menus. I've also given the short-cut for them
> in QT designer.
>
> For example, my File menu is "&File". The short cut is Alt+f.
>
> But when I run my application, I found only the right side Alt key with F
> key
> can work. The left side Alt key not working.
>
> Can anybody tell me why ?
>
> Regards,
> Pagan
>
>


--
 [ signature omitted ] 

Message 3 in thread

hi,
i would check if Alt+F combination is not mapped and used somehow by the
window manager; also try to use english keyboard map
regars,
mc

On 7/13/07, Pagan Chou <pagan_chou@xxxxxxxxxxxxxx> wrote:
>
> Would anybody help me out with this issue ?
>
> "Pagan Chou" <pagan_chou@xxxxxxxxxxxxxx> ¦b¶l¥ó
> news:f6svrb$8b7$1@xxxxxxxxxxxxxxxxxx ¤¤¼¶¼g...
> > Hi Everyone,
> > My application has several menus. I've also given the short-cut for them
> > in QT designer.
> >
> > For example, my File menu is "&File". The short cut is Alt+f.
> >
> > But when I run my application, I found only the right side Alt key with
> F
> > key
> > can work. The left side Alt key not working.
> >
> > Can anybody tell me why ?
> >
> > Regards,
> > Pagan
> >
> >
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 4 in thread

 > My application has several menus. I've also given the short-cut for
 > them in QT designer.
 >
 > For example, my File menu is "&File". The short cut is Alt+f.
 >
 > But when I run my application, I found only the right side Alt key
 > with F key can work. The left side Alt key not working.
 >
 > Can anybody tell me why ?

On some systems left and right Alt are mapped to different keys.
One might be pure Alt, while the other is AltGr (which is really 
Alt+Ctrl), or on X11 it can really be anything.. Meta for example, if 
your keyboard doesn't have dedicated Meta keys.

It's hard to say what yours is, without knowing neither the OS you're 
running, nor the keyboard layout..

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: OpenPGP digital signature


Message 5 in thread

Hi,

Can someone point the link in doc that tell me how to define when an 
item of a model may be shown or not. I d'ont seapk about flag that 
sepcify if an item is edited or not.
I don't want to display the item.

I suppose that I may search in view classes but don't see the info.
please any tips?

--
 [ signature omitted ] 

Message 6 in thread

Hi,

Use QSortFilterProxyModel.

Sincerely,

Bo Thorsen.
Thorsen Consulting - http://www.qt-experts.com

veronique.lefrere@xxxxxx skrev:
> Hi,
>
> Can someone point the link in doc that tell me how to define when an 
> item of a model may be shown or not. I d'ont seapk about flag that 
> sepcify if an item is edited or not.
> I don't want to display the item.
>
> I suppose that I may search in view classes but don't see the info.
> please any tips?
>
> -- 
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ] 

Message 7 in thread

veronique.lefrere@xxxxxx schrieb:
> Can someone point the link in doc that tell me how to define when an 
> item of a model may be shown or not. I d'ont seapk about flag that 
> sepcify if an item is edited or not.
> I don't want to display the item.

If I get your aim right, then there's no such flag that does what you 
want. You have to skip that item in data() and rowCount(), or use a 
filter proxy as Bo suggested.

Martin

-- 
 [ signature omitted ] 

Message 8 in thread

Martin Gebert a écrit :

> veronique.lefrere@xxxxxx schrieb:
>
>> Can someone point the link in doc that tell me how to define when an 
>> item of a model may be shown or not. I d'ont seapk about flag that 
>> sepcify if an item is edited or not.
>> I don't want to display the item.
>
>
> If I get your aim right, then there's no such flag that does what you 
> want. You have to skip that item in data() and rowCount(), or use a 
> filter proxy as Bo suggested.
>
> Martin
>
oups!... :-[
I send the text with letters in good order.
I don't speak about flag that specify  if an item is edited or not.

Thank for suggestions, I'll work on bothes.

Veronique.

--
 [ signature omitted ]