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. Error in QT 4
Qt 6.11 is out! See what's new in the release blog

Error in QT 4

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 563 Views 2 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.
  • Q Offline
    Q Offline
    Qt 4.8 prasad
    wrote on last edited by
    #1

    /home/osboxes/hello/hello.cpp:8: error: expected primary-expression before ')' token
    myapp.setActiveWindow(QWidget);
    ^

    1 Reply Last reply
    0
    • AbrarA Offline
      AbrarA Offline
      Abrar
      wrote on last edited by
      #2

      for be more specific if you can show your code that would be good. But i think you have missed

      ;
      

      at line 7 at last...

      1 Reply Last reply
      3
      • Chris KawaC Online
        Chris KawaC Online
        Chris Kawa
        Lifetime Qt Champion
        wrote on last edited by
        #3

        QWidget is a class name, you can't pass it as a function parameter. You need to pass a variable name there, in this case a pointer to a widget.

        1 Reply Last reply
        3

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved