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. QQuickView problem ios transparency
Forum Updated to NodeBB v4.3 + New Features

QQuickView problem ios transparency

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.3k Views 1 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.
  • E Offline
    E Offline
    ederbsd
    wrote on last edited by
    #1

    Hi,

    I'm working on porting my app for iOS developed in Qt Widgets and QML.

    I'm trying to call my QML file inside the widget with the QQuickView. But... in iOS transparency does not work, please look at the pictures in:

    Qt Desktop:

    !http://www.bluesalute.com.br/forum/qt/qt1-desktop-screenshot.png(Qt Simulator Image)!

    Qt iOS Simulator:

    http://www.bluesalute.com.br/forum/qt/qt1-ios-simulator-screenshot.png

    How can I solve this problem?

    @@
    QQuickView *view = new QQuickView();
    QWidget *container = QWidget::createWindowContainer(view, this);
    container->setMinimumSize(300, 300);
    container->setMaximumSize(300, 300);
    container->setFocusPolicy(Qt::TabFocus);
    container->setAttribute(Qt::WA_TranslucentBackground); // :-)
    view->setColor(QColor(Qt::transparent)); // :-)
    view->setSource(QUrl(QStringLiteral("qrc:///qml/main.qml")));
    ui->gridLayoutCover->addWidget(container);
    @@

    Thanks,

    EDM

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      May be QQuickWidget help you ? Check "qquickwidget":http://blog.qt.digia.com/blog/2014/07/02/qt-weekly-16-qquickwidget/ article.

      157

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ederbsd
        wrote on last edited by
        #3

        Hi,

        QquickWidget not works, the same problem... on iOS the screen goes black.

        EDM

        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