[Interest] QClipboard from QCoreApplication?

Mark markg85 at gmail.com
Fri Dec 28 17:01:42 CET 2012


On Fri, Dec 28, 2012 at 4:59 PM, Pekka Vuorela <pvuorela at iki.fi> wrote:
> On 28.12.2012 17:51, Mark wrote:
>>
>> 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.
>>
>> Thank you for that, that will certainly fix the QWidget dependency for
>> Qt5.
>>
>> Is there also something for Qt4?
>
>
> No, but in Qt4 QtQuick is depending on QWidget anyway. And there even the
> QClipboard exists in the same gui module as QApplication.
>

Ahh right. Thank you for the clarification :)



More information about the Interest mailing list