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. QWidget and setVisible() problem

QWidget and setVisible() problem

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 4.8k Views
  • 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
    sergey.pakhandrin
    wrote on last edited by
    #1

    Hi!

    I create a QWidget:

    m_widget = new QWidget(parent); where parent is also a QWidget then I set visible of m_widget to false m_widget->setVisible(false);

    after that I need to show m_widget m_widget->setVisible(true); and this line of code hangs the application and only in release build on symbian platform

    what's wrong? why does this code work in debug build?

    Please help. Thanks in advance!

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rohanpm
      wrote on last edited by
      #2

      There is nothing wrong with the three lines of code you've shown, if you want help to figure out the error you'll need to show more context (for example, you should explain how you know that line of code is the one causing the hang).

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alexander
        wrote on last edited by
        #3

        Maybe it's bug, can you write test application?

        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