« first day (604 days earlier)      last day (4346 days later) » 

6:00 PM
@RMartinhoFernandes Standardese relating to aliasing tends to be really obtuse.
 
But that won't solve endianness shit, so bitshift/bitmasking it is.
 
unions are no worse than bitsex with reinterpret_cast
 
@Potatoswatter But that's not about "writing to one, then reading from another union member".
 
@RMartinhoFernandes No?
 
@CatPlusPlus If you don't violate aliasing, no.
 
6:00 PM
I though it's only defined to read from a union member that was last written to.
 
@rubenvb You're allowed to alias with anything with char, because everything is supposed to be bytes underneath. But you're not supposed to read any meaning from those bytes.
 
@CatPlusPlus Exactly what I thought.
 
writing to an union member and then reading through another one effectively is an aliasing issue
 
Ha!
I was right.
 
But you only don't violate aliasing if the second member is char* or something.
 
6:01 PM
Oh
 
but if the aliasing is allowed it's fine
 
I was half right.
 
@rubenvb No, because aliasing is only UB if char isn't involved.
 
so this is fine: union A { int a; int b; };
 
Or the same type, which kinda defeats the purpose of the union.
 
6:02 PM
lol
 
@CatPlusPlus On the contrary, structs with the same prefix are one of the main uses for unions.
 
the thing with the "common initial sequence" in the union with two struct object members would ordinarily be an aliasing violation. but the standard makes an exeption to the aliasing rules for unions
 
In poor C that doesn't have true variants, maybe.
 
So this kind of thing will work always, right? number = (int)first << 8 | second;
 
It's fugly.
 
6:03 PM
@Potatoswatter What do you mean? C explicitly supports inheritance.
 
C11 allows struct base { int a; }; struct derived { struct base; int b; };
 
@DeadMG You mean C++?
 
@rubenvb If the types are not bad, yes.
 
IMO much nicer syntax than c++
 
Als
Anyone aware of a good C++11 book that has hit the market?
 
6:04 PM
@Potatoswatter No, C.
 
@RMartinhoFernandes what the hell does that mean?
 
and more generic anyway
 
first and second being char
 
C explicitly allows for a pointer to struct to be cast to a pointer to it's first member
 
@Als Concurrency in Action is good, but with a narrow focus on concurrency. There's also the C++ Standard Library by Josuttis, but I don't own that one, so I can't comment.
 
6:04 PM
there's a passage in the C Standard which explicitly allows it
so any structs with common prefix can be implemented similarly to single inheritance
 
C++ does too but only for standard layout classes
 
Als
@RMartinhoFernandes Josutils book for C++11? never knew it was out
 
@rubenvb Is there a promotion with <<?
 
@DeadMG So what? People still do things the union way.
 
If not, then first << 8 will overflow.
 
6:05 PM
Casts of all kinds are evil.
 
union is fail.
 
beware that the type of the "8" does not influence the type of operation in the shift
 
@Potatoswatter What do I care? People also jump off bridges and campaign against gay marriage.
 
@RMartinhoFernandes there was an (int) cast
 
6:06 PM
@DeadMG I didn't advocate anything…
 
so int foo = ...; foo << (int64_t)65; is bad
 
@rubenvb Oh, my bad. Beware of signed issues, then.
 
People also eat fish.
 
Als
@RMartinhoFernandes cool thanks
 
BUT char x = 10; x << 16; will usually be fine
 
6:07 PM
It's UB to << negative values, so you may want to cast to unsigned instead.
 
15
Q: GCC Fail? Or Undefined Behavior?

MysticialThe following code goes into an infinite loop on GCC: #include <iostream> using namespace std; int main(){ int i = 0x10000000; int c = 0; do{ c++; i += i; cout << i << endl; }while (i > 0); cout << c << endl; ret...

my example there is where that shift goes bad
 
@RMartinhoFernandes ugh. And my setup of int8+uint8[] probably will suck with endianness too?
 
@Mysticial Wasn't your issue an overflow of addition?
 
*correction, the shift is fine, but i += i or i *= 2 is bad.
 
And bork possible optimization on wrong-endian systems?
 
6:09 PM
@RMartinhoFernandes Yeah. Technically, shift to negative is also undefined, but GCC seems to respect it's behavior.
 
See, how can I shift the first int8_t without UB?
 
Cast to uint16_t.
 
ah
 
I was implementing exponentiation by squaring - which requires that you read from the top-most bit and down. So I would shift it by one, and check that top bit by comparison with 0 (negative = set, positive = not set)
 
6:11 PM
(uint16_t)(uint8_t)-1 is different from (uint16_t)-1. You want the first.
 
see, this shit is f-ing confusing me
 
And of course, that's completely undefined behavior.
 
@RMartinhoFernandes how is that different?
 
@rubenvb The first one converts -1 to (2^8)-1, and then just makes the type bigger. The second converts to (2^16)-1.
 
my colleague says that in code such as "i++ + i++", gcc will do the same as "i + i; i++; i++;"
i.e while it is UB by C++/C, GCC internally does it that way (no hard guarantees, but it ends up like that, even with optimizations, he says)
is there a simple counter example?
i don't believe him
 
6:14 PM
@rubenvb It may not matter since you will shift the result and it ends the same.
 
I wouldn't believe that for a second. It's not worth arguing, though.
That sounds like an argument from someone who uses GCC 2.95 and doesn't intend to upgrade.
 
i.e he says that side effects are carried out at the sequence point boundary only
 
Why is this not outputting? ideone.com/lNnk7
 
@rubenvb There's a bad character in the output.
 
and pipeline execution and stuff may still reorder independent of the compiler.
 
6:16 PM
std::cout << some_char does not print a number.
 
but I believe they won't affect the program since it would end in conflict
 
@RMartinhoFernandes ugh, obviously. Damn char vs int8_t
@JohannesSchaublitb c++11 doesn't have sequence points, does it?
 
@rubenvb no
 
@rubenvb 27.7.3.6.2/1, call num_put
 
6:26 PM
@RMartinhoFernandes ...
 
@RMartinhoFernandes I find that dubious
 
woah wtf?!?!
50
A: Is this a C program or C++ program, how to decide?

MysticialIt's a C++ program. C doesn't have namespaces.

 
I just got the tick for that...
 
50 votes on that.
lol
 
6:31 PM
and @awoodland will get Populist
lol
and I'll get Guru... lol
 
Cheese, who's upvoting the question?
 
@Potatoswatter I upvoted it - it was probably the first or second vote. Long before it went haywire.
 
There's also deleted spam at the bottom.
 
I mean just now. I saw it ticking in real time. But it could be going down, my eyesight is still not so good.
 
Back then, it was "just another FGITW" question.
 
6:35 PM
There were two new answers posted on Friday.
That may explain why it lit up all of a sudden.
 
Then I woke up the following morning repcapped and with the "Good Answer" badge...
I don't remember whether I was first to answer that. Both my and Gregory Pakosz's answers were posted at 9:01. So might also get the Enlightened badge on it... lol
 
awoodland's answer seems to say tat <iostream> does not declare "printf". but the spec leaves that unspecified
 
@JohannesSchaublitb You can't rely on it declaring printf, which is effectively the same.
 
you can if you know your compiler
 
@Mysticial His was at :51, yours at :39.
 
6:40 PM
@rubenvb even seems to suggest it is implementation defined behavior
 
@RMartinhoFernandes How can you tell?
 
@Mysticial Hover your mouse over the timestamp.
 
@RMartinhoFernandes Wow... I can't believe I didn't know that. I'm stupid...
4
 
guys, we will be EM winner 2012!
eCup lol
 
@JohannesSchaublitb EM?
 
6:45 PM
europa cup. with the evil timochenkov beaters xD
 
I just got Guru, and awoodland just got Populist from that accept. lol
 
@Pubby uefa euro
 
our local government don't wanna watch the initial games because they dislike some political nonsense going on
 
@JohannesSchaublitb Well, we're going to lose all three games. Take that.
 
xD
i will put that into my pocket and recompute the statistics!
 
6:47 PM
can I std::move(mystringstream.str())?
 
@MooingDuck Yes, but there's no need since it's already an rvalue
 
@Potatoswatter I haven't looked into stringstreams details much :/
 
@MooingDuck you probably expect it to move away the internal string from the stream or something?
 
@MooingDuck You can move into a stringstream but you can't meaningfully move out of it into another string.
 
note that it will always copy the internal string sequence. there is no way to "move out" the stringstream buffer efficiently
there was a usenet post about such a potential addition for C++16
 
6:51 PM
@JohannesSchaublitb I would have expected it to give you a const reference to it, but I guess it's a copy
 
@JohannesSchaublitb What if you use a stringstream rvalue?
 
If it were a const reference, the value would change when you inserted into the stream.
 
C++16? How do you know the date?
 
@RMartinhoFernandes nope :(
oops
 
@JohannesSchaublitb 17.
 
6:52 PM
shhht!
 
18. 25.
 
@JohannesSchaublitb That was what I wanted, yes
 
i take that to mean 18 1/4
 
We should take bets on the next release date
 
My money's on March 3.
 
6:53 PM
@Potatoswatter Apr 1?
 
nooo i need to buy pizza!.
buye...
 
nom nom
 
> As of 2009, the entire Internet was estimated to contain close to 500 exabytes.
 
Can't Google figure out how to make links copy properly? Sheesh.
 
@TonyTheLion and I hear that figure is accelerating massively, more even than you'd expect from the rate of people joining it
 
@Pubby You didn't state how much.
 
@RMartinhoFernandes I'm betting on my life obviously
 
The internet can access so much, or it contains so much, as in the bits physically inside optical fibers and router buffers at a given instant
 
what's even more remarkable is that the internet has achieved the things it has, primarily in the English language
despite there being more Chinese-speakers than English
presumably there is a ton of content in Chinese for one, but not anywhere as much content generated by the Chinese as by the Anglosphere
which is kind of sad
 
6:59 PM
That will rectify… although creativity is stifled there, so our side will still be more interesting.
 
they need to fix that
 
Their loss.
 
@TomW Not really.
having one single dominant language is a good thing for everyone
 
Or they can keep sending all their best creative types to our cultures.
LOL, see if you can spot the Windows user in the crowd.
 
I find it quite disheartening that there are basically two internets
seperated by the tremendous gulf of language
 
7:01 PM
@TomW Only two? Every oppressive regime wants one.
 
@Potatoswatter What's choice of OS got to do with anything?
 
Have you seen a Chinese person surfing the English internet? They have wonderful translation tools.
 
and the chinese are a hell of a lot more proactive in learning english than anglophones, in general, are at learning Chinese
then again, the English in particular (i.e. me) are desperately, embarrassingly bad at languages
 
eh
it's just not my strong point
 
English is big enough to displace other languages.
 
7:03 PM
it's hard to go from "26 letters, trivial casing rules, simple graphs" to something like Chinese
 
that's also quite depressing, there's more value in diversity
 
@TomW Not really.
the only thing we gain from having more than one natural language is having to pay for translation and implementing stuff like Unicode
 
I wouldn't fret too much about being obliged to learn a second language to access vital information, although it'd be really frickin hard
something ought to give me a kick up the arse to do productive things like that
 
I wanted to go into IC manufacturing technologies, and some of that industry (and research) is in Japan. So I decided to learn Japanese.
Well, of course that had nothing to do with conversational Japanese, which incidentally all my classmates picked up right away because they were Anime fans.
 
groan
Sapir-Whorf is a killer
 
7:07 PM
Meanwhile I alienated my Chinese friends, and also the half-Japanese girl I liked when I finally quit it.
Moral of the story: don't try.
 
ha
well, the concept of learning Japanese seems to occur to quite a lot of people, based on how challenging it is
 
eh
 
@Mysticial that's kind of funny. I guess the OP just found the accept button
I half wish that question wasn't my most upvoted answer though
 
in a spare half an hour once I tried scanning over the JP wikipedia, just to see how many characters I could follow
 
why learn a foreign language when my native tongue is virtually the defacto language of the Interwebs and my intended profession
 
7:10 PM
@DeadMG I quite like the mental challenge of it
 
eh
 
Anyone have any thoughts (besides it's windows) as to why visual studio won't start up? I don't even get a splash screen, and the log shows no errors...
 
@awoodland But programmer's are (by definition) laaaaazy.
 
there are literary concepts that don't translate, or so I'm led to believe, my language skills are feeble
 
if an automated translation tool can make a good approximation, it's probably not particularly challenging
 
7:11 PM
@awoodland Well, your second most upvoted is a good and legit one. I've seen some people who's top 5 are all silly.
 
@DeadMG It's a tricky brain thing that's not programming or maths and if you're careful about which language you can optimise the percentage of the world's population you're able to communicate with significantly
 
Japanese people are worse at learning languages than Anglophones. Their numerous claims that Japanese can't be translated or is the most unique language need a grain of salt.
 
my Egyptian friend insists that Arabic, when spoken properly (i.e. not by him) has a fluency for literature that really isn't matched by English
 
@awoodland There's nothing "tricky" about it. My brain is hardwired to do language. It's just a question of memorizing a different set of glyphs and sticking them together in a slightly different order.
 
that's probably why so much science and philosophy was distributred that way
 
7:14 PM
@TomW No, it's probably because the Christians did their absolute best to suppress all knowledge and education for centuries as "heresy".
 
@TomW Or just that Europe had a big brain fart for a few hundred years. Too much disease, too little food.
 
distributed, not invented. It was mostly borrowed from the Chinese
there they are again
incidentally, it's quite funny to listen to an Egyptian on a 'we invented everything' rant
 
@TomW I'm pretty sure that the Arab world was the center in terms of human society, at least until the Europeans started inventing things like usable guns, the printing press, industrial revolution, computers, scientific method, shit like that
 
Well, they did do a lot. Pretty much anything with "Al" in the name. Algorithm, Algebra.
 
@DeadMG that sounds a lot like Civilisation IV there
 
7:16 PM
and in the sense of 'building things that stay up' and 'making plants grow where they're supposed to' and 'making sure people remember things', the basics of building a civilisation, they did
 
I think that religion/cultism is a necessary phase between savage bestiality and modern society.
2
 
@Potatoswatter Albuquerque?
 
@SamDeHaan you know what, I wouldn't be surprised
sounds spanish
 
Uh, guns and printing press = China. Fundamentals of computing = Greeks and Arabs.
 
Moorish spain was a big influence once
 
7:17 PM
Albuquerque
 
@Potatoswatter No, the Chinese invented gunpowder. They didn't make guns out of it.
 
BOO-YA!
"Alburquerque is a town in the province of Badajoz in Spain. It has 5,600 inhabitants. It is very close to the border with Portugal and was an ancient dominion of the kings of this country. The name comes from the Arabic Abu al-Qurq', which means "father of the cork [oak]"."
 
they did invent cannons and grenades, though they weren't particularly effective
the Europeans made the first guns and made them really viable weapons
 
@TomW Win.
 
XD
 
7:18 PM
@DeadMG Uh, yes they did. First with bamboo. And a cannon is a kind of gun.
 
@Potatoswatter It's a siege weapon. Not a dominate-all-others infantry weapon.
 
the difference between a cannon and a handgun is some nob saying "You can pick that up, right?"
 
@TomW you mean: ...is @DeadMG saying... FTFY
 
@DeadMG A cannon is a kind of gun. And the bamboo device I mentioned was an infantry weapon.
 
And if you're a 16-century serf, the answer is "Yes m'lud"
 
7:20 PM
@Potatoswatter Obviously not particularly effective
 
@DeadMG Obviously it caught on and was translated into a more effective metal weapon…
 
I seem to remember reading that the Mongol invasion came to a quite abrupt halt about the time they hit maybe Hungary or some other place with detailed knowledge of metal casting
Now that memory might be wildly inaccurate
 
Also they failed to take Japan.
(But they did get some territory there if memory serves.)
The of 1274 and 1281 were major military efforts undertaken by Kublai Khan to conquer the Japanese islands after the submission of Goryeo (Korea) to vassaldom. Despite their ultimate failure, the invasion attempts are of macrohistorical importance, because they set a limit on Mongol expansion, and rank as nation-defining events in Japanese history. The Japanese were successful, in part because the Mongols lost up to 75% of their troops and supplies both times on the ocean as a result of major storms. The invasions are referred to in many works of fiction, and are the earliest events fo...
 
@Potatoswatter ... by the Europeans, who invented virtually all of the techniques which make modern guns reliable.
 
Mongols: CHARGE!
Sufficiently-advanced Europeans: BANG!
 
7:24 PM
@Potatoswatter Mostly defeated by the Japanese seas, IIRC
 
That's what it says there, yep
But the mountainous terrain and metal armor and weapons probably helped too.
 
yea
 
screw you guys, I'm off to play Battlefield 3
 
Japan is like Russia, the terrain and weather's a bitch
 
@StackedCrooked Nice idea there bro. ("Religion / Cultism ...")
 
7:44 PM
@DeadMG en.wikipedia.org/wiki/History_of_the_firearm "Firearms were invented in the 12th century in China" "The direct ancestor of the firearm is the fire-lance, a gunpowder-filled tube attached to the end of a spear and used as a flamethrower;" "The earliest depiction of a gun is... 12th century... figure carrying a vase-shaped bombard with flames and a cannonball coming out of it." "The oldest surviving gun, made of bronze, has been dated to 1288 [in China]"
and yes, the Chinese made them of metal, but I can't verify they did that first.
 
You can see that in Princess Mononoke.
Guns that fired iron balls.
 
@MooingDuck Aaand they only revolutionized warfare when in the hands of the West, who invented the necessary techniques to make them work.
 
@StackedCrooked While awesome, not exactly a historical record.
 
@StackedCrooked Princess Mononoke is a much worse source than Wikipedia
 
no modern guns without smokeless powder, which was invented in Europe, along with many other gunpowder and gun manufacturing techniques
 
7:49 PM
@DeadMG wikipedia lists several battles where guns were used some 200-300 years before it mentions any European improvement
 
battles where guns were used != guns came to utterly dominate all warfare
 
@MooingDuck @DeadMG's not here to prove you wrong, he's here to argue. Not to convince. C'mon, this is ooold neeeeews.
 
@DeadMG I agree with that, but you were the one who claimed the Chinese "didn't make guns out of [gunpowder]", and that "the Europeans made the first guns"
 
neural networks are cool!
 
yeah, you're right, I must have missed the Chinese ineffectually blundering about with them, compared with the Europeans utterly dominating with them
critical piece of information missed
 
7:53 PM
These guys.. they are entertaining
 
@SamDeHaan PROOF
 
guys, calm down
 
@SamDeHaan I'm aware how much he likes to argue, but in this case, I have objective evidence, and am willing to pursue the debate. I'm not studid enough to debate with DeadMG about subjective things
@JohannesSchaublitb I'm calm, I think DeadMG is as well.
 
we all know that stroustrup made the first guns!
 
@JohannesSchaublitb K&R shipped one with every copy of The C Programming Language
 
7:55 PM
@MooingDuck See, there's the error. It's not a debate. He's not providing objective evidence, just saying 'nuh-uh!'. You can't win on his level, and he won't play on your level. Just gets boring to watch.
 
@MooingDuck No, I think you're being utterly meaningless. It's like suggesting that you can do OOP or functional in assembly. Sure, technically you could, but that doesn't make it have a point.
 
C++ has STD:: which is a little more modern weapon
 
They're arguing different points, @MooingDuck is saying the Chinese made the first guns, @DeadMG is saying the Europeans made the first effective guns
 
China and Europe were to far apart to wage war with each other. We'll never know who'd have won.
 
Do I need to bitch slap everyone involved?
 
7:56 PM
@JohannesSchaublitb But an old one as well!
 
@StackedCrooked The Enterprise vs the Death Star.. who would win?
 
@Collin I'm not much of an expert on that.
I think Superman would win.
 
@Collin that's because he "cheated" by changing his point slightly. But he agreed to my point, and I agreed to his, so the debate ended.
 
@JohannesSchaublitb That's a biological weapon though. The :: indicates a rash.
 
@Collin Death star destroys planets. Come on.. no contest.
 
7:58 PM
@Collin Kublai Khan!
 
@Neil But it's not like they can warm-up the gun and hit a fast mover
 
@Collin fast moving planet?
 
@MooingDuck I didn't change my point. Your point was technically correct but had absolutely no real meaning whatsoever
 
@Collin True, but all you'd have to do is threaten to destroy a planet.. won the battle
 
@SamDeHaan A relatively fast moving Enterprise I guess
 
7:59 PM
my favourite quote: "Forget Jesus. Stars died for us so we could be here."
 
@Neil That's probably true
 
Sometimes you guys are just weird
 
@Neil Oh, but doesn't that depend on Kirk vs Picard? Dunnit!!!!!????
 
Enterprise isn't stupid.
 
@JohannesSchaublitb It’s actually “forget Jesus” ;-) (and “… so we could be here”)
 
8:00 PM
@KonradRudolph alright
 
@KonradRudolph I feel like that 'Sometimes' is unnecessary.
 
@Potatoswatter Kirk would probably negotiate under the scheme to sneak someone in the ship to destroy it from the inside
Clever fellow, that Kirk, though doesn't mean he could pull it off.
Besides there's Vader to contend with.
 
@Neil I'd like to see Kirk fistfight a lightsaber wielding Vader, that would be hillarious
 
@Collin I doubt it'd last long.
 
@Neil Depends on which writers scripted it
 
8:02 PM
Smoking in Japan is much less restricted than in many other nations, and Japan accounts for much of the tobacco consumption in Asia. Nearly 30 million people smoke in Japan, making the country one of the world's largest tobacco markets. Japan is one of the last industrialized nations in the world where adult smoking is still widespread; statistics show Japanese men smoke at one of the highest rates in the world in 2002. this is the lowest recorded figure since Japan Tobacco began surveying in 1965. History Until 1985, the tobacco industry was a government-run monopoly; the government of...
 
Quentin Tarantino could probably draw it out.
 
@Collin Well, kind of. I don't think Kirk could possibly win a fight like that, though Kirk is better at outsmarting enemies than fighting them
Though he's definitely had his share of arena fights with alien species, that's for sure
 
@StackedCrooked That's neat. :D
 
gaaah, I wanna new MBP
 
8:06 PM
@StackedCrooked What's that?
 
@EtiennedeMartel It's points to your mouse cursor.
 
@StackedCrooked I can't see anything.
 
@StackedCrooked Hmm, I got tits
 
@EtiennedeMartel Hold still!
@KonradRudolph Go on a diet!
 
@EtiennedeMartel It works for me on Chrome. Apparently it doesn't work for everyone.
 
8:08 PM
Sometimes I get some flashing images. Nothing more.
 
Als
WTF are they broadcasting "Please cast your primary vote in the Stack Overflow 2012 community moderator election!" this multiple times
 
@Als Not that shit again :(
 
Konrad sees tits and Martel sees flashing. For me, they just pointed at the cursor :(
 
Als
@DeadMG I dunno it gave me like 15 notifications with that shit
 
@EtiennedeMartel Maybe you're not trying hard enough.
 
8:10 PM
I'm starting to wonder if it's a troll.
 
Als
@DeadMG I think they broke it, it is unstoppable.
 
oh I never check those anyway
 
Woo! 99!
 
Als
@DeadMG They broke it now they will act as if it was meant to be that way.
 
Actually, looking at the comments from the mods, there seems to be a huge amount of sarcasm in there.
 
8:16 PM
lol
internet has no sarcasm
2
 
8:31 PM
So the first 10 election downpoos each cancel 1 upboat, subsequent ones cancel 2… is there a quadratic or geometric progression?
 
OMG 99 notifications.
 
No, it's more complicated. Shrug.
 
@RMartinhoFernandes OMG U R SO POPULAR
 
hi
 
8:43 PM
Hello.
 
> Charles does a bit of modeling too, apparently.
lol
 
Damn, he already raised 7.5k $. It was 6.5k 5 minutes ago.
 
Can I ask a Qt related question here?
 
Ok so...
 
8:46 PM
Hey, @Cat, you should update the newbie hints to link to the new question guidelines (there's an entry about asking questions). I would have done so myself, but it appears I don't have the rights to do it.
 
@EtiennedeMartel rofllolwot
 
Almost 9k!
 
This is what I do: I create a new QDialog, addSubWindow() it to a MDI area, then close it (Esc, close()). It doesn't disappear, only all its controls disappear. Anyone knows that behavior?
 
@basic6 I can't be for sure but I think this behavior is called: "It's broken." Although I might be mistaken ;)
 
Might be an explanation...
( :-) )
I'm only talking about a QDialog which is inside a QMdiArea
 
8:51 PM
QMdiArea::addSubWindow returns a QMdiSubWindow *. That's the thing you should close, I think, not the QDialog.
Actually, you don't even need to put a QDialog in there, any QWidget will do.
 
@EtiennedeMartel Past 10k now. That's going to be really fast.
 
gargleflargle rep y u not go up?
Need MOAR points.
Although honestly, it's really getting on my nerves having to be peer reviewed at this point.
 
@basic6 Also, don't forget to set the Qt::WA_DeleteOnClose on the sub window if you want it to be deleted when you close it.
(By the way, I'm not a Qt expert, I just read the documentation)
 
I've tried WA_DeleteOnClose, because it sounds just like what I need, but it either doesn't do anything or I did something wrong (probably the latter)
 
@basic6 No Hide/Show functions?
 
8:57 PM
Are you setting it on the QMdiSubWindow that addSubWindow returns or on the QDialog you're adding?
Because it should definitely be on the sub window.
 

« first day (604 days earlier)      last day (4346 days later) »