Results 1 to 7 of 7

Thread: Pop-up Dialog Question

  1. #1
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Pop-up Dialog Question

    Hello everyone ..

    I would like to inquire about how to create Pop-up Dialog in QT Creator 4 over Linux.
    Or you can designate what I am asking : event and event handler.

    I want to click on the Button, shows me another designed screen and block the main screen, pending the end user to enter data on-screen phenomenon.

    I expect that it's not difficult, but I tried did not succeed, as well as I have downloaded some code from the forum (About Dialog ) , but when applied to a my program has had two errors !!

    My program with two errors ..
    http://up-arab.com/u_p/download.php?id=11910

    Thank you

    Malek

    for adimn :is this the right location for this question?
    Last edited by Malek; 20th July 2010 at 19:30.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Pop-up Dialog Question

    Hi Malek,

    to achieve your goal, read about signal and slots in the Qt documentation. Also have a look at QDialog::exec().

    And if you want us to have a look at your sources, please attach it on this board. It's because I speak a lot of languages, but arabic isn't one of them, so I wont click anything on the site you linked.


    Lykurg

  3. The following user says thank you to Lykurg for this useful post:

    Malek (20th July 2010)

  4. #3
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Pop-up Dialog Question

    There are more errors in that test project, check the comments

    And i strongly suggest to read a c++ book and than a Qt one.
    Attached Files Attached Files

  5. The following user says thank you to Zlatomir for this useful post:

    Malek (20th July 2010)

  6. #4
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Pop-up Dialog Question

    Hi Lykurg
    Thank you very much for your fast response.
    I will read about signal and slots God willing,and my test code in the attachments.

    I think it is a pleasant opportunity to learn Arabic.It is a nice language ,But her family Let down it!!

    Thank you another time.
    Regards,
    Attached Files Attached Files

  7. #5
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Pop-up Dialog Question

    Hello Zlatomir
    Thank for your comments.

    This code isn't mine,I have copy and past it from the code below.
    his program has run without errors,while my program witch is copy from his code has two errors in mainwindow.h in this line
    Qt Code:
    1. dialog * ptr1;
    To copy to clipboard, switch view to plain text mode 
    1) ISO C++ forbids declaration of 'dilog' with no type.
    2)expected ';' before '*' token.

    I have taken 3 courses in C++, but I haven't deal with C++ GUI before.
    anyway , I will take your comments consider.

    Thanks again.
    Attached Files Attached Files

  8. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Pop-up Dialog Question

    Quote Originally Posted by Malek View Post
    1) ISO C++ forbids declaration of 'dilog' with no type.
    2)expected ';' before '*' token.

    I have taken 3 courses in C++, but I haven't deal with C++ GUI before.
    These are purely C++ errors from a C++ compiler so after 3 courses on C++ I'm sure you will solve them on your own within a flash.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #7
    Join Date
    Jul 2010
    Posts
    30
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Pop-up Dialog Question

    Hi wysota ..Thank you.The problem has been solved.
    thanks for all.

    I will describe how the problem has been resolved.
    But firstly I want to ask you: Does the scenario below has happen with anyone of you?
    ---------------------------------------------------
    When I run the project that called OpenDialog (which attached in the 5th post),It was run perfect .But after 2 days it give the same 2 errors.without any editing on it.
    Also, after that it return to run perfectly!! .

    Also, my project witch called test has followed the same scenario except it dose not return to the good status like his father.

    Also,Some code witch I have download it form www.qt-ar.org hasn't work on my fedora9 while it run on fedora12 of my friend !!
    ---------------------------------------------------


    I until now don't understand why (OpenDialog) project has run ,while my (test) project hasn't .although it was a copy past from the first one !!

    anyway....
    in (myPhone) project I have solved all the problems .You can see it below.
    thanks for zero-n from arabic forum www.qt-ar.org.
    and thanks for all here.
    Attached Files Attached Files

Similar Threads

  1. closing child dialog closes parent dialog
    By sparticus_37 in forum Newbie
    Replies: 2
    Last Post: 28th May 2010, 19:46
  2. Replies: 1
    Last Post: 24th May 2010, 18:56
  3. How to blur parent dialog when child dialog is displayed
    By abhilashajha in forum Qt Programming
    Replies: 4
    Last Post: 10th June 2009, 13:01
  4. Dialog to Dialog communication
    By jjbabu in forum Qt Tools
    Replies: 1
    Last Post: 1st October 2008, 10:54
  5. call the other dialog through dialog
    By narumi in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2008, 09:30

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.