Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. German
  4. Qt quick Desktop Components
Forum Updated to NodeBB v4.3 + New Features

Qt quick Desktop Components

Scheduled Pinned Locked Moved German
2 Posts 2 Posters 1.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.
  • H Offline
    H Offline
    holyButton
    wrote on last edited by
    #1

    hallo liebe entwickler ich möchte mir gerne in qt quick die desktop componenten anzeigen lassen (design ) und mit arbeiten können , nach dem video funktioniert das auch, ich bekomm es nicht hin bekomme folgende fhlermeldung.

    http://blog.qt.digia.com/blog/2011/03/10/qml-components-for-desktop/

    debug error:...

    assert: "!" no style available without QApplication in file kernel\qapplication.ccp, line 959

    mein code
    @

    import QtQuick 2.0
    import QtDesktop 1.0

    Rectangle {
    width: 360
    height: 360
    Text {
    text: qsTr("Hello World")
    anchors.centerIn: parent
    }
    Button{
    x: 120
    y: 63
    width: 122
    height: 86
    text: "nachricht"
    textColor: "#ca2a2a"

    }
    
    MouseArea {
        x: 0
        y: 0
        anchors.rightMargin: 0
        anchors.bottomMargin: 0
        anchors.leftMargin: 0
        anchors.topMargin: 0
        anchors.fill: parent
        onClicked: {
            Qt.quit();
        }
    }
    

    }

    @
    den Button akzeptiert er und zeigt mir keine fehlermeldung an wegen qtdesktop 1.0 import

    hoffe mir kann gehofen werden
    grüßle holy

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbreier
      wrote on last edited by
      #2

      Hallo,

      ich weiß nicht ob Dir das weiter hilft, aber schau dir mal die folgende Seite an:
      "http://qt-project.org/wiki/QtDesktopComponents":http://qt-project.org/wiki/QtDesktopComponents

      Weiter unten auf der Seite im Bereich "Usage" findet man eine Beschreibung, dass man QApplication anstatt QGuiApplication nutzen soll.

      Ansonsten habe ich aber auch das Problem, dass die Komponenten nicht im Designer in der Item List angezeigt werden, Warum weiß ich auch nicht.

      Gruß
      Michael

      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