Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
WebView::keyPressEvent(QKeyEve nt *event)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BerenScott  
View profile  
 More options Nov 30 2011, 11:01 pm
From: BerenScott <berensc...@iinet.net.au>
Date: Wed, 30 Nov 2011 20:01:28 -0800 (PST)
Local: Wed, Nov 30 2011 11:01 pm
Subject: WebView::keyPressEvent(QKeyEvent *event)
Hello,

I am trying to place a call to keyPressEvent which basically hits the
enter key. Could someone please tell me how to structure that call?

Something like:

keyPressEvent(blah blah blah);

What do I put in blah blah blah?

Beren


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Iastrubni  
View profile  
 More options Dec 1 2011, 6:51 am
From: Diego Iastrubni <diegoi...@gmail.com>
Date: Thu, 1 Dec 2011 13:51:08 +0200
Local: Thurs, Dec 1 2011 6:51 am
Subject: Re: WebView::keyPressEvent(QKeyEvent *event)

On Thu, Dec 1, 2011 at 6:01 AM, BerenScott <berensc...@iinet.net.au> wrote:
> Hello,

> I am trying to place a call to keyPressEvent which basically hits the
> enter key. Could someone please tell me how to structure that call?

> Something like:

> keyPressEvent(blah blah blah);

> What do I put in blah blah blah?

This is a callback method, you need to overload it, not call it directly.

What are you trying to do? emulate a keypress?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Beren Scott  
View profile  
 More options Dec 1 2011, 7:05 am
From: Beren Scott <berensc...@iinet.net.au>
Date: Thu, 01 Dec 2011 23:05:10 +1100
Local: Thurs, Dec 1 2011 7:05 am
Subject: Re: WebView::keyPressEvent(QKeyEvent *event)

This is what will happen, I need to open up 5 new tabs, and then
automate the actions in each tab most of which will never be seen. So,
to do this, I want to put some code into the webview.cpp, so that when a
certain condition is met, on load, it will basically hit the enter key.

keyPressEvent exists within the webview.cpp, but I don't really know how
to call it. If I have to overload it, how exactly do I do that?

keyPressEvent << Qt::Key_Enter;

or something like that?

Beren


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Iastrubni  
View profile  
 More options Dec 1 2011, 8:07 am
From: Diego Iastrubni <diegoi...@gmail.com>
Date: Thu, 1 Dec 2011 15:07:55 +0200
Local: Thurs, Dec 1 2011 8:07 am
Subject: Re: WebView::keyPressEvent(QKeyEvent *event)

If you want to automate a GUI - there are better solutions (see
http://www.froglogic.com/)
If you want to submit several forms - again, better place.

If you want something "else", I found this via a short google search.
Please read it:
http://stackoverflow.com/questions/2035310/how-can-i-simulate-user-in...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Beren Scott  
View profile  
 More options Dec 1 2011, 8:41 am
From: Beren Scott <berensc...@iinet.net.au>
Date: Fri, 02 Dec 2011 00:41:11 +1100
Local: Thurs, Dec 1 2011 8:41 am
Subject: Re: WebView::keyPressEvent(QKeyEvent *event)

Unfortunately, I wish to do it in the method I have specified. I wish to
send the enter key to multiple tabs using the keyPressEvent in
webview.cpp. Could you please just specify how I can go about doing
that? I'm fairly new at all of this. I have done a lot of work on this,
but just need to do that above mentioned action.

Beren


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Diego Iastrubni  
View profile  
 More options Dec 1 2011, 9:00 am
From: Diego Iastrubni <diegoi...@gmail.com>
Date: Thu, 1 Dec 2011 16:00:18 +0200
Local: Thurs, Dec 1 2011 9:00 am
Subject: Re: WebView::keyPressEvent(QKeyEvent *event)

On Thu, Dec 1, 2011 at 3:41 PM, Beren Scott <berensc...@iinet.net.au> wrote:
> > If you want something "else", I found this via a short google search.
> > Please read
> > it:
> http://stackoverflow.com/questions/2035310/how-can-i-simulate-user-in...

> Unfortunately, I wish to do it in the method I have specified. I wish to
> send the enter key to multiple tabs using the keyPressEvent in
> webview.cpp. Could you please just specify how I can go about doing
> that? I'm fairly new at all of this. I have done a lot of work on this,
> but just need to do that above mentioned action.

Please read the last link in the previous email (quoted here).

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »