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. About QquickWidget has a black background

About QquickWidget has a black background

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 919 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.
  • T Offline
    T Offline
    toby520
    wrote on last edited by
    #1

    I have the same problem like's some others
    I want to show qml UI in qwidget,but follow the offical example,my project sometimes good , sometimes bad
    my code is:
    Widget::Widget(QWidget parent)
    : QWidget(parent)
    {
    childW = new ChildWidget(this);//custom quickwidget
    QHBoxLayout
    layout = new QHBoxLayout(this);
    layout->addWidget(childW);
    setLayout(layout);
    }
    the code is running OK
    but when i use the code in my complex project,the bad which is still has a black background

    What am I doing wrong?
    Or Qt has some bug in quickwidget?

    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