Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QApplication crashes when aboutQt dialog is closed.

QApplication crashes when aboutQt dialog is closed.

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 670 Views
  • 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.
  • W Offline
    W Offline
    Wowalive
    wrote on last edited by
    #1

    Hi there,

    I'm showing the aboutQt dialog in my App using QApplication::aboutQt(). Unfortunately everytime when I close this dialog my app crashes.

    I've connected it to QML and calling it via simple Signal-Slot-connection:

    connect(this, SIGNAL(qtAboutScreen()), qApp, SLOT(aboutQt()));
    

    The class which is connected to QApplication inherits from QObject. Is there any Problem? Or do you know other, better solutions to display Qt information in qml?

    Greetings,
    wowalive

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      When the program crashes you can take a look what the debugger tells you. From your code above we can't say anything about what's going wrong. So provide more code, the best would be a minimal, compilable example to show your problem.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • W Offline
        W Offline
        Wowalive
        wrote on last edited by
        #3

        There is no output except the "program has unexpectedly finished" message. The debugger gets stuck in Disassembler (QV4::ExecutionEngine::newString(QString const&)).

        I'm doing nothing else than connecting a signal to the QApplication::aboutQt() slot. After closing the About Dialog the error appears.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          QV4 looks like QML somwhere.
          Reduce you app until it no longer crashes, the connect is for sure not the problem.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          2
          • W Offline
            W Offline
            Wowalive
            wrote on last edited by
            #5

            Ok it was my fault. I've used a Q_INVOKABLE method which should return a QString but returned nothing.

            Nevertheless I didn't used the QApplication::aboutQt() function to show the licensing information, because it opens a dialog with a completely different look and feel (QWidget).

            Instead I created a Qml Popup and used QT_VERSION_STR to get the current qt version.

            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