Elleo | after a week of fun UT dev, I now have to do some Android dev :/ | 00:16 |
---|---|---|
Elleo | oh the verbosity. | 00:16 |
X_O | hi guys.! how can I put a image of background in mainwindow.ui ?? | 05:41 |
AkivaAvraham | X_O, good question | 05:43 |
AkivaAvraham | X_O, this is with qt I presume? | 05:43 |
X_O | Based on Qt 5.3.0 (GCC 4.9.1, 64 bit) | 05:43 |
AkivaAvraham | X_O, yep. Curious though why are you not using qml? | 05:44 |
AkivaAvraham | what is this app for? | 05:44 |
X_O | I'm not expert I'm hobbiest | 05:45 |
AkivaAvraham | yep :) | 05:45 |
AkivaAvraham | whats the app for by the way? | 05:45 |
AkivaAvraham | The reason I ask is because I used to develop in qt with the intention of using it for the phone, until I realized the phone runs qml apps | 05:45 |
X_O | is for app for my comp | 05:47 |
AkivaAvraham | X_O, mmmm okay | 05:47 |
AkivaAvraham | X_O, let me see if I can remember how to do it in designer | 05:47 |
X_O | thx | 05:47 |
=== X_O is now known as X_o | ||
AkivaAvraham | X_o, ping | 06:14 |
AkivaAvraham | I hate pms | 06:14 |
X_o | pong | 06:14 |
AkivaAvraham | :D | 06:14 |
X_o | ;) | 06:14 |
AkivaAvraham | okay rightclick your parent folder in qtcreator, and click "Add New.." > "Qt" > "Qt Resource File" | 06:15 |
AkivaAvraham | this will add a .qrc file that you can add things like images in | 06:16 |
AkivaAvraham | its best to use this very seldom. | 06:16 |
AkivaAvraham | don't fill it with more than 2 megabytes of data. | 06:17 |
AkivaAvraham | then after that, rightclick your parent folder again, and click "Add existing files..." and navigate to the image you want as the background | 06:17 |
AkivaAvraham | after that, go into the designer, and find the "Stylesheet" property of the QWidget | 06:18 |
AkivaAvraham | type "background-repeat: repeat-xy; background-image: " | 06:19 |
AkivaAvraham | and after image:, click "add resource" | 06:19 |
AkivaAvraham | let me know if that worked | 06:20 |
X_o | can qt support *.png pic ? | 06:26 |
AkivaAvraham | think so | 06:26 |
AkivaAvraham | mine was jpg. | 06:27 |
X_o | ../BBB_p_Proj... libpng error: Not a PNG file libpng error: Not a PNG file libpng error: Not a PNG file libpng error: Not a PNG file libpng error: Not a PNG file libpng error: Not a PNG file libpng error: Not a PNG file | 06:27 |
AkivaAvraham | try jpeg | 06:29 |
AkivaAvraham | convert it with gimp | 06:29 |
X_o | now is working | 06:32 |
AkivaAvraham | good :) | 06:32 |
X_o | qt do not support *.png files :( | 06:32 |
X_o | thx | 06:32 |
AkivaAvraham | X_o, trust me btw; go through the book tutorial; it will save you so much time in the future | 06:32 |
AkivaAvraham | c++ is a complex language | 06:33 |
X_o | I want to learn like a guru qt I love it but I'm a baby now :( | 06:33 |
X_o | every button I drop in the desing have the picture as a background | 06:47 |
AkivaAvraham | You have learn how to do style sheets. | 06:48 |
AkivaAvraham | in qml this is much easier | 06:49 |
=== rigved is now known as Guest27841 | ||
=== chihchun is now known as chihchun_afk | ||
cojack | hello guys, quick question, why you just stop provide an ogre-samples package? | 20:36 |
rickspencer3 | I'm trying to figure out how to set up for testing | 23:46 |
rickspencer3 | specifically, I want it to go away between test runs, isn't there an easy way to do that? | 23:46 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!