LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   QT-Creator and QMainWindow (https://www.linuxquestions.org/questions/programming-9/qt-creator-and-qmainwindow-842521/)

anon258 11-05-2010 06:42 AM

QT-Creator and QMainWindow
 
Hi

i am using a QT-Creator to make gui applications in c++ and qt

but i have a problem

i want to show another qmainwindow from qmainwindow

for example
there is a pushbutton on first qmainwidow

and i make new qmainwindow called setting
how i can to show setting window when user clicks on my pushbutton

thanks

anon258 11-05-2010 10:11 AM

Is there who can help me

dugan 11-05-2010 10:30 AM

Make the Settings window a QDialog.

anon258 11-05-2010 10:46 AM

ok but how to show from mainwindow

dugan 11-05-2010 10:59 AM

There is example code in the QDialog API docs for doing exactly that.

anon258 11-05-2010 11:05 AM

yes yes but i want to do this with qt-creator with .ui files


All times are GMT -5. The time now is 09:21 PM.