Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to get graphicssystem type?
Forum Updated to NodeBB v4.3 + New Features

How to get graphicssystem type?

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.3k 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.
  • D Offline
    D Offline
    dongdong
    wrote on last edited by
    #1

    How to get graphicssystem type? There is setGraphicsSystem(), is there a getGraphicsSystem() ?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jake007
      wrote on last edited by
      #2

      If you take a look at the Diagram example, you will see, that enum type is created for every class that is added to QGraphicsScene.
      I suggest you do the same thing.


      Code is poetry

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dongdong
        wrote on last edited by
        #3

        i mean QApplication::setGraphicsSystem

        1 Reply Last reply
        0
        • J Offline
          J Offline
          Jake007
          wrote on last edited by
          #4

          Sorry.
          Misunderstood.
          The default is always native, so you don't need getter.


          Code is poetry

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dongdong
            wrote on last edited by
            #5

            I try to use commandline -graphicssystem switch and QT_GRAPHICSSYSTEM environment variable to set graphicssystem to "raster" and "opengl". But seems there is no difference. So i want to find a way to get the value.

            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