Programming :: Popup A Dialog On Application Start?
Apr 6, 2011
Anyway, here is something that is puzzling me and cannot think up a good way around it: I call the constructor and show elements of LoginDialog in the constructor of my QMainWindow, like this:
LoginDialog is a QDialog and it does show up on application start... but...
It is not active! The QMainWindow is the active window, even if I put lid->activateWindow();
So, the question is: how do I pop up this dialog on application start in such a way that it will show the LoginDialog on startup as active window?
If I was to make any changes or download anything I have to switch to gnome, because in fluxbox the menu dialog boxes are not appearing.
I'm assuming they are coming up because if it's a dialog asking for my user password the window will unfocus and I can not click on it but no dialog box pops up!
How do I open an app from a dialog box? Eg the download db in FF in which you have options to Open or Save. I want to be able to navigate to a folder containing app folders which I can then open to find an icon to double click so as to launch an app. Much like in Windows navigating to Program files (I think it is called). How do you do this in Linux?
I would like to get help from experts who are experienced in the area of Linux network programming to help me to choose the proper way to create a special Firewall program.I do start reading WinSocket and tending to start BSD. I don't want to start with an API like winsock then stuck. So please, I do need a way to accomplish all features such as capturing, dropping or allowing all kinds of LAYERS as well as Intrusion detection.I am a good programmer in C++ but I am new for linux.So, what is the best Linux OS to install and start with and which is the best way to accomodate C++.
I want to do a "gallery" on a webpage, ie. a series of thumbnails, whhich when clicked, will popup a new window of a bigger image of that same things (with more details about it, etc.). How do I do that? (I think it's soemthing to with "window.popup" in Javascript, but how do I use that? Can I do it with <a href="something" target=new>?)
I am using the script below but need to make it to show the result in a html popup window. The script is Free and I don't think Kristina will complaint by making it more versatile.
The problem I have is that the script moves to a standalone window to show the results. I am interested in making it "popup' a window with the results.
Code: #!/usr/bin/perl # NOTE: You must change the line above to point to the path to Perl # on your system. ######################################################################### ##### AffordaBilly v1.0# ##### Copyright 2001, Kristina L. Pfaff-Harris, scripts@tesol.net#
I had recently reinstalled Kubuntu after breaking it for the n-th time and downloads will no longer open from the Downloads window of Firefox. Instead, it brings up a dialog with the title Launch Application and asks me which application I should open it with. This seems to happen all of the file formats I have tried; namely pdf, zip, deb, and png. This did not happen from before the reinstallation.
Is it possible to do the following in C/C++ in Linux:Without direct linking (my program should NOT depend on Qt or GTK), display a GTK or Qt based file dialog.The behaviour should be something like this when my program runs, when you want to open a file:The program scans whether you have Qt installed. If so, it somehow manages to link itself to Qt (e.g. dynamically loading the .so file) and display its file dialog and get the path from it. If Qt wasn't found, it tries the same with GTK. If that also wasn't found, it displays a less powerful replacement dialog instead (better than nothing).
Or is there any other simple way in Linux to get a standard file dialog somehow (similar to when compiling for Windows you can very easily get its standard file dialog, no matter what version of Windows, in your code, even if your program doesn't use any other Windows GUI at all).
I am envisioning a dialog menu with 2 sections, the top 2/3 a menu, then the bottom 1/3 is a message box. When you highlight a menu item it gives you a description of what it does in the message box. However I am not sure it is possible. Can this be done in BASH?
I cannot seem to get if else statements to work. if $choice == Dog then i want it to say "you selected Dog" The variable choice has the value Dog in it as proved at the end by echo "yes $choice is $choice" following the error Code: ./test.sh: 37: [$choice: not found How do i get the conditional statement to work? What's wrong here? This is the full script:
I want to display an un-intrusive graphical dialog to notify the workstation user that a bash script has finished running. It should be "top level", so visible to the user when it appears but should not grab focus, so the user can continue working in the current window and dismiss the notification when convenient. Researching gdialog, xdialog, xmessage and zenity it seems none of them can do this; they all grab focus.
I've got a strange problem with firefox on Fedora 14 x86_64, at startup it just shows a dialog with a heading Malformed File and the following description:Firefox could not install this item because "" (provided by the item) is not well-formed or does not exist. Please contact the author about this problem.(see attachment.)there is only an OK button. Pressing it, nothing happens! firefox doesn't come up! I tried firefox --safe-mode,the same dialog pops up but after pressing ok, the "Firefox Safe Mode" dialog shows. No matter what I select on this dialog, firefox simply never comes up! I even created a new user, to try firefox without any addons, but the results are the same! Reinstalling doesn't help also! It has started since last firefox update (firefox-3.6.13-1.fc14.x86_64)
I'm just messing around trying to create a script that will give me a menu driven method of selecting a file from a directory. After doing some searching around on the web, I found that the "dialog" command might be able to provide what I need, but I'm not sure exactly if what I want is possible.
I was messing around with the --menu option and am getting pretty close, but not exactly what I want. Here's a snip of what I've been working with:
Code:
This gets me the results I want for the first option in the list, but the rest comes out a bit weird, as it's taking the directory contents and applying to the "tag" field as well. In fact, if there wasn't a need for the tag field, it would probably be working exactly as I want it to.
I plan on messing around a bit more to see if there is a workaround, but figured I'd post this just in case someone else had accomplished something similar. Essentially, this will be embedded in a script where each file in my $DIR variable will show in the menu and the selected file will end up in a variable for later use.
I have Thunderbird installed and I really enjoy it as an application. I would like to set Thunderbird to start on boot. I tried to locate the binary for it in /usr/bin/ but was not able to. Has anyone done this before or does anyone know how I might go about locating the binary for it?
I just installed the miro internet tv application using yast on my openSUSE 11.2 and I cannot start it.
Running the miro application from console gives me the following output:
nuca@ionpetrache:~> miro PyNotify support disabled on your platform. 2010-05-28 13:51:55,501 INFO Starting up Miro 2010-05-28 13:51:55,502 INFO Version: 2.5.4 2010-05-28 13:51:55,508 INFO OS: Linux 2.6.31.12-0.2-desktop i686 2010-05-28 13:51:55,509 INFO Revision: ssh://wguaraldi@pcf1.pculture.org/var/git/miro - 1e20db82
I have a binary application that runs only in shell, now I want to open it from another application(Mathematica program) but simply invoking it will start it in memory but not in a shell.
I tryed "bash app" which does not work and "gnome-terminal app" just opens the terminal without launching that application.
Ps: Its the same thing as in Java when you want to invoke a system command like ping but you need to do it like this .exec("cmd ping") instead of just ping.
I am new to this debian plotform. How can I add my app to init.d linkup.
I did my programe for I2C Bit banging method and got output on Beaglebone black rev.C hardware.
I want to run my code after booting of beaglebone with out connecting to laptop or login process.
I want just powerup,then run my programe default.
/***************************Extra Information************* #etc/inittab file # The default runlevel. id:2:initdefault: # Boot-time system configuration/initialization script. # This is run first except when booting in emergency (-b) mode. si::sysinit:/etc/init.d/rcS
I am using: Firefox 3.6.14 from buildservice. 3.6.13 from buildservice did work flawlessly. System 11.1 KDE3.5 release 21.13.1
Error message when starting from terminal:
Code: user@linux-2c5j:~> firefox
Could not find compatible GRE between version 1.9.2.14 and 1.9.2.14. What I have tried: deinstallation of mozilla and reinstall. Does not change anything.
Through YaST's System Services I configured an application to start on boot. However, the application (mediatomb) is using mysql, so it should not be started before mysql. It is however, which means mediatomb fails to start.
How can I make sure mysql is started before mediatomb?
After having installed a certain programme, in my experience it can sometimes be slightly boring if you want to start the application from the terminal, but you can't figure out the right command, which to my knowledge is not always the same as the exact name of the application.
- Is there a way that I do not know to find this "start-up" command ? - Would it be convenient to include this command with the short description of the application as given in Synaptic (shown when selecting a programme in synaptic before marking it for installation etc.)
I have the open source version of Rise of the Triad for linux. If I open rott in a terminal then I go tp the directory where the file is standing and do ./rott.
Now I want to make a shortcut on my desktop and if I putt
How would one go about making an application start up on boot with terminal? I have a VPS that is ubuntu 8.04, and have command line access. I already compiled the application.
I accidentally deleted my bin just after booting up when the bin application failed to start properly. I can still send items to trash (right clicking and select from drop down menu) but I cannot restore them, see the bin icon or drag items to the bin area. It is quite annoying and I would be very grateful for comprehensive instructions on how to restore the bin to full operational functionality.