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. [SOLVED] How to load application in minimize mode?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How to load application in minimize mode?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.8k 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.
  • shavS Offline
    shavS Offline
    shav
    wrote on last edited by
    #1

    Hi everyone!

    My project base on QtQuick 2.3. The code to load app looks like:
    @
    QQmlApplicationEngine engine;
    engine.addImportPath(dir.absolutePath());
    engine.load(QUrl(QStringLiteral("qrc:///qml/main.qml")));
    @

    The main.qml code look like:
    @
    ApplicationWindow {
    id: rootApp
    visible: true
    width: 1024
    height: 700
    minimumWidth: 1024
    minimumHeight: 700

    }
    @

    What I need to set for start my application in minimize mode (minimy to tray icon)?

    Thanks for the help!

    Mac OS and iOS Developer

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

      Hi,

      For simple minimize the following should work:
      @
      ApplicationWindow {
      visibility: "Minimized"
      }
      @

      And to minimize to system tray AFAIK you will need to use QSystemTrayIcon.

      157

      1 Reply Last reply
      0
      • shavS Offline
        shavS Offline
        shav
        wrote on last edited by
        #3

        Thanks! It's works!

        Mac OS and iOS Developer

        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