[Interest] QClipboard from QCoreApplication?

Mark markg85 at gmail.com
Fri Dec 28 16:51:48 CET 2012


On Fri, Dec 28, 2012 at 4:46 PM, Pekka Vuorela <pvuorela at iki.fi> wrote:
> On 28.12.2012 17:37, Mark wrote:
>> Hi,
>>
>> I want to make a QClipboard wrapper for QML. QClipboard itself doesn't
>> depend on QWidget, but QApplication does. And i can only get a
>> QClipboard object from QApplication thus i get a QWidget dependency
>> again...
>>
>> Is there any way to construct a QClipboard object from a QCoreApplication?
>
> There's also QGuiApplication in between from where you can get the
> clipboard.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

Hi Pekka,

Thank you for that, that will certainly fix the QWidget dependency for Qt5.
Is there also something for Qt4?



More information about the Interest mailing list