Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qtcreator design view doesn't display my QML

qtcreator design view doesn't display my QML

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 343 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.
  • Tom assoT Offline
    Tom assoT Offline
    Tom asso
    wrote on last edited by
    #1

    I’m running a very simple QML example, qtcreator’s design view just displays mostly black background, with no actual components visible.
    Running Qt Creator 12.0.2 based on Qt 6.6.0, on ubuntu 22.04.3.

    main.qml:

    import QtQuick 2.15
    import QtQuick.Controls 2.15
    import QtQuick.Window 2.15
    
    Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    
        MenuBar {
            id: menuBar
                Menu {
                    title: qsTr("&File")
                    Action { text: qsTr("&New...") }
                    Action { text: qsTr("&Open...") }
                    Action { text: qsTr("&Save") }
                    Action { text: qsTr("Save &As...") }
                    MenuSeparator { }
                    Action { text: qsTr("&Quit") }
                }
        }
    
        RadioButton {
            id: radioButton
            x: 200
            y: 149
            text: qsTr("Radio Button")
        }
    }
    

    Pressing qtcreator 'Run' arrow button displays what I expectScreenshot from 2024-06-20 08-41-28.png
    However pressing the Design button when main.qml is open shows mostly black where I expect my component layout to be displayed. I looked at qtcreator Edit->Preferences, didn't see any obvious settings that made a difference. What am I doing wrong? Screenshot from 2024-06-20 08-42-07.png
    Thanks!

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Which Qt Creator version is it? Have you used official Qt installer to install it?

      (Z(:^

      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