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. SOLVED: qApp->exec(); not showing
Forum Updated to NodeBB v4.3 + New Features

SOLVED: qApp->exec(); not showing

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 1.1k 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.
  • S Offline
    S Offline
    samopn
    wrote on last edited by
    #1

    Hi

    I have a class to build and show a widget.

    The last five lines of the class are
    @myBox.show();
    std::cout <<"3";
    qApp->exec();
    std::cout <<"4";
    return;@

    It outputs the "3" but not the "4" and the widge isn't shown.

    Am I missing something really obvious here?

    Cheers

    Sam

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LonniB
      wrote on last edited by
      #2

      Hello Sam,

      Well I think it would be difficult to help you with just these 5 lines, you should give a more complete code so that people can help you here :)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stukdev
        wrote on last edited by
        #3

        Becouse you're block the app with exec(); post the complete code.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          samopn
          wrote on last edited by
          #4

          This is weird,

          I just went into my code to copy it so I could paste it here, and when I ran it everything worked???!!!! I didn't change anything.

          Obviously something strange with my IDE (I'm using NetBeans 7.0.1)
          I'm now going to download a different IDE. This is the second time something odd has happened, but not this dramatic.

          Thanks for looking anyway.

          Sam

          1 Reply Last reply
          0
          • L Offline
            L Offline
            LonniB
            wrote on last edited by
            #5

            Why don't you use the Qt IDE? :)

            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