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. What's wrong with QMainWindow::show()
Forum Updated to NodeBB v4.3 + New Features

What's wrong with QMainWindow::show()

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 841 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.
  • LinuxCppL Offline
    LinuxCppL Offline
    LinuxCpp
    wrote on last edited by LinuxCpp
    #1

    I installed Kubuntu 16.04. The Qt version is 5.5.1.
    g_mainWin=new MainWindow;
    g_mainWin->show();
    The program was crash on g_mainWin->show(), but it was running fine in Linuxmint 17.1. How can I find the problem. I have no idea. Qt Creator debug had no more information with the problem. SOS.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      You should try with default GUI project and see it run so we know
      qt install is ok.

      Then can you show the constructor of MainWindow ?
      No reason to crash on show unless its some of the other widgets that crash.

      LinuxCppL 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi and welcome
        You should try with default GUI project and see it run so we know
        qt install is ok.

        Then can you show the constructor of MainWindow ?
        No reason to crash on show unless its some of the other widgets that crash.

        LinuxCppL Offline
        LinuxCppL Offline
        LinuxCpp
        wrote on last edited by
        #3

        @mrjj It's very strange. It was woking when I use valgrind Memory Analyzer in Qt Creator. But it was crash when run or press F5 to debug.

        mrjjM 1 Reply Last reply
        0
        • LinuxCppL LinuxCpp

          @mrjj It's very strange. It was woking when I use valgrind Memory Analyzer in Qt Creator. But it was crash when run or press F5 to debug.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @LinuxCpp

          did you try with break point in constructor and single step?

          Does a default project works?

          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