Bug 304195 - QClipboard doenst work on Android
Summary: QClipboard doenst work on Android
Status: RESOLVED FIXED
Alias: None
Product: Necessitas
Classification: Unmaintained
Component: Android Qt4 (other bugs)
Version First Reported In: alpha4
Platform: Android Unspecified
: NOR normal
Target Milestone: Unspecified
Assignee: BogDan Vatra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 17:55 UTC by Marco Bernasocchi
Modified: 2012-09-23 16:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Bernasocchi 2012-07-28 17:55:10 UTC
Is it possible that QClipboard doesnt work?
I've copy some text from Mobile Firefox and tried to insert these text in my Application, but the following code doesnt work.
On Desktop the problem doesnt exist.
...
QClipboard *cb = QApplication::clipboard();
ui->m_key->setText( cb->text() );
...
Comment 1 BogDan Vatra 2012-09-23 15:01:03 UTC
Git commit 363f93ca4cee1ca1d7ab2ddebf893ffc996c8919 by BogDan Vatra.
Committed on 23/09/2012 at 16:47.
Pushed by vatra into branch 'beta2'.

Add basic clipboard support.

Send right click on long press touch.

M  +39   -2    src/android/jar/src/org/kde/necessitas/industrius/QtNative.java
M  +11   -0    src/android/jar/src/org/kde/necessitas/industrius/QtSurface.java
M  +39   -1    src/android/jar_4/src/org/kde/necessitas/industrius/QtNative.java
M  +14   -3    src/gui/widgets/qlineedit.cpp
M  +92   -2    src/plugins/platforms/android/src/androidjnimain.cpp
M  +8    -1    src/plugins/platforms/android/src/androidjnimain.h
A  +52   -0    src/plugins/platforms/android/src/qandroidplatformclipboard.cpp     [License: LGPL]
A  +37   -0    src/plugins/platforms/android/src/qandroidplatformclipboard.h     [License: LGPL]
M  +11   -1    src/plugins/platforms/android/src/qandroidplatformintegration.cpp
M  +3    -0    src/plugins/platforms/android/src/qandroidplatformintegration.h
M  +2    -0    src/plugins/platforms/android/src/src.pri

http://commits.kde.org/android-qt/363f93ca4cee1ca1d7ab2ddebf893ffc996c8919
Comment 2 Marco Bernasocchi 2012-09-23 15:06:56 UTC
hi bogdan, just curious , means that a tapandhold will trigger right click
so that context menues and similar in qt will work seamless or will it
trigger a paste signal?

Marco Bernasocchi (mobile)
http://opengis.ch
On Sep 23, 2012 10:01 PM, "BogDan Vatra" <bogdan@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=304195
>
> BogDan Vatra <bogdan@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |RESOLVED
>          Resolution|---                         |FIXED
>       Latest Commit|                            |
> http://commits.kde.org/andr
>                    |
>  |oid-qt/363f93ca4cee1ca1d7ab
>                    |                            |2ddebf893ffc996c8919
>
> --- Comment #1 from BogDan Vatra <bogdan@kde.org> ---
> Git commit 363f93ca4cee1ca1d7ab2ddebf893ffc996c8919 by BogDan Vatra.
> Committed on 23/09/2012 at 16:47.
> Pushed by vatra into branch 'beta2'.
>
> Add basic clipboard support.
>
> Send right click on long press touch.
>
> M  +39   -2
>  src/android/jar/src/org/kde/necessitas/industrius/QtNative.java
> M  +11   -0
>  src/android/jar/src/org/kde/necessitas/industrius/QtSurface.java
> M  +39   -1
> src/android/jar_4/src/org/kde/necessitas/industrius/QtNative.java
> M  +14   -3    src/gui/widgets/qlineedit.cpp
> M  +92   -2    src/plugins/platforms/android/src/androidjnimain.cpp
> M  +8    -1    src/plugins/platforms/android/src/androidjnimain.h
> A  +52   -0
>  src/plugins/platforms/android/src/qandroidplatformclipboard.cpp
>    [License: LGPL]
> A  +37   -0
>  src/plugins/platforms/android/src/qandroidplatformclipboard.h
>  [License: LGPL]
> M  +11   -1
> src/plugins/platforms/android/src/qandroidplatformintegration.cpp
> M  +3    -0
>  src/plugins/platforms/android/src/qandroidplatformintegration.h
> M  +2    -0    src/plugins/platforms/android/src/src.pri
>
> http://commits.kde.org/android-qt/363f93ca4cee1ca1d7ab2ddebf893ffc996c8919
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 BogDan Vatra 2012-09-23 16:41:56 UTC
Yup, tap and hold will trigger right click and (qt) context menu should appear, still no android native context menu support yet, but I'm working on it ;-)


(In reply to comment #2)
> hi bogdan, just curious , means that a tapandhold will trigger right click
> so that context menues and similar in qt will work seamless or will it
> trigger a paste signal?
> 
> Marco Bernasocchi (mobile)
> http://opengis.ch
> On Sep 23, 2012 10:01 PM, "BogDan Vatra" <bogdan@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=304195
> >
> > BogDan Vatra <bogdan@kde.org> changed:
> >
> >            What    |Removed                     |Added
> >
> > ----------------------------------------------------------------------------
> >              Status|UNCONFIRMED                 |RESOLVED
> >          Resolution|---                         |FIXED
> >       Latest Commit|                            |
> > http://commits.kde.org/andr
> >                    |
> >  |oid-qt/363f93ca4cee1ca1d7ab
> >                    |                            |2ddebf893ffc996c8919
> >
> > --- Comment #1 from BogDan Vatra <bogdan@kde.org> ---
> > Git commit 363f93ca4cee1ca1d7ab2ddebf893ffc996c8919 by BogDan Vatra.
> > Committed on 23/09/2012 at 16:47.
> > Pushed by vatra into branch 'beta2'.
> >
> > Add basic clipboard support.
> >
> > Send right click on long press touch.
> >
> > M  +39   -2
> >  src/android/jar/src/org/kde/necessitas/industrius/QtNative.java
> > M  +11   -0
> >  src/android/jar/src/org/kde/necessitas/industrius/QtSurface.java
> > M  +39   -1
> > src/android/jar_4/src/org/kde/necessitas/industrius/QtNative.java
> > M  +14   -3    src/gui/widgets/qlineedit.cpp
> > M  +92   -2    src/plugins/platforms/android/src/androidjnimain.cpp
> > M  +8    -1    src/plugins/platforms/android/src/androidjnimain.h
> > A  +52   -0
> >  src/plugins/platforms/android/src/qandroidplatformclipboard.cpp
> >    [License: LGPL]
> > A  +37   -0
> >  src/plugins/platforms/android/src/qandroidplatformclipboard.h
> >  [License: LGPL]
> > M  +11   -1
> > src/plugins/platforms/android/src/qandroidplatformintegration.cpp
> > M  +3    -0
> >  src/plugins/platforms/android/src/qandroidplatformintegration.h
> > M  +2    -0    src/plugins/platforms/android/src/src.pri
> >
> > http://commits.kde.org/android-qt/363f93ca4cee1ca1d7ab2ddebf893ffc996c8919
> >
> > --
> > You are receiving this mail because:
> > You reported the bug.
> >
Comment 4 Marco Bernasocchi 2012-09-23 16:57:02 UTC
nice, so i can get rid of some if def :)
and no worries about nstive context menu... there are much mure important
menu to me:)

Marco Bernasocchi (mobile)
http://opengis.ch