Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt::WA_TranslucentBackground and raster graphic system on Mac OS X
Qt 6.11 is out! See what's new in the release blog

Qt::WA_TranslucentBackground and raster graphic system on Mac OS X

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.9k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Raster graphic engine doesn't works correctly on Mac OS when Qt::WA_TranslucentBackground = true.

    I have problem with rendering my GUI on Mac OS(on Windows everything works good) and I decide to use raster graphic engine.
    When Qt::WA_TranslucentBackground=false raster graphic engine works correctly. When Qt::WA_TranslucentBackground=true occur renedering problems

    I have created simple example which renders different on raster and native mode.

    @
    Q_DECL_EXPORT int main(int argc, char *argv[])
    {
    QApplication::setGraphicsSystem("raster");
    QScopedPointer<QApplication> app(createApplication(argc, argv));
    QScopedPointer<QmlApplicationViewer> viewer(QmlApplicationViewer::create());
    viewer->setAttribute(Qt::WA_TranslucentBackground,true);
    viewer->setMainQmlFile(QLatin1String("qml/untitled/main.qml"));
    viewer->showExpanded();
    return app->exec();
    }
    @

    @
    import QtQuick 1.0

    Item {
    width: 1024
    height: 500
    Rectangle
    {
    color:"green"
    anchors.fill:parent
    ListView
    {
    model:5
    delegate:
    Image {
    id: testText
    source: "http://www.google.com.ua/images/srpr/logo1w.png"
    }

    width:200
    height:500
    }
    

    }
    @

    I use Qt 4.8 RC.

    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