Results 1 to 2 of 2

Thread: How to manage windows efficiently?

  1. #1
    Join Date
    Jan 2011
    Posts
    5
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default How to manage windows efficiently?

    Hello everybody i need help with managing different windows.
    I am using qt creator and i've used the UI Designer to draw two different screens.
    One is my mainwindow and the other screen is called waveforms

    I want that, when i click a button in the maindow the waveformscreen opens and when i click a button the waveformscreen the mainwindow comes back.

    I've tried to do it this way:
    At mainwindow button onclicked slot:
    Waveform *W;
    W = new Waveform();
    this->ui->centralwidget->hide();
    W.showfullscreen();

    And at the waveform slot i don't know what to do.

    This approach is probably wrong, could someone enlight me please?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to manage windows efficiently?

    If you show W fullscreen, why hide the first window?
    If you just keep it here you can simply close W to get back to the first window

    Cheers,
    _

Similar Threads

  1. Drawing grids efficiently in QGraphicsScene
    By Gopala Krishna in forum Qt Programming
    Replies: 16
    Last Post: 7th June 2012, 14:59
  2. Creating thumbnails efficiently
    By Luc4 in forum Qt Programming
    Replies: 5
    Last Post: 8th April 2010, 14:05
  3. Efficiently plotting curves
    By Cruz in forum Qt Programming
    Replies: 1
    Last Post: 12th October 2009, 13:24
  4. Efficiently plotting 2d data in a QGraphicsscene
    By xenome in forum Qt Programming
    Replies: 0
    Last Post: 5th September 2009, 15:58
  5. Checking progress efficiently | C++
    By Backslash in forum General Programming
    Replies: 3
    Last Post: 23rd February 2008, 21:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.