Great tutorial. Though some of those qss-stock themes will need a *lot* of editing to excise the eye-bleed out of them. Gotta love programmer art , I guess.
I tried your code to set the stylesheet, but it doesn't load it. That said, I noticed that my Qt 5.15.2 does not have a "QtTheme.h" header file. QtThemeSupport/qtthemesupportversion.h does not do the trick. Further, I saw that you are using "QtTheme window;" whereas my default app uses "MainWindow w;", which throws error "Unknown Type name". Did you run your code successfully on 5.15.2 or later?
Hey Vel! I'm a bloody beginner of everything so I'm really glad I found you who actually make things understandable thank you so much for that! This might be the most stupid question but uhm ...how do I get on the very first screen you have? What or where is this ? Could you tell me how to get the exact same starting postition with like all the files like you have in this video so I can try and recreate evrything from there like you do? Maybe you have a video on that already? But I can't find it because i don't know what everything is called x'D
Hey Thuy! I know the pain! First off, you have to have Qt set up in your machine, which may be slightly different depending on the OS you are using. I have a video on how to set up Qt (version 6) using CMake (another C++ tool). Then, using CMake, I generate a project that can be run with Visual Studio (the IDE). I suggest you start first by setting up Qt in your machine the way I do. This is the link to the video: ruclips.net/video/XiMplRfuFJc/видео.html Once you have that setup, you'll know how we arrive to where this video beings (although I skip making the GUI, but it should be clear how that is done from the other video). If you want to know more on how to make the GUIs, you can view my other video: ruclips.net/video/h_DVfsD9PKI/видео.html I hope this helps!
@@VelcodeCS woaaahh thank you so so much for replying and even took your time to explain it so thoroughly to me I really appreciate it! I will follow your instrcutions and will try not to loose my head xD Thank you again for helping me you are amazing!!
Hi I'm not getting these themes this is what I see in the application output could you please help. Could not parse application stylesheet qt.qpa.fonts: Unable to open default EUDC font: "C:\\Windows\\FONTS\\EUDC.TTE"
Hello! It seems that the theme you are using uses a particular font you do not have installed in your system. One thing to try (to verify this) is to try a completely different theme and see if that works. Based on that error, the thing that comes to mind is that the font you want to use is no where to be found.
I don't have experience with winforms, but I doubt it since this is qss (q for Qt). Maybe there's a css style way of doing things with winforms, but I don't know about any, sorry!
@@VelcodeCS It just says that I'm useing Variables that arent defined, and if I define them, it changes nothing. I talked to a friend about that, and he said that you were doing it completely wrong, and then it just worked with "setStyleSheet(stylesheet.qss)" instead of the whole code you were writeing.
Who created that website?? The first text I saw read: "How It's Look Like" and "The graphic visual is something very important in a software". Not very confidence inspiring. LOL.
I have no idea, but it's not a bad place to start. I personally got one from there and added/modified elements. But I agree, the one I used had a lot of little issues, but hey, it's free!
Clear, concise, to the point. Wish every tutorial was like this.
perfect .... no fancy useless stuff - just on point!
Stunning vid. Many thks
Great tutorial. Though some of those qss-stock themes will need a *lot* of editing to excise the eye-bleed out of them. Gotta love programmer art , I guess.
thanks i been searched for this long time i think i need to learn css now
I could use learning some more CSS for sure here too
Fantastic! Thanks for letting us know this information. Many thanks to you.
Pls am still woundering how you brought Qt into visual studio. Did you ceate folder with visual studio and then download the CSS file into it?
I explain that here: ruclips.net/video/XiMplRfuFJc/видео.html
I tried your code to set the stylesheet, but it doesn't load it. That said, I noticed that my Qt 5.15.2 does not have a "QtTheme.h" header file. QtThemeSupport/qtthemesupportversion.h does not do the trick. Further, I saw that you are using "QtTheme window;" whereas my default app uses "MainWindow w;", which throws error "Unknown Type name".
Did you run your code successfully on 5.15.2 or later?
Very good. Thank you.
I noticed that, in one of the themes (Combinear.qss) the arrows are missing (QSpinBox::down-arrow). I had to make my own.
Yes, many of these can use tweaks and additions for full UI coverage.
Hello, World! Hello from Russia! Thanks you for this video!
Hello to Russia!
thanks for the video and website i need it
on Linux you have native themes via kdestheme manager in it settings
Thanks for your tutorial. Greeting from Indonesia!
No problem and hello to Indonesia!
thanks man, really helpful video
cudos to the site
Good information
Thanks for helping.
Hey Vel! I'm a bloody beginner of everything so I'm really glad I found you who actually make things understandable thank you so much for that! This might be the most stupid question but uhm ...how do I get on the very first screen you have? What or where is this ? Could you tell me how to get the exact same starting postition with like all the files like you have in this video so I can try and recreate evrything from there like you do? Maybe you have a video on that already? But I can't find it because i don't know what everything is called x'D
Hey Thuy! I know the pain! First off, you have to have Qt set up in your machine, which may be slightly different depending on the OS you are using. I have a video on how to set up Qt (version 6) using CMake (another C++ tool). Then, using CMake, I generate a project that can be run with Visual Studio (the IDE). I suggest you start first by setting up Qt in your machine the way I do. This is the link to the video:
ruclips.net/video/XiMplRfuFJc/видео.html
Once you have that setup, you'll know how we arrive to where this video beings (although I skip making the GUI, but it should be clear how that is done from the other video). If you want to know more on how to make the GUIs, you can view my other video:
ruclips.net/video/h_DVfsD9PKI/видео.html
I hope this helps!
@@VelcodeCS woaaahh thank you so so much for replying and even took your time to explain it so thoroughly to me I really appreciate it! I will follow your instrcutions and will try not to loose my head xD Thank you again for helping me you are amazing!!
No problem and good luck!
Excelente!!!
there are two or more qpushbuttons,if i want to set different theme for different qpushbutton, how to distinguish in qss file?
You can use the ID selector (#). See the documentation for an example:
doc.qt.io/qt-5/stylesheet-syntax.html
Thanks 👍
Nice! :-)
How did u design the qttheme before adding the .css??
Which theme? The white one?
Great video.
I'm using Qt for Python and i'll try to implement it there. I believe it is possible.
If you have a chance and wouldn't mind reporting your findings 🙂
app = QApplication(sys.argv)
sshFile= 'Filename.qss'
with open(sshFile, 'r') as f:
app.setStyleSheet(f.read())
Can u use a qt application for a game mod menu on a pc and also for a ps3?
Umm, I have never seen anyone do it. I would say there are better more adequate tools for those tasks (like Unity or Unreal)
Hi
I'm not getting these themes this is what I see in the application output could you please help.
Could not parse application stylesheet
qt.qpa.fonts: Unable to open default EUDC font: "C:\\Windows\\FONTS\\EUDC.TTE"
Hello! It seems that the theme you are using uses a particular font you do not have installed in your system. One thing to try (to verify this) is to try a completely different theme and see if that works. Based on that error, the thing that comes to mind is that the font you want to use is no where to be found.
@@VelcodeCS Thank you, it worked
Thanks
does this also work with winforms?
I don't have experience with winforms, but I doubt it since this is qss (q for Qt). Maybe there's a css style way of doing things with winforms, but I don't know about any, sorry!
Awesome !
How do you make a light and dark mode
You can create two separate themes and load the one you want depending on the mode that is selected.
Great & Practical Tutorial!
Pure MS Theme is Boring!
Agree, but sometimes boring is okay 😁
QIODevice::read (QFile, ".\Obit.qss"): device not open
\\
goood!
Didnt work for me, as I continued I started to get more and more Errors in the whole code.
What kind of errors ate you getting?
@@VelcodeCS It just says that I'm useing Variables that arent defined, and if I define them, it changes nothing. I talked to a friend about that, and he said that you were doing it completely wrong, and then it just worked with "setStyleSheet(stylesheet.qss)" instead of the whole code you were writeing.
Well, I don't know what you're doing, but you seem to have found your solution 👍
@@VelcodeCS for me : pylance detect is a lot of errors in the qss file but when i run the code its work normally
@@seghirissam2662 what is pylance?
Who created that website?? The first text I saw read: "How It's Look Like" and "The graphic visual is something very important in a software". Not very confidence inspiring. LOL.
I have no idea, but it's not a bad place to start. I personally got one from there and added/modified elements.
But I agree, the one I used had a lot of little issues, but hey, it's free!
HELP