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. [SOLVED] Qt Close Window Problem on BB10/QNX
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt Close Window Problem on BB10/QNX

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

    Hi,

    I have a problem closing Qt QMainwindows on BB10 / Dev Alpha. I have a parent QMainwindow which creates a child QMainwindow which is opened, used to set some user options, then closed (I'd like to close but not destroy the window if possible).

    The window is created as follows::

    @gW_Options = new COptions(this);
    gW_Options->showFullScreen();
    @

    and closed by a button on it's form:

    @void COptions::on_pbClose_clicked()
    {
    this->close();
    }
    @

    I've also tried
    @
    this->hide();
    this->parentWidget()->raise();
    @

    This works on the Nokia N9 / N900 (screen disappears and user sees the parent window), but on the Blackberry 10 Dev Alpha the child window remains on screen and accepts no further input.

    Does anyone have any suggestions please? Should I only have one QMainwindow? Do I need to convert this child window to a Dialog instead?

    Note: I'd rather not create the window with Qt::WA_DeleteOnClose set as it's useful to have the window hidden for reuse later.

    Thanks in advance,
    Tom

    PS: I've tried various other options including: showMinimized(); hide(); parent->raise(); parent->showFullScreen() but no luck yet.

    PPS: I've also posted this question ON the BB10 dev forum "here":http://supportforums.blackberry.com/t5/Cascades-Development/Qt-Close-Window-Problem/td-p/1899025 but no solution yet

    1 Reply Last reply
    0
    • Y Offline
      Y Offline
      yalnte
      wrote on last edited by
      #2

      Update - now solved - see "here":http://supportforums.blackberry.com/t5/Cascades-Development/Qt-Close-Window-Problem/td-p/1899025

      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