Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved] Instance of UIView on iOS
Forum Updated to NodeBB v4.3 + New Features

[Solved] Instance of UIView on iOS

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 755 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • patrikdP Offline
    patrikdP Offline
    patrikd
    wrote on last edited by JKSH
    #1

    Hi all,
    does anyone no if the UIView which I get with:
    QWindowList list = QGuiApplication::allWindows();
    UIView *view = static_cast<UIView *>( QGuiApplication::platformNativeInterface()->nativeResourceForWindow("uiview", list.at(0)) );
    is in a way different than the UIView native Objective-c code expects? Its a valid object but when
    I pass it to a an iOS function as the view paramter I get an exception telling me "unrecoginzed selector".
    Does anyone know whats wrong?
    Thx,
    Patrik

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you show the code you are using for that ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • patrikdP Offline
        patrikdP Offline
        patrikd
        wrote on last edited by
        #3

        Hi SGaist,
        found the reason for that. The handler was ok, it was an other parameter i was passing to an ios call which made me believe that this handler was wrong.
        thx,
        patrik

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved