Taking screenshot of a specific window - C++ / Qt




In Qt, how do I take a screenshot of a specific window (i.e. suppose I had Notepad up and I wanted to take a screenshot of the window titled "Untitled - Notepad")?
In their screenshot example code, they show how to take a screenshot of the entire desktop:



```
originalPixmap = QPixmap::grabWindow(QApplication::desktop()->winId());

```

How would I get the winId() for a specific window (assuming I knew the window's title) in Qt?


Thanks
I'm pretty sure that's platform-specific. winIds are HWNDs on Windows, so you could call `FindWindow(NULL, "Untitled - Notepad")` in the example you gave.
[image] palaniyappan:

hi

welcome to uipath community

yah ofcourse

we can use send smtp mail activity or send outlook mail activity or send exchange mail activity to send the mail with screenshot image file, where in attach file option we can mention the file path of the image we took using ta… It's not a real screen capture though. It seems to be an animated wireframe style. I found some results for similar things when Googling for UI wireframe animation, animated wireframe video, and build wireframe mockup video.


Here are some links I found that may help:


* <https://www.youtube.com/watch?v=je07_ZHfjrA>
* <https://www.flinto.com/>
* <https://moqups.com/>


etc.


Hope this helps. update to everything:

i’ve now made a playlist, this is pretty awesome ngl. here you’ll find everything automatically labelled “tower takeover cad” from me, and i’ll occassionally go through and add in my explanations.

also: here’s a link to the 2018 parts library [https://drive.goog…](https://drive.google.com/open?id=1qxjcdodescticrltgwqu7qypofiorxoq) 3 ways u could do it:



1) make a shortcut and place it in the cab file generated, then edit the setup file and add the path to it and it will unzipp to the desktop. Drawbacks: if they choose to install your app in another folder, the shortcut wont work.



2) When the program is run make it add a shortcut to the desktop (i lost the code but if i find it ilol post it.



3) dont use the pakaging and deployment sytem, use another install creator eg Install Creator Pro. Drawbacks: you will probably have to use the pakage and deployment wizard to find out where the files need to go and then put them into the install creator manually.



hope that helps. Hi Uwe, You can make inside/outside strokes on non-closed paths using custom width profiles. Use thhe width tool (Shift+W) to make a stroke like this (hold alt to edit only one side of the stroke at a time): Then save it as a profile (bottom of the stroke panel). After that I think your path should be easy to make. [@raja](/u/raja)

this could inspire you:

[[image]](https://aws1.discourse-cdn.com/business6/uploads/dynamobim/original/3x/9/b/9bcef06d0c489d0ac566fe7dad2328002f964445.png "detail-lines-by-offset.png")

here, i recreate lines by offsetting the room finish boundaries, but any other method to select the needed curves could work as well… well, never had a samsung, but i think that all of the cells have the same option: when u take a snapshot, u must press options>save, i think so, i've had nokias, 6600, n71 and nowi've got n93i and all got the same menu, or u simply press back and it automatically saves, but not in motorolas, that's all i can tell u, hope i've helped 
:) hello john, - thank you for contacting us. - - here are the answers to your questions: - 1. in order to set the position of the pin button, you need to change the way it is docked in the caption area. here is a sample code snippet which loops though all toolwindows and sets the position of the pin button to left: - - for (int i = 0; i this.raddock1.dockwindows.toolwindows.length; i++) - { -     this.raddock1.dockwindows.toolwindows[i].toolcaptionbuttons = telerik.wincontrols.ui.docking.toolstripcaptionbuttons.autohide; -   -     tooltabstrip strip = (tooltabstrip)this.raddock1.dockwindows.toolwindows[i].tabstrip; -     radtogglebuttonelement pinbutton = (radtogglebuttonelement)strip.captionelement.children[2].children[1]; -     docklayoutpanel.setdock(pinbutton, telerik.wincontrols.layouts.dock.left); - } - - 2. you can open autohide window only on click by handling the autohidewindowdisplaying event and checking what is the reason for which the window is going to be shown. if it is tabitemclicked, then we can allow the operation: - - void raddock1\_autohidewindowdisplaying(object sender, autohidewindowdisplayingeventargs e) - { -     if (e.displayreason == autohidedisplayreason.tabitemclicked) -     { -         return; -     } -     e.cancel = true; - } - - 3. currently, there is an issue with the size of the autohide windows and although it is set by the autohidesize property, the autohide window still can't cover the entire raddock area. it is logged in our public issue tracker, but i cannot provide you with a workaround for the time being. - kind regards, - nikolay - the telerik team - - you’ve been asking for it and now it’s time for us to deliver. radcontrols for winforms q3 2012 release is just around the corner. sign up for a free webinar to see first all the latest enhancements. - hi swift87,

there’s no “cheat sheet” as such… but there is a “cheat website”: [qantaspoints.com](http://qantaspoints.com)

go to the website, click on “earn points” and go from there. there are more ways to earn qantas points than you can imagine. some will work for you, and others won’t.

all the best! right click on the gtaiv executable (not the launcher) and open the properties window. then click the details tab and check it yourself.