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. Change QAppliation into QGuiApplication without problems?
Forum Updated to NodeBB v4.3 + New Features

Change QAppliation into QGuiApplication without problems?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 293 Views 4 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.
  • B Offline
    B Offline
    buhtz
    wrote on last edited by
    #1

    I took over a 15 year old Python Qt application. It uses an QApplication object.

    Because I need some of the features of QGuiApplication class I would like to replace the QApplication with QGuiApplication.

    I would like to assess the possible implications of that change. I read the docs of course. To my understanding and knowledge it shouldn't have a negative impact.

    Or can you imagine any?

    M 1 Reply Last reply
    0
    • B buhtz

      I took over a 15 year old Python Qt application. It uses an QApplication object.

      Because I need some of the features of QGuiApplication class I would like to replace the QApplication with QGuiApplication.

      I would like to assess the possible implications of that change. I read the docs of course. To my understanding and knowledge it shouldn't have a negative impact.

      Or can you imagine any?

      M Offline
      M Offline
      mpergand
      wrote on last edited by mpergand
      #2

      @buhtz

      QApplication is a subclass of QGuiApplication, so you can access to QGuiApplication metthods directly.

      B 1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Using QGuiApplication means dropping all QWidget based elements of your application.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M mpergand

          @buhtz

          QApplication is a subclass of QGuiApplication, so you can access to QGuiApplication metthods directly.

          B Offline
          B Offline
          buhtz
          wrote on last edited by
          #4

          rofl
          Ah, thanks. I thought it was the other way around; QGuiApplication inheriting form QApplication.

          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